package
Version:
v2.2.0+incompatible
Opens a new window with list of versions in this module.
Published: Jul 6, 2017
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
The scheduler package provides a client to run jobs on a cron schedule and managed running jobs.
func NewClient(scheduleConfigPath, scheduleConfigName string) (*client, error)
type ClientInterface interface {
AsyncAddScheduledJob(Job, func())
JobList() jobList
Start()
Stop()
Running(string, Job) bool
StartJob(string, Job)
FinishJob(string, Job)
}
type Job struct {
Cron string `yaml:"cron"`
Template string `yaml:"template"`
Description string `yaml:"description"`
Image string `yaml:"image"`
Args []string `yaml:"args"`
Namespace string `yaml:"namespace"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.