Documentation ¶
Overview ¶
Package runner [responsible for updating the config and managing jobs accordingly]
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigOptions ¶ added in v0.8.3
type ConfigOptions struct { PathsCSV string // Comma-separated config location URLs BackupConfig string // Raw backup config Format string // json or yaml RefreshTimeout time.Duration // How often to refresh config }
ConfigOptions for fetching job configs for the runner
func NewConfigOptionsWithFlags ¶ added in v0.8.3
func NewConfigOptionsWithFlags() *ConfigOptions
NewConfigOptionsWithFlags returns ConfigOptions initialized with command line flags.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner executes jobs according to the (fetched from remote) configuration
func New ¶
func New(cfgOptions *ConfigOptions, globalJobsCfg *jobs.GlobalConfig) (*Runner, error)
New runner according to the config
Click to show internal directories.
Click to hide internal directories.