Versions in this module Expand all Collapse all v4 v4.1.0 May 1, 2019 Changes in this version + const NameTotalLengthMax + var DigestRegexp = match(`[A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][[:xdigit:]]{32,}`) + var ErrDigestInvalidFormat = errors.New("invalid digest format") + var ErrNameContainsUppercase = errors.New("repository name must be lowercase") + var ErrNameEmpty = errors.New("repository name must have at least one component") + var ErrNameTooLong = fmt.Errorf("repository name must not be more than %v characters", NameTotalLengthMax) + var ErrReferenceInvalidFormat = errors.New("invalid reference format") + var ErrTagInvalidFormat = errors.New("invalid tag format") + var NameRegexp = expression(optional(hostnameRegexp, literal(`/`)), nameComponentRegexp, ...) + var ReferenceRegexp = anchored(capture(NameRegexp), optional(literal(":"), capture(TagRegexp)), ...) + var TagRegexp = match(`[\w][\w.-]{0,127}`) + func Match(pattern string, ref Reference) (bool, error) + func SplitHostname(named Named) (string, string) + type Canonical interface + Digest func() digest.Digest + func WithDigest(name Named, digest digest.Digest) (Canonical, error) + type Digested interface + Digest func() digest.Digest + type Field struct + func AsField(reference Reference) Field + func (f *Field) UnmarshalText(p []byte) error + func (f Field) MarshalText() (p []byte, err error) + func (f Field) Reference() Reference + type Named interface + Name func() string + func ParseNamed(s string) (Named, error) + func TrimNamed(ref Named) Named + func WithName(name string) (Named, error) + type NamedTagged interface + Tag func() string + func WithTag(name Named, tag string) (NamedTagged, error) + type Reference interface + String func() string + func Parse(s string) (Reference, error) + type Tagged interface + Tag func() string v4.0.0-alpha.0 Sep 13, 2018 Other modules containing this package gopkg.in/openshift/origin.v3