package
3.7.0-rc.0+incompatible
Repository: https://github.com/tnozicka/openshift-github.com-docker-distribution.git
Documentation: pkg.go.dev

# Functions

GetErrorAllDescriptors returns a slice of all ErrorDescriptors that are registered, irrespective of what group they're in.
GetErrorCodeGroup returns the named group of error descriptors.
GetGroupNames returns the list of Error group names that are registered.
ParseErrorCode returns the value by the string error code.
Register will make the passed-in error known to the environment and return a new ErrorCode.
ServeJSON attempts to serve the errcode in a JSON envelope.

# Variables

ErrorCodeDenied is returned if a client does not have sufficient permission to perform an action.
ErrorCodeTooManyRequests is returned if a client attempts too many times to contact a service endpoint.
ErrorCodeUnauthorized is returned if a request requires authentication.
ErrorCodeUnavailable provides a common error to report unavailability of a service or endpoint.
ErrorCodeUnknown is a generic error that can be used as a last resort if there is no situation-specific error message that can be used.
ErrorCodeUnsupported is returned when an operation is not supported.

# Structs

Error provides a wrapper around ErrorCode with extra Details provided.
ErrorDescriptor provides relevant information about a given error code.

# Interfaces

ErrorCoder is the base interface for ErrorCode and Error allowing users of each to just call ErrorCode to get the real ID of each.

# Type aliases

ErrorCode represents the error type.
Errors provides the envelope for multiple errors and a few sugar methods for use within the application.