handlers

package
v1.2.0-rc Latest Latest
Warning

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

Go to latest
Published: Jan 15, 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{}) 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