Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobManager ¶
type JobManager struct {
// contains filtered or unexported fields
}
func NewJobManager ¶
func NewJobManager(papi cluster.JobPluginAPI, env mscalendar.Env) *JobManager
NewJobManager creates a JobManager for to let plugin.go coordinate with the scheduled jobs.
func (*JobManager) AddJob ¶
func (jm *JobManager) AddJob(job RegisteredJob)
AddJob accepts a RegisteredJob, stores it, and activates it if enabled.
func (*JobManager) Close ¶
func (jm *JobManager) Close() error
Close deactivates all active jobs. It is called in the plugin hook OnDeactivate.
type RegisteredJob ¶
type RegisteredJob struct {
// contains filtered or unexported fields
}
func NewDailySummaryJob ¶
func NewDailySummaryJob() RegisteredJob
NewDailySummaryJob creates a RegisteredJob with the parameters specific to the DailySummaryJob
func NewRenewJob ¶
func NewRenewJob() RegisteredJob
func NewStatusSyncJob ¶
func NewStatusSyncJob() RegisteredJob
NewStatusSyncJob creates a RegisteredJob with the parameters specific to the StatusSyncJob
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package mock_cluster is a generated GoMock package.
|
Package mock_cluster is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.