Documentation ¶
Index ¶
- type Crontab
- func (ct *Crontab) AddJob(id string, labels map[string]string, jobType string) error
- func (ct *Crontab) DeactivateJob(id string, labels map[string]string) error
- func (ct *Crontab) GetEntries() []cron.Entry
- func (ct *Crontab) GetNumberOfActiveJobs() float64
- func (ct *Crontab) GetNumberOfInactiveJobs() float64
- func (ct *Crontab) RemoveJob(id string)
- type DockerJob
- type JobEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crontab ¶
type Crontab struct {
// contains filtered or unexported fields
}
Crontab is the struct that holds the cron runner
func NewRancherTypeCrontab ¶ added in v0.3.0
func (*Crontab) DeactivateJob ¶ added in v0.3.0
func (*Crontab) GetEntries ¶
func (ct *Crontab) GetEntries() []cron.Entry
GetEntries lists the cron entries
func (*Crontab) GetNumberOfActiveJobs ¶ added in v0.3.0
func (*Crontab) GetNumberOfInactiveJobs ¶ added in v0.3.0
type DockerJob ¶
type DockerJob struct { ID string Action string Schedule string Leader bool Labels map[string]string RancherServiceUUID string Active bool // contains filtered or unexported fields }
DockerJob implements the cron job interface
func NewDockerJob ¶
NewDockerJob creates a DockerJob and sets defaults
func (*DockerJob) Deactivate ¶
func (dj *DockerJob) Deactivate()
Deactivate Sets the Actve attribute to false. This will skip running
Click to show internal directories.
Click to hide internal directories.