19 lines
460 B
Go
19 lines
460 B
Go
package workflow
|
|
|
|
type WorkflowInput interface {
|
|
// Workflows returns a slice of Workflows.
|
|
// It returns an error if any of the workflows are invalid.
|
|
//
|
|
// Implementor must clean up any resources (e.g. closing files) after transformation.
|
|
Workflows() ([]Workflow, error)
|
|
}
|
|
|
|
type Workflow struct {
|
|
Name string `yaml:"name"`
|
|
Disabled bool `yaml:"disabled"`
|
|
When string `yaml:"when"`
|
|
Jobs Jobs `yaml:"jobs"`
|
|
}
|
|
|
|
type Jobs map[string]Job
|