trigger

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 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 AllHandler

type AllHandler func() error

type Controller

type Controller interface {
	AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
	GroupVersionKind() schema.GroupVersionKind
	Enqueue(namespace, name string)
}

type Trigger

type Trigger interface {
	Trigger()
	OnTrigger(ctx context.Context, name string, handler AllHandler)
	Key() relatedresource.Key
}

func New

func New(controller Controller) Trigger

Jump to

Keyboard shortcuts

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