result

package
v0.0.0-...-a7b7215 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: UPL-1.0 Imports: 3 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Delay(min int, max int, units time.Duration) Builder
	ShortDelay() Builder
	Error(err error) Builder
	Build() Result
}

func NewBuilder

func NewBuilder() Builder

type Result

type Result interface {
	ShouldRequeue() bool
	GetCtrlRuntimeResult() ctrl.Result
	GetError() error
	IsError() bool
}

func NewResult

func NewResult() Result

func NewResultRequeueDelay

func NewResultRequeueDelay(min int, max int, units time.Duration) Result

NewResultRequeueDelay returns a new Result that will cause requeue after the specified delay

func NewResultShortRequeueDelay

func NewResultShortRequeueDelay() Result

NewResultShortRequeueDelay returns a new Result that will cause requeue after a short delay

func NewResultShortRequeueDelayIfError

func NewResultShortRequeueDelayIfError(err error) Result

NewResultShortRequeueDelayIfError returns a new Result that will cause requeue after a short delay if there is an error

func NewResultShortRequeueDelayWithError

func NewResultShortRequeueDelayWithError(err error) Result

NewResultShortRequeueDelayWithError returns a new Result that will cause requeue after a short delay

Jump to

Keyboard shortcuts

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