v1

package
v1.4.0-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCronJobGeneratingHandler

func RegisterCronJobGeneratingHandler(ctx context.Context, controller CronJobController, apply apply.Apply,
	condition condition.Cond, name string, handler CronJobGeneratingHandler, opts *generic.GeneratingHandlerOptions)

RegisterCronJobGeneratingHandler configures a CronJobController to execute a CronJobGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

func RegisterCronJobStatusHandler

func RegisterCronJobStatusHandler(ctx context.Context, controller CronJobController, condition condition.Cond, name string, handler CronJobStatusHandler)

RegisterCronJobStatusHandler configures a CronJobController to execute a CronJobStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution

Types

type CronJobCache

type CronJobCache interface {
	generic.CacheInterface[*v1.CronJob]
}

CronJobCache interface for retrieving CronJob resources in memory.

type CronJobClient

type CronJobClient interface {
	generic.ClientInterface[*v1.CronJob, *v1.CronJobList]
}

CronJobClient interface for managing CronJob resources in Kubernetes.

type CronJobController

type CronJobController interface {
	generic.ControllerInterface[*v1.CronJob, *v1.CronJobList]
}

CronJobController interface for managing CronJob resources.

type CronJobGeneratingHandler

type CronJobGeneratingHandler func(obj *v1.CronJob, status v1.CronJobStatus) ([]runtime.Object, v1.CronJobStatus, error)

CronJobGeneratingHandler is the top-level handler that is executed for every CronJob event. It extends CronJobStatusHandler by a returning a slice of child objects to be passed to apply.Apply

type CronJobStatusHandler

type CronJobStatusHandler func(obj *v1.CronJob, status v1.CronJobStatus) (v1.CronJobStatus, error)

CronJobStatusHandler is executed for every added or modified CronJob. Should return the new status to be updated

type Interface

type Interface interface {
	CronJob() CronJobController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

Jump to

Keyboard shortcuts

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