Documentation
¶
Overview ¶
Package command provides interfaces and implementations for executing commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
Execute(ctx context.Context, command string, args []string, workingDir string, env []string) (stdout, stderr io.ReadCloser, exitCode <-chan int, err error)
ExecuteWithStdIO(ctx context.Context, command string, args []string, workingDir string, env []string) (stdin io.WriteCloser, stdout, stderr io.ReadCloser, exitCode <-chan int, err error)
}
Executor is an interface for executing commands.
func NewExecutor ¶
func NewExecutor(containerEnv *configv1.ContainerEnvironment) Executor
NewExecutor creates a new command executor.
func NewLocalExecutor ¶
func NewLocalExecutor() Executor
NewLocalExecutor creates a new local command executor.
Click to show internal directories.
Click to hide internal directories.