jobs

package
v0.0.0-...-5de3a08 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

Directories

Path Synopsis
Package mock_cluster is a generated GoMock package.
Package mock_cluster is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL