controller

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SyntheticRequeueError = errors.New("synthetic requeue request")

SyntheticRequeueError can be returned from sync() in case of forcing a sync() retry artificially. This can be also done by re-adding the key to queue, but this is cheaper and more convenient.

Functions

func New

func New(
	name string,
	sync func(ctx context.Context, controllerContext types.Context) error,
	syncContext types.Context,
	resyncEvery time.Duration,
	resyncSchedules []cron.Schedule,
	postStartHooks []types.PostStartHook,
	cachesToSync []cache.InformerSynced,
	cacheSyncTimeout time.Duration) types.Controller

Types

This section is empty.

Jump to

Keyboard shortcuts

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