package errdefs
import "github.com/containerd/nydus-snapshotter/pkg/errdefs"
Index ¶
- Variables
- func IsAlreadyExists(err error) bool
- func IsConnectionClosed(err error) bool
- func IsErofsMounted(err error) bool
- func IsNotFound(err error) bool
Variables ¶
var ( ErrAlreadyExists = errdefs.ErrAlreadyExists ErrNotFound = errdefs.ErrNotFound ErrInvalidArgument = errors.New("invalid argument") = 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 ¶
IsAlreadyExists returns true if the error is due to already exists
func IsConnectionClosed ¶
IsConnectionClosed returns true if error is due to connection closed this is used when snapshotter closed by sig term
func IsErofsMounted ¶
func IsNotFound ¶
IsNotFound returns true if the error is due to a missing object
Source Files ¶
- Version
- v0.15.1 (latest)
- Published
- Jan 26, 2025
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- now –
Tools for package owners.