errors

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ignore

func Ignore(is ErrorIs, err error) error

Ignore any errors that satisfy the supplied ErrorIs function by returning nil. Errors that do not satisfy the supplied function are returned unmodified.

func IgnoreAlreadyExists

func IgnoreAlreadyExists(err error) error

IgnoreAlreadyExists returns the given error or nil if the error indicates that a resource already exists.

Types

type ErrorIs

type ErrorIs func(err error) bool

An ErrorIs function returns true if an error satisfies a particular condition.

type ObjectStatusNotReady

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

ObjectStatusNotReady occurs if object is not in a ready state as observed from its status

func NewObjectStatusNotReady

func NewObjectStatusNotReady(obj client.Object, scheme *runtime.Scheme) *ObjectStatusNotReady

func (*ObjectStatusNotReady) Error

func (e *ObjectStatusNotReady) Error() string

Jump to

Keyboard shortcuts

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