errors

package
v4.0.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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(ctx context.Context, err error)

CheckError is a convenience function to fatally log an exit if the supplied error is non-nil

func IgnoreContainerNotFoundErr

func IgnoreContainerNotFoundErr(err error) error

func IsTransientErr

func IsTransientErr(ctx context.Context, err error) bool

IsTransientErr reports whether the error is transient and logs it.

func IsTransientErrQuiet

func IsTransientErrQuiet(ctx context.Context, err error) bool

IsTransientErrQuiet reports whether the error is transient and logs only if it is.

func NewErrTransient

func NewErrTransient(s string) error

func NewExitErr

func NewExitErr(exitCode int) error

Types

type Exited

type Exited interface {
	ExitCode() int
}

Jump to

Keyboard shortcuts

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