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

# 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.
Router builds a gorilla router with named routes for the various API methods.
RouterWithPrefix builds a gorilla router with a configured prefix on all routes.

# Constants

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.
The following are definitions of the name under which all V2 routes are registered.

# Variables

APIDescriptor exports descriptions of the layout of the v2 registry API.
ErrorCodeBlobUnknown is returned when a blob is unknown to the registry.
ErrorCodeBlobUploadInvalid is returned when an upload is invalid.
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.
ErrorCodeManifestBlobUnknown is returned when a manifest blob is unknown to the registry.
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 verification.
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.
ErrorCodeTagInvalid is returned when the tag in the manifest does not match the provided tag.

# Structs

BodyDescriptor describes a request body and its expected content type.
MethodDescriptor provides a description of the requests that may be conducted with the target method.
ParameterDescriptor describes the format of a request parameter, which may be a header, path parameter or query parameter.
RequestDescriptor covers a particular set of headers and parameters that can be carried out with the parent method.
ResponseDescriptor describes the components of an API response.
RouteDescriptor describes a route specified by name.
URLBuilder creates registry API urls from a single base endpoint.