Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandOutput ¶
CommandOutput wraps the output from an exec command as strings.
func ExecuteCommand ¶
func ExecuteCommand(ctx context.Context, c []string, runAsUser string, envVars []string, stdin io.ReadCloser) (output CommandOutput, err error)
ExecuteCommand executes the command and returns Stdout and Stderr as strings.
func ExecuteCommandYes ¶
func ExecuteCommandYes(ctx context.Context, c []string, runAsUser string, envVars []string) (output CommandOutput, err error)
ExecuteCommandYes wraps ExecuteCommand with the yes binary in order to bypass user input states in automation.
Click to show internal directories.
Click to hide internal directories.