...

Source file src/github.com/redhat-developer/odo/pkg/remotecmd/interface.go

Documentation: github.com/redhat-developer/odo/pkg/remotecmd

     1  package remotecmd
     2  
     3  import "context"
     4  
     5  // RemoteProcessHandler is an interface for managing processes that are intended to be executed remotely,
     6  // independently of container orchestrator
     7  type RemoteProcessHandler interface {
     8  
     9  	// GetProcessInfoForCommand returns information about the process representing the given command.
    10  	GetProcessInfoForCommand(ctx context.Context, def CommandDefinition, podName string, containerName string) (RemoteProcessInfo, error)
    11  
    12  	// StartProcessForCommand starts a process with the provided Devfile command to execute remotely.
    13  	StartProcessForCommand(ctx context.Context, def CommandDefinition, podName string, containerName string, outputHandler CommandOutputHandler) error
    14  
    15  	// StopProcessForCommand stops the process representing the given Devfile command.
    16  	StopProcessForCommand(ctx context.Context, def CommandDefinition, podName string, containerName string) error
    17  }
    18  

View as plain text