package
20.10.0-rc1+incompatible
Repository: https://github.com/agilebits/moby.git
Documentation: pkg.go.dev
# Functions
Cancelled is a helper to create an error of the class with the same name from any error type.
Conflict is a helper to create an error of the class with the same name from any error type.
DataLoss is a helper to create an error of the class with the same name from any error type.
Deadline is a helper to create an error of the class with the same name from any error type.
Forbidden is a helper to create an error of the class with the same name from any error type.
FromContext returns the error class from the passed in context.
FromStatusCode creates an errdef error, based on the provided HTTP status-code.
GetHTTPErrorStatusCode retrieves status code from error message.
InvalidParameter is a helper to create an error of the class with the same name from any error type.
IsCancelled returns if the passed in error is an ErrCancelled.
IsConflict returns if the passed in error is an ErrConflict.
IsDataLoss returns if the passed in error is an ErrDataLoss.
IsDeadline returns if the passed in error is an ErrDeadline.
IsForbidden returns if the passed in error is an ErrForbidden.
IsInvalidParameter returns if the passed in error is an ErrInvalidParameter.
IsNotFound returns if the passed in error is an ErrNotFound.
IsNotImplemented returns if the passed in error is an ErrNotImplemented.
IsNotModified returns if the passed in error is a NotModified error.
IsSystem returns if the passed in error is an ErrSystem.
IsUnauthorized returns if the passed in error is an ErrUnauthorized.
IsUnavailable returns if the passed in error is an ErrUnavailable.
IsUnknown returns if the passed in error is an ErrUnknown.
NotFound is a helper to create an error of the class with the same name from any error type.
NotImplemented is a helper to create an error of the class with the same name from any error type.
NotModified is a helper to create an error of the class with the same name from any error type.
System is a helper to create an error of the class with the same name from any error type.
Unauthorized is a helper to create an error of the class with the same name from any error type.
Unavailable is a helper to create an error of the class with the same name from any error type.
Unknown is a helper to create an error of the class with the same name from any error type.
# Interfaces
ErrCancelled signals that the action was cancelled.
ErrConflict signals that some internal state conflicts with the requested action and can't be performed.
ErrDataLoss indicates that data was lost or there is data corruption.
ErrDeadline signals that the deadline was reached before the action completed.
ErrForbidden signals that the requested action cannot be performed under any circumstances.
ErrInvalidParameter signals that the user input is invalid.
ErrNotFound signals that the requested object doesn't exist.
ErrNotImplemented signals that the requested action/feature is not implemented on the system as configured.
ErrNotModified signals that an action can't be performed because it's already in the desired state.
ErrSystem signals that some internal error occurred.
ErrUnauthorized is used to signify that the user is not authorized to perform a specific action.
ErrUnavailable signals that the requested action/subsystem is not available.
ErrUnknown signals that the kind of error that occurred is not known.