# Functions
NewURLBuilder creates a URLBuilder with provided root url object.
NewURLBuilderFromRequest uses information from an *http.Request to construct the root url.
NewURLBuilderFromString workes identically to NewURLBuilder except it takes a string argument for the root, returning an error if it is not a valid url.
ParseErrorCode attempts to parse the error code string, returning ErrorCodeUnknown if the error is not known.
Router builds a gorilla router with named routes for the various API methods.
# Constants
ErrorCodeBlobUnknown is returned when a blob is unknown to the registry.
ErrorCodeBlobUploadUnknown is returned when an upload is unknown.
ErrorCodeDigestInvalid is returned when uploading a blob if the provided digest does not match the blob contents.
ErrorCodeManifestInvalid returned when an image manifest is invalid, typically during a PUT operation.
ErrorCodeManifestUnknown returned when image manifest is unknown.
ErrorCodeManifestUnverified is returned when the manifest fails signature verfication.
ErrorCodeNameInvalid is returned when the name in the manifest does not match the provided name.
ErrorCodeNameUnknown when the repository name is not known.
ErrorCodeSizeInvalid is returned when uploading a blob if the provided size does not match the content length.
ErrorCodeTagInvalid is returned when the tag in the manifest does not match the provided tag.
ErrorCodeUnknown is a catch-all for errors not defined below.
The following are definitions of the name under which all V2 routes are registered.
The following are definitions of the name under which all V2 routes are registered.
The following are definitions of the name under which all V2 routes are registered.
The following are definitions of the name under which all V2 routes are registered.
The following are definitions of the name under which all V2 routes are registered.
The following are definitions of the name under which all V2 routes are registered.
# Variables
ErrorDescriptors provides a list of HTTP API Error codes that may be encountered when interacting with the registry API.
RepositoryNameComponentRegexp restricts registtry path components names to start with at least two letters or numbers, with following parts able to separated by one period, dash or underscore.
RepositoryNameRegexp builds on RepositoryNameComponentRegexp to allow 2 to 5 path components, separated by a forward slash.
TagNameRegexp matches valid tag names.
# Structs
Error provides a wrapper around ErrorCode with extra Details provided.
ErrorDescriptor provides relevant information about a given error code.
Errors provides the envelope for multiple errors and a few sugar methods for use within the application.
URLBuilder creates registry API urls from a single base endpoint.
# Type aliases
ErrorCode represents the error type.