Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Amqp ¶
type Amqp struct { Credentials Host VirtualHost string }
type BaseJobConfig ¶ added in v1.7.0
type BaseJobConfig struct { Name string `hcl:",key" json:"name"` Command string `hcl:"command" json:"command"` Args []string `hcl:"args" json:"args"` Env []string `hcl:"env" json:"env"` CanFail bool `hcl:"canFail" json:"canFail"` Controllable bool `hcl:"controllable" json:"controllable"` WorkingDirectory string `hcl:"workingDirectory" json:"workingDirectory,omitempty"` Stdout string `hcl:"stdout" json:"stdout,omitempty"` Stderr string `hcl:"stderr" json:"stderr,omitempty"` }
type BootJobConfig ¶ added in v1.6.0
type BootJobConfig struct { BaseJobConfig `hcl:",squash"` Timeout string `hcl:"timeout"` }
type Credentials ¶
type Ignition ¶
type Ignition struct { Probes []Probe `hcl:"probe"` Files []File `hcl:"file"` Jobs []JobConfig `hcl:"job"` BootJobs []BootJobConfig `hcl:"boot"` }
func (*Ignition) GenerateFromConfigDir ¶
type JobConfig ¶
type JobConfig struct { BaseJobConfig `hcl:",squash" json:",inline"` // optional fields for "normal" jobs // these will be ignored if fields for lazy jobs are set Watches []Watch `hcl:"watch" json:"watch"` MaxAttempts_ *int `hcl:"max_attempts" json:"-,omitempty"` // deprecated MaxAttempts *int `hcl:"maxAttempts" json:"maxAttempts,omitempty"` OneTime bool `hcl:"oneTime" json:"oneTime"` // fields required for lazy activation Laziness *Laziness `hcl:"lazy" json:"lazy"` Listeners []Listener `hcl:"listen" json:"listen"` }
func (*JobConfig) GetMaxAttempts ¶ added in v1.9.2
type Watch ¶
type Watch struct { Filename string `hcl:",key"` Signal int `hcl:"signal"` Restart bool `hcl:"restart"` PreCommand *WatchCommand `hcl:"preCommand"` PostCommand *WatchCommand `hcl:"postCommand"` }
type WatchCommand ¶ added in v1.7.7
Click to show internal directories.
Click to hide internal directories.