Documentation
¶
Index ¶
- func ContinueReconciling() (*reconcile.Result, error)
- func DoNotRequeue() (*reconcile.Result, error)
- func Evaluate(r *reconcile.Result, e error) (reconcile.Result, error)
- func Requeue() (*reconcile.Result, error)
- func RequeueWithDelay(dur time.Duration) (*reconcile.Result, error)
- func RequeueWithDelayAndError(dur time.Duration, e error) (*reconcile.Result, error)
- func RequeueWithError(e error) (*reconcile.Result, error)
- func ShouldContinue(r *ctrl.Result, err error) bool
- func ShouldHaltOrRequeue(r *ctrl.Result, err error) bool
- func ShouldRequeue(r *ctrl.Result, err error) bool
- type Fn
- type FnWithRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContinueReconciling ¶
ContinueReconciling indicates that the reconciliation block should continue by returning a nil result and a nil error
func DoNotRequeue ¶
DoNotRequeue returns a controller result pairing specifying not to requeue.
func Evaluate ¶
Evaluate returns the actual reconcile struct and error. Wrap helpers in this when returning from within the top-level Reconciler.
func Requeue ¶
Requeue returns a controller result pairing specifying to requeue with no error message implied. This returns no error.
func RequeueWithDelay ¶
RequeueWithDelay returns a controller result pairing specifying to requeue after a delay. This returns no error.
func RequeueWithDelayAndError ¶
RequeueWithDelayAndError returns a controller result pairing specifying to requeue after a delay with an error message.
func RequeueWithError ¶
RequeueWithError returns a controller result pairing specifying to requeue with an error message.
func ShouldContinue ¶
ShouldContinue returns the inverse of ShouldHalt.
func ShouldHaltOrRequeue ¶
ShouldHaltOrRequeue returns true if reconciler result is not nil or the err is not nil. In theory, the error evaluation is not needed because ShouldRequeue handles it, but it's included in case ShouldHaltOrRequeue is called directly.