Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAll ¶
func RegisterAll(mc rocket.MissionController)
RegisterAll all built in task types with the passed mission control.
Types ¶
type Fetch ¶
type Fetch struct {
Resources []FetchResource `mapstructure:"resources"`
Log bool `mapstructure:"log"`
}
Fetch task is used get one or more web resources.
type FetchResource ¶
type FetchResource struct {
Source rocket.InputSpec `mapstructure:"source"`
Output rocket.OutputSpec `mapstructure:"output"`
}
FetchResource defines the input source and output target runbooks for a fetch request.
type Run ¶
type Run struct {
// Command to execute. This is a raw executed command and is not
// wrapped ina shell, as such globing etc may not work as expected.
// Command is subject to string expansion.
Command string `mapstructure:"command"`
// List of arguments, subject to string expansion.
Args []string `mapstructure:"args"`
// GlobArgs specifies if arguments should be glob expanded prior
// to passing the program. If true *.go would ne expanded as a arg per matching file.
GlobArgs bool `mapstructure:"glob"`
// Redirect handles input and output redirection.
rocket.Redirection `mapstructure:",squash"`
}
Run task is used to run a specific task.
type Template ¶
type Template struct {
Template rocket.InputSpec `mapstructure:"template"`
// OutputSpec is the runbook for the template output
Output *rocket.OutputSpec `mapstructure:"output"`
// Delims are the delimiters used to identify template script.
// Leave blank for the default go templating delimiters
Delims rocket.Delims `mapstructure:"delims"`
}
Template is a task to expand the input file using the Template file. Output is written to the redirected STDOUT Delims is used to change the standard golang templatiing delimiters This can be useful when processing a source file that itself uses golang tempalting.
Click to show internal directories.
Click to hide internal directories.