errors

package
v0.6.22 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ignore

func Ignore(err error, is ErrorIs) 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 IgnoreAny

func IgnoreAny(err error, is ...ErrorIs) error

IgnoreAny ignores errors that satisfy any of the supplied ErrorIs functions by returning nil. Errors that do not satisfy any of the supplied functions are returned unmodified.

func IsNamespaceTerminating

func IsNamespaceTerminating(err error) bool

IsNamespaceTerminating returns true if the namespace is terminating.

func IsNotFound added in v0.4.2

func IsNotFound(err error) bool

func IsScanJobContainerWaiting

func IsScanJobContainerWaiting(err error) bool

Types

type ErrorIs

type ErrorIs func(err error) bool

ErrorIs returns true if an error satisfies a particular condition.

type NotFoundError added in v0.4.2

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

func NewNotFound added in v0.4.2

func NewNotFound(text string) *NotFoundError

func (*NotFoundError) Error added in v0.4.2

func (e *NotFoundError) Error() string

type ScanJobContainerWaitingError

type ScanJobContainerWaitingError struct {
	State corev1.ContainerStateWaiting
}

func (*ScanJobContainerWaitingError) Error

Jump to

Keyboard shortcuts

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