cronscheduler

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CronDiagnosisPrefix is the name prefix for diagnoses generated by cron trigger.
	CronDiagnosisPrefix = "cron"
	// CronAnnotation is the annotation used to store the cron that triggers a diagnosis.
	CronAnnotation = util.KubeDiagPrefix + CronDiagnosisPrefix
)

Functions

This section is empty.

Types

type CronScheduler

type CronScheduler interface {
	// Run runs the CronScheduler.
	Run(<-chan struct{})
}

CronScheduler generates diagnoses periodically at fixed times.

func NewCronScheduler

func NewCronScheduler(
	ctx context.Context,
	logger logr.Logger,
	cli client.Client,
	cache cache.Cache,
	cronSchedulerEnabled bool,
) CronScheduler

NewCronScheduler creates a new CronScheduler.

Jump to

Keyboard shortcuts

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