trigger

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

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