Documentation
¶
Index ¶
Constants ¶
View Source
const (
// FileName is default manifest filename
FileName = "gilbert.yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct {
// Condition is shell command that should be successful to run specified job
Condition string `yaml:"if,omitempty"`
// Description is job description
Description string `yaml:"description,omitempty"`
// Task refers to task that should be run.
Task string `yaml:"run,omitempty"`
// Plugin describes what plugin should handle this job.
Plugin string `yaml:"plugin,omitempty"`
// Delay before task start in milliseconds
Delay uint `yaml:"delay,omitempty"`
// Vars is a set of variables defined for this job.
Vars scope.Vars `yaml:"vars,omitempty"`
// Params is a set of arguments for the job.
Params map[string]interface{} `yaml:"params,omitempty"`
}
Job is a single job in task
func (*Job) HasDescription ¶
HasDescription checks if description is available
func (*Job) InvokesPlugin ¶
InvokesPlugin checks if this job should invoke plugin
func (*Job) InvokesTask ¶
InvokesTask checks if this job should call another task
type Manifest ¶
type Manifest struct {
// Version is gilbert file format version
Version string `yaml:"version"`
// Imports is list of imported presets
Imports []string `yaml:"imports,omitempty"`
// Vars is a set of global variables
Vars scope.Vars `yaml:"vars,omitempty"`
// Tasks is a set of tasks
Tasks TaskSet `yaml:"tasks,omitempty"`
// contains filtered or unexported fields
}
Manifest represents manifest file (gilbert.yaml)
func FromDirectory ¶ added in v0.2.0
FromDirectory loads gilbert.yaml from specified directory
func UnmarshalManifest ¶
UnmarshalManifest parses yaml contents into Manifest structure
type PluginConfigError ¶
PluginConfigError is plugin configuration error
func NewPluginConfigError ¶
func NewPluginConfigError(pluginName string, originalError error) *PluginConfigError
NewPluginConfigError creates a new PluginConfigError
func (*PluginConfigError) Error ¶
func (p *PluginConfigError) Error() string
Error satisfies error interface
Click to show internal directories.
Click to hide internal directories.