Documentation ¶
Index ¶
- func IsRunning(stdout string) bool
- type Runner
- func (r *Runner) Run(cmd string, variables TemplateVariables) (string, string, error)
- func (r *Runner) RunRaw(cmd string) (string, string, error)
- func (r *Runner) WaitForCondition(cmd string, timeout time.Duration, validator validatorFunc) bool
- func (r *Runner) WaitForPod(namespace string, name string, timeout time.Duration) error
- type Tee
- type TemplateVariables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.