trigger

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReconcilationTrigger

type ReconcilationTrigger interface {
	// RegisterControllerFor registers a controller to receice
	// reconcilation requests for a dedicated group kind, if
	// the Trigger method is called for such an object id.
	//
	// ATTENTION: Because a controller is always responsible for ONLY
	//   one object type, but is does not provide a method to
	//   get this type, this is not validated during the registration.
	//   Therefore this method MUST only be called for a controller
	//   if it is handling this type of object.
	RegisterControllerFor(gk schema.GroupKind, c controller.Controller)

	// Trigger triggers all controllers registered for the GroupKind of the given id
	Trigger(id utils.ObjectId)
}

ReconcilationTrigger is used to register controllers to be externally triggerable for a dedicated object. given by its object id.

func NewReconcilationTrigger

func NewReconcilationTrigger() ReconcilationTrigger

Jump to

Keyboard shortcuts

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