handlers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// Reconcile compares the actual state with the desired, and attempts to
	// converge the two.
	Reconcile(obj interface{}) (controller.Result, error)

	// AddFinalizer adds a finalizer to the object if it not exists,
	// If a finalizer added, this func needs to update the object to the Kubernetes.
	AddFinalizer(obj interface{}) (added bool, err error)

	// HandleFinalizer needs to do things:
	// - execute the finalizer, like deleting any external resources associated with the obj
	// - remove the coorspending finalizer key from the obj
	// - update the object to the Kubernetes
	//
	// Ensure that this func must be idempotent and safe to invoke
	// multiple types for same object.
	HandleFinalizer(obj interface{}) error
}

Interface ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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