Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidImageFormat = fmt.Errorf("image string is either invalid or empty") ErrInvalidReferenceFormat = fmt.Errorf("reference string is either invalid or empty") )
var DigestRegexp = regexp.MustCompile(digestPat)
DigestRegexp matches well-formed digests, including algorithm (e.g. "sha256:<encoded>").
var DomainRegexp = regexp.MustCompile(domainAndPort)
DomainRegexp matches hostname or IP-addresses, optionally including a port number. It defines the structure of potential domain components that may be part of image names. This is purposely a subset of what is allowed by DNS to ensure backwards compatibility with Docker image names. It may be a subset of DNS domain name, an IPv4 address in decimal format, or an IPv6 address between square brackets (excluding zone identifiers as defined by RFC 6874 or special addresses such as IPv4-Mapped).
var IdentifierRegexp = regexp.MustCompile(identifier)
IdentifierRegexp is the format for string identifier used as a content addressable identifier using sha256. These identifiers are like digests without the algorithm, since sha256 is used.
var NameRegexp = regexp.MustCompile(namePat)
NameRegexp is the format for the name component of references, including an optional domain and port, but without tag or digest suffix.
var ReferenceRegexp = regexp.MustCompile(referencePat)
ReferenceRegexp is the full supported format of a reference. The regexp is anchored and has capturing groups for name, tag, and digest components.
var TagRegexp = regexp.MustCompile(tag)
TagRegexp matches valid tag names. From docker/docker:graph/tags.go.