Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { Name string `yaml:"name"` Image string `yaml:"image"` Timeout int64 `yaml:"timeout"` Command []string `yaml:"command,omitempty"` OnTimeout []string `yaml:"on-timeout,omitempty"` OnFailure []string `yaml:"on-failure,omitempty"` Volumes []string `yaml:"volumes,omitempty"` Environment map[string]string `yaml:"environment,omitempty"` Pid string `yaml:"pid,omitempty"` }
Action is the basic executional unit for a workflow.
type Task ¶
type Task struct { Name string `yaml:"name"` WorkerAddr string `yaml:"worker"` Actions []Action `yaml:"actions"` Volumes []string `yaml:"volumes,omitempty"` Environment map[string]string `yaml:"environment,omitempty"` }
Task represents a task to be executed as part of a workflow.
type Workflow ¶
type Workflow struct { Version string `yaml:"version"` Name string `yaml:"name"` ID string `yaml:"id"` GlobalTimeout int `yaml:"global_timeout"` Tasks []Task `yaml:"tasks"` }
Workflow represents a workflow to be executed.
func MustParse ¶ added in v0.3.0
MustParse parse a slice of bytes to a template. It an error occurs the function triggers a panic. Common utility for testing purpose.
func MustParseFromFile ¶ added in v0.3.0
MustParseFromFile parse a template from a file and it panics if any error is detected. Ideal to be used in testing.
Click to show internal directories.
Click to hide internal directories.