errdefs

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyExists   = errdefs.ErrAlreadyExists
	ErrNotFound        = errdefs.ErrNotFound
	ErrInvalidArgument = errors.New("invalid argument")
	ErrUnavailable     = errors.New("unavailable")
	ErrNotImplemented  = errors.New("not implemented") // represents not supported and unimplemented
	ErrDeviceBusy      = errors.New("device busy")     // represents not supported and unimplemented
)

Functions

func IsAlreadyExists

func IsAlreadyExists(err error) bool

IsAlreadyExists returns true if the error is due to already exists

func IsConnectionClosed

func IsConnectionClosed(err error) bool

IsConnectionClosed returns true if error is due to connection closed this is used when snapshotter closed by sig term

func IsErofsMounted added in v0.3.0

func IsErofsMounted(err error) bool

func IsNotFound added in v0.3.0

func IsNotFound(err error) bool

IsNotFound returns true if the error is due to a missing object

Types

This section is empty.

Jump to

Keyboard shortcuts

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