Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "development"
Version will be set through build flags used to print version via cmd.
Functions ¶
func RunSchedule ¶
RunSchedule is the main entry entrypoint of butt.
Types ¶
type JobRun ¶
type JobRun struct {
Status int `json:"status"`
Log string `json:"log"`
Name string `json:"name"`
TriggeredAt time.Time `json:"triggered_at"`
TriggeredBy string `json:"triggered_by"`
Triggered []string `json:"triggered,omitempty"`
}
JobRun holds information about a job execution.
type JobSpec ¶
type JobSpec struct {
Cron string `yaml:"cron,omitempty" json:"cron,omitempty"`
Command stringArray `yaml:"command" json:"command"`
Triggers []string `yaml:"triggers,omitempty" json:"triggers,omitempty"`
Name string `json:"name"`
Retries int `yaml:"retries,omitempty" json:"retries,omitempty"`
// contains filtered or unexported fields
}
JobSpec holds specifications and metadata of a job.
Click to show internal directories.
Click to hide internal directories.