Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandSet ¶
type CommandSet struct { Generic *CommandSetCommand `json:"-"` Commands []*CommandSetCommand `json:"commands"` }
func NewDefaultCommandSet ¶
func NewDefaultCommandSet() *CommandSet
func (*CommandSet) ApplyConfig ¶
func (c *CommandSet) ApplyConfig(conf *config.Job)
func (*CommandSet) DeepCopy ¶
func (c *CommandSet) DeepCopy() *CommandSet
func (*CommandSet) Validate ¶
func (c *CommandSet) Validate() []error
type CommandSetCommand ¶
type CommandSetCommand struct { Command string `json:"command"` Expect []string `json:"expect"` ExpectNot []string `json:"expect_not"` Timeout int `json:"timeout"` ImplicitEnter bool `json:"implicit_enter"` }
func NewDefaultCommandSetCommand ¶
func NewDefaultCommandSetCommand() *CommandSetCommand
func (*CommandSetCommand) ApplyConfig ¶
func (c *CommandSetCommand) ApplyConfig(conf *config.JobCommand)
func (*CommandSetCommand) DeepCopy ¶
func (c *CommandSetCommand) DeepCopy() *CommandSetCommand
func (*CommandSetCommand) Validate ¶
func (c *CommandSetCommand) Validate() []error
Validate after all configs applied
type CronSchedule ¶
type CronSchedule struct {
// contains filtered or unexported fields
}
func NewCronSchedule ¶
func NewCronSchedule(cron string) (*CronSchedule, error)
func (*CronSchedule) DeepCopy ¶
func (c *CronSchedule) DeepCopy() Schedule
type Device ¶
type Device struct { Name string `json:"name"` Host string `json:"host"` *DeviceCredentials `json:"credentials"` *DeviceProtocol `json:"protocol"` Tags []string `json:"-"` Jobs map[string]*Job `json:"-"` }
func NewDefaultDevice ¶
type DeviceCredentials ¶
type DeviceProtocol ¶
type DeviceProtocol struct { Type string `json:"type"` *SshDeviceProtocol `json:"ssh,omitempty"` }
type FileSet ¶
type FileSet struct {
Files []*FileSetFile
}
func NewDefaultFileSet ¶
func NewDefaultFileSet() *FileSet
func (*FileSet) ApplyConfig ¶
type FileSetFile ¶
func NewDefaultFileSetFile ¶
func NewDefaultFileSetFile() *FileSetFile
func (*FileSetFile) ApplyConfig ¶
func (f *FileSetFile) ApplyConfig(fileName string, conf *config.JobFile)
func (*FileSetFile) DeepCopy ¶
func (f *FileSetFile) DeepCopy() *FileSetFile
func (*FileSetFile) Validate ¶
func (f *FileSetFile) Validate() []error
type Job ¶
type Job struct { Name string `json:"name"` *CommandSet `json:"command_set"` *FileSet `json:"file_set"` Schedule `json:"-"` Scrubbers []*JobScrubber `json:"scrubbers"` TemplateValues map[string]string `json:"template_values"` }
func NewDefaultJob ¶
func (*Job) ApplyTemplateValues ¶
func (j *Job) ApplyTemplateValues()
type JobScrubber ¶
type JobScrubber struct { Type string `json:"type"` Search string `json:"search"` Replace string `json:"replace"` }
func NewJobScrubberFromConfig ¶
func NewJobScrubberFromConfig(conf *config.JobScrubber) *JobScrubber
func (*JobScrubber) DeepCopy ¶
func (j *JobScrubber) DeepCopy() *JobScrubber
func (*JobScrubber) Validate ¶
func (j *JobScrubber) Validate() error
type Schedule ¶
func NewScheduleFromConfig ¶
func NewScheduleFromConfig(sched *config.JobSchedule) (Schedule, error)
type SshDeviceProtocol ¶
Click to show internal directories.
Click to hide internal directories.