Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRunning ¶
IsRunning checks if the given output represents the "Running" status of a Kubernetes pod.
func MakeShellCommand ¶
func MakeShellCommand(cmd string, variables TemplateVariables) (string, error)
MakeShellCommand render text template with given `variables` render-context
Types ¶
type Runner ¶
type Runner struct {
Conn ssh.Connection
Prefix string
OS string
Verbose bool
}
Runner bundles a connection to a host with the verbosity and other options for running commands via SSH.
func (*Runner) Run ¶
Run executes a given command/script, optionally printing its output to stdout/stderr.
func (*Runner) WaitForCondition ¶
WaitForCondition waits for something to be true.
type Tee ¶
type Tee struct {
// contains filtered or unexported fields
}
Tee mimics the unix `tee` command by piping its input through to the upstream writer and also capturing it in a buffer.
type TemplateVariables ¶
type TemplateVariables map[string]interface{}
TemplateVariables is a render context for templates
Click to show internal directories.
Click to hide internal directories.