Documentation ¶
Index ¶
- func ReconcileHandler(operations []ReconcileOperation) (ctrl.Result, error)
- type OperationResult
- func ContinueProcessing() (OperationResult, error)
- func Requeue() (OperationResult, error)
- func RequeueAfter(delay time.Duration, err error) (OperationResult, error)
- func RequeueOnErrorOrContinue(err error) (OperationResult, error)
- func RequeueOnErrorOrStop(err error) (OperationResult, error)
- func RequeueWithError(err error) (OperationResult, error)
- func StopProcessing() (OperationResult, error)
- type ReconcileOperation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReconcileHandler ¶
func ReconcileHandler(operations []ReconcileOperation) (ctrl.Result, error)
ReconcileHandler will invoke all the operations to be performed as part of a resource reconcile, managing the queue based on the operations' results.
Types ¶
type OperationResult ¶
OperationResult represents the result of a reconcile operation
func ContinueProcessing ¶
func ContinueProcessing() (OperationResult, error)
ContinueProcessing returns an (OperationResult, error) tuple instructing the reconcile loop to continue processing reconciler.
func Requeue ¶
func Requeue() (OperationResult, error)
Requeue returns an (OperationResult, error) tuple instructing the reconcile loop to requeue the object.
func RequeueAfter ¶
func RequeueAfter(delay time.Duration, err error) (OperationResult, error)
RequeueAfter returns an (OperationResult, error) tuple instructing the reconcile loop to requeue the object after the given delay.
func RequeueOnErrorOrContinue ¶
func RequeueOnErrorOrContinue(err error) (OperationResult, error)
RequeueOnErrorOrContinue returns an (OperationResult, error) tuple instructing the reconcile loop to requeue the object in case of an error or to continue processing reconciler.
func RequeueOnErrorOrStop ¶
func RequeueOnErrorOrStop(err error) (OperationResult, error)
RequeueOnErrorOrStop returns an (OperationResult, error) tuple instructing the reconcile loop to requeue the object in case of an error or to stop processing reconciler.
func RequeueWithError ¶
func RequeueWithError(err error) (OperationResult, error)
RequeueWithError returns an (OperationResult, error) tuple instructing the reconcile loop to requeue the object with the given reconcile error.
func StopProcessing ¶
func StopProcessing() (OperationResult, error)
StopProcessing returns an (OperationResult, error) tuple instructing the reconcile loop to stop processing reconciler.
type ReconcileOperation ¶
type ReconcileOperation func() (OperationResult, error)
ReconcileOperation defines the syntax of functions invoked by the ReconcileHandler