ctrlrequeue

package
v0.0.0-...-cd07ea3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ctrlrequeue provides helper functions with clear names for informing the controller when to requeue (or not) reconciliations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoRequeue

func NoRequeue() (ctrl.Result, error)

NoRequeue represents that a request shouldn't be requeued for further processing.

func Requeue

func Requeue(requeue bool) (ctrl.Result, error)

Requeue represents that a request should be requeued for further processing.

func RequeueAfter

func RequeueAfter(interval time.Duration) (ctrl.Result, error)

RequeueAfter represents that a request should be requeued for further processing after the given interval has passed.

func RequeueAfterError

func RequeueAfterError(interval time.Duration, err error) (ctrl.Result, error)

RequeueAfterError represents that a request should be requeued for further processing after the given interval has passed due to an error.

func RequeueError

func RequeueError(err error) (ctrl.Result, error)

RequeueError represents that a request should be requeued for further processing due to an error.

func RequeueImmediately

func RequeueImmediately() (ctrl.Result, error)

RequeueImmediately represents that a request should be requeued immediately for further processing.

func ShouldRequeue

func ShouldRequeue(result ctrl.Result, err error) bool

ShouldRequeue returns true if we should requeue the request for reconciliation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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