Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAll ¶
func RegisterAll(mc rocket.MissionControl)
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"`
Timeout *int `mapstructure:"timeout"`
}
Run task is used to run a specific task
type FetchResource ¶
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"`
// LogOutput if true will cause output to be logged rather than going to go to std output.
// If an output file is specified it will be used instead
LogOutput bool `mapstructure:"logStdOut"`
// DirectError when true causes the commands std error output to go direct to running processes std error
// When DirectError is false std error output is logged
DirectError bool `mapstructure:"directStdErr"`
}
Run task is used to run a specific task
type Template ¶
type Template struct {
//Template file
FileTemplate string `mapstructure:"template"`
InlineTemplate string `mapstructure:"inline"`
rocket.OutputSpec `mapstructure:",squash"`
Delims rocket.Delims `mapstructure:"delims"`
}
Tempkate 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.