error

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	// Reason is the reason for the event error.
	Reason string
	// Error is the actual error for the event.
	Err error
}

Event is an error event. It can be used to construct an event to be recorded.

func (*Event) Error

func (ee *Event) Error() string

Error implements error interface.

func (*Event) Unwrap

func (ee *Event) Unwrap() error

Unwrap returns the underlying error.

type Stalling

type Stalling struct {
	// Reason is the stalled condition reason string.
	Reason string
	// Err is the error that caused stalling. This can be used as the message in
	// stalled condition.
	Err error
}

Stalling is the reconciliation stalled state error. It contains an error and a reason for the stalled condition.

func (*Stalling) Error

func (se *Stalling) Error() string

Error implements error interface.

func (*Stalling) Unwrap

func (se *Stalling) Unwrap() error

Unwrap returns the underlying error.

type Waiting

type Waiting struct {
	// RequeueAfter is the wait duration after which to requeue.
	RequeueAfter time.Duration
	// Reason is the reason for the wait.
	Reason string
	// Err is the error that caused the wait.
	Err error
}

Waiting is the reconciliation wait state error. It contains an error, wait duration and a reason for the wait.

func (*Waiting) Error

func (we *Waiting) Error() string

Error implement error interface.

func (*Waiting) Unwrap

func (we *Waiting) Unwrap() error

Unwrap returns the underlying error.

Jump to

Keyboard shortcuts

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