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

# Functions

AsField wraps a reference in a Field for encoding.
Parse parses s and returns a syntactically valid Reference.
ParseNamed parses s and returns a syntactically valid reference implementing the Named interface.
SplitHostname splits a named reference into a hostname and name string.
WithDigest combines the name from "name" and the digest from "digest" to form a reference incorporating both the name and the digest.
WithName returns a named object representing the given string.
WithTag combines the name from "name" and the tag from "tag" to form a reference incorporating both the name and the tag.

# Constants

NameTotalLengthMax is the maximum total number of characters in a repository name.

# Variables

DigestRegexp matches valid digests.
ErrDigestInvalidFormat represents an error while trying to parse a string as a tag.
ErrNameEmpty is returned for empty, invalid repository names.
ErrNameTooLong is returned when a repository name is longer than NameTotalLengthMax.
ErrReferenceInvalidFormat represents an error while trying to parse a string as a reference.
ErrTagInvalidFormat represents an error while trying to parse a string as a tag.
NameRegexp is the format for the name component of references.
ReferenceRegexp is the full supported format of a reference.
TagRegexp matches valid tag names.

# Structs

Field provides a wrapper type for resolving correct reference types when working with encoding.

# Interfaces

Canonical reference is an object with a fully unique name including a name with hostname and digest.
Digested is an object which has a digest in which it can be referenced by.
Named is an object with a full name.
NamedTagged is an object including a name and tag.
Reference is an opaque object reference identifier that may include modifiers such as a hostname, name, tag, and digest.
Tagged is an object which has a tag.