Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface { Run(ctx context.Context) error Cmd(ctx context.Context) Sudo(ctx context.Context) StdoutBytes() []byte StderrBytes() []byte Output(ctx context.Context) ([]byte, []byte, error) CombinedOutput(ctx context.Context) ([]byte, error) OnCommandStart(fn func()) WithEnv(env map[string]string) WithTimeout(timeout time.Duration) WithStdoutHandler(h func(line string)) WithStderrHandler(h func(line string)) WithSSHArgs(args ...string) }
type Script ¶
type Script interface { Execute(ctx context.Context) (stdout []byte, err error) ExecuteBundle(ctx context.Context, parentDir, bundleDir string) (stdout []byte, err error) Sudo() WithStdoutHandler(handler func(string)) WithTimeout(timeout time.Duration) WithEnvs(envs map[string]string) WithCleanupAfterExec(doCleanup bool) }
Click to show internal directories.
Click to hide internal directories.