Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecResult ¶
type ExecResult struct {
Stdout string
Stderr string
ExitCode int
// HTTP-specific fields
StatusCode int
Headers http.Header
Body string
}
ExecResult holds the output of a step execution.
func (*ExecResult) Output ¶
func (r *ExecResult) Output() string
Output returns the primary output: Body for HTTP steps, Stdout for others.
type HTTPExecutor ¶
type HTTPExecutor struct {
Step *runbook.HTTPStep
Client *http.Client // nil uses http.DefaultClient
}
HTTPExecutor makes an HTTP request.
type SSHExecutor ¶
SSHExecutor runs a command on a remote host via SSH.
type ShellExecutor ¶
ShellExecutor runs a command in the local shell.
Click to show internal directories.
Click to hide internal directories.