ErrNoErrorsInBody is returned when an HTTP response body parses to an empty errcode.Errors slice.
AddEtagToTag allows a client to supply an eTag to Get which will be used for a conditional HTTP request. If the eTag matches, a nil manifest and ErrManifestNotModified error will be returned. etag is automatically quoted when added to this map.
HandleErrorResponse returns error parsed from HTTP response for an unsuccessful HTTP response code (in the range 400 - 499 inclusive). An UnexpectedHTTPStatusError returned for response code outside of expected range.
func NewRepository(name reference.Named, baseURL string, transport http.RoundTripper) (distribution.Repository, error)
NewRepository creates a new Repository for the given repository name and base URL.
ReturnContentDigest allows a client to set a the content digest on a successful request from the 'Docker-Content-Digest' header. This returned digest is represents the digest which the registry uses to refer to the content and can be used to delete the content.
SuccessStatus returns true if the argument is a successful HTTP response code (in the range 200 - 399 inclusive).
WithMountFrom returns a BlobCreateOption which designates that the blob should be mounted from the given canonical reference.
Registry provides an interface for calling Repositories, which returns a catalog of repositories.
NewRegistry creates a registry namespace which can be used to get a listing of repositories
UnexpectedHTTPResponseError is returned when an expected HTTP status code is returned, but the content was unexpected and failed to be parsed.
UnexpectedHTTPStatusError is returned when an unexpected HTTP status is returned when making a registry api call.