Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command interface {
Execute(ctx context.Context, name string, args ...string) ([]byte, error)
ExecuteRedacted(
ctx context.Context, name string, args []string,
secretsToRedact map[string]string,
) ([]byte, error)
ExecuteWithTimeout(
ctx context.Context, name string, timeout time.Duration, logOutput bool, args ...string,
) ([]byte, error)
ExecuteWithTimeoutAndInput(
ctx context.Context, name string, timeout time.Duration, logOutput bool, stdin string, args ...string,
) ([]byte, error)
ExecuteWithoutLog(ctx context.Context, name string, args ...string) ([]byte, error)
}
Command defines a set of behaviors for executing commands on a host.
func NewCommand ¶
func NewCommand() Command
NewCommand returns a concrete client for executing OS-level commands.
Click to show internal directories.
Click to hide internal directories.