ctrlerrors

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(ctx context.Context, obj types.Object, err error, recorder record.EventRecorder) (bool, reconcile.Result)

HandleError analyzes the given error and updates the object's conditions accordingly. It returns a boolean indicating whether the object's conditions were updated and a reconcile.Result that suggests whether to requeue the reconciliation and after what duration.

Types

type BlockedError

type BlockedError interface {
	error
	IsBlocked() bool
}

type CtrlError

type CtrlError struct {
	// contains filtered or unexported fields
}

func BlockedErrorf

func BlockedErrorf(format string, a ...any) *CtrlError

func RetryableErrorf

func RetryableErrorf(format string, a ...any) *CtrlError

func RetryableWithDelayErrorf

func RetryableWithDelayErrorf(delay time.Duration, format string, a ...any) *CtrlError

func (*CtrlError) Error

func (e *CtrlError) Error() string

func (*CtrlError) IsBlocked

func (e *CtrlError) IsBlocked() bool

func (*CtrlError) IsRetryable

func (e *CtrlError) IsRetryable() bool

func (*CtrlError) RetryDelay

func (e *CtrlError) RetryDelay() time.Duration

type RetryableError

type RetryableError interface {
	error
	IsRetryable() bool
}

type RetryableWithDelayError

type RetryableWithDelayError interface {
	error
	RetryableError
	RetryDelay() time.Duration
}

Jump to

Keyboard shortcuts

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