Documentation ¶
Overview ¶
Run tasks on the hosts and get results
Provide the script structure and functions.
Provide the task structure and functions.
Index ¶
- func RunOnHost(conn remote.Remote, task Task, host host.Host, resultChan chan<- RunOutput)
- func RunOnHostBalancedByScriptName(conn remote.Remote, task Task, ch chan<- RunOutput)
- func RunOnRandomHost(conn remote.Remote, task Task, ch chan<- RunOutput)
- type NRunningScriptsOutput
- type RunOutput
- type Script
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NRunningScriptsOutput ¶
type NRunningScriptsOutput struct {
// contains filtered or unexported fields
}
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
A script that runs on a target host
func NewScriptFromPath ¶
Takes a name and a path to a shell script and returns a Script object
type Task ¶
type Task struct { // A unique ID for the task Id string // A list of files and/or directories that the task requires DepFiles []string // A script for the task to run Script Script // The number of seconds before giving up on a task after it has been // started Timeout uint32 }
A task that runs on a target host
Click to show internal directories.
Click to hide internal directories.