Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandExecutor ¶
type CommandExecutor interface {
// Executes shell commands.
// Returns the stdout contents.
Execute(ctx context.Context, command string) (string, error)
// Executes shell commands.
// Returns the stdout contents.
// Panics, on failure.
MustExecute(ctx context.Context, command string) string
}
func NewLocalCommandExecutor ¶
func NewLocalCommandExecutor(streamOutput bool) CommandExecutor
func NewSSHCommandExecutor ¶
func NewSSHCommandExecutor(connection executor.Interface) CommandExecutor
type LocalCommandExecutor ¶
type LocalCommandExecutor struct {
// contains filtered or unexported fields
}
func (*LocalCommandExecutor) MustExecute ¶
func (l *LocalCommandExecutor) MustExecute(ctx context.Context, command string) string
type SSHCommandExecutor ¶
type SSHCommandExecutor struct {
// contains filtered or unexported fields
}
func (*SSHCommandExecutor) MustExecute ¶
func (s *SSHCommandExecutor) MustExecute(ctx context.Context, command string) string
Click to show internal directories.
Click to hide internal directories.