errors

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 4 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 IsJobPodNotFound

func IsJobPodNotFound(err error) bool

func IsNamespaceTerminating

func IsNamespaceTerminating(err error) bool

IsNamespaceTerminating returns true if the namespace is terminating.

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 JobPodNotFoundError

type JobPodNotFoundError struct {
	JobName string
}

func NewJobPodNotFound

func NewJobPodNotFound(jobName string) *JobPodNotFoundError

func (*JobPodNotFoundError) Error

func (e *JobPodNotFoundError) 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