scheduler

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log logr.Logger, ctrlClient ctrlclient.Client, crons map[types.NamespacedName]*cronpkg.Cron, autoscalerName types.NamespacedName) scheduler

Types

type Job

type Job struct {
	ScheduleName   types.NamespacedName
	AutoscalerName types.NamespacedName
	Log            logr.Logger
	CtrlClient     ctrlclient.Client
}

Job implements cronpkg.Job

func (Job) Run

func (j Job) Run()

type Scheduler

type Scheduler interface {
	Start()
	Stop()
}

Jump to

Keyboard shortcuts

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