const RepositoryNameTotalLengthMax …
const NameTotalLengthMax …
var ErrReferenceInvalidFormat …
var ErrTagInvalidFormat …
var ErrDigestInvalidFormat …
var ErrNameContainsUppercase …
var ErrNameEmpty …
var ErrNameTooLong …
var ErrNameNotCanonical …
type Reference …
type Field …
func AsField(reference Reference) Field { … }
func (f Field) Reference() Reference { … }
func (f Field) MarshalText() (p []byte, err error) { … }
func (f *Field) UnmarshalText(p []byte) error { … }
type Named …
type Tagged …
type NamedTagged …
type Digested …
type Canonical …
type namedRepository …
func Domain(named Named) string { … }
func Path(named Named) (name string) { … }
func splitDomain(name string) (string, string) { … }
func Parse(s string) (Reference, error) { … }
func ParseNamed(s string) (Named, error) { … }
func WithName(name string) (Named, error) { … }
func WithTag(name Named, tag string) (NamedTagged, error) { … }
func WithDigest(name Named, digest digest.Digest) (Canonical, error) { … }
func TrimNamed(ref Named) Named { … }
func getBestReferenceType(ref reference) Reference { … }
type reference …
func (r reference) String() string { … }
func (r reference) Tag() string { … }
func (r reference) Digest() digest.Digest { … }
type repository …
func (r repository) String() string { … }
func (r repository) Name() string { … }
func (r repository) Domain() string { … }
func (r repository) Path() string { … }
type digestReference …
func (d digestReference) String() string { … }
func (d digestReference) Digest() digest.Digest { … }
type taggedReference …
func (t taggedReference) String() string { … }
func (t taggedReference) Tag() string { … }
type canonicalReference …
func (c canonicalReference) String() string { … }
func (c canonicalReference) Digest() digest.Digest { … }