package
0.20.3
Repository: https://github.com/google/go-containerregistry.git
Documentation: pkg.go.dev

# README

name

GoDoc

# Functions

Insecure is an Option that allows image references to be fetched without TLS.
IsErrBadName returns true if the given error is an ErrBadName.
MustParseReference behaves like ParseReference, but panics instead of returning an error.
NewDigest returns a new Digest representing the given name.
NewInsecureRegistry returns an Insecure Registry based on the given name.
NewRegistry returns a Registry based on the given name.
NewRepository returns a new Repository representing the given name, according to the given strictness.
NewTag returns a new Tag representing the given name, according to the given strictness.
ParseReference parses the string as a reference, either by tag or digest.
StrictValidation is an Option that requires image references to be fully specified; i.e.
WeakValidation is an Option that sets defaults when parsing names, see StrictValidation.
WithDefaultRegistry sets the default registry that will be used if one is not provided.
WithDefaultTag sets the default tag that will be used if one is not provided.

# Constants

DefaultRegistry is the registry name that will be used if no registry provided and the default is not overridden.
DefaultTag is the tag name that will be used if no tag provided and the default is not overridden.

# Structs

Digest stores a digest name in a structured form.
ErrBadName is an error for when a bad docker name is supplied.
Registry stores a docker registry name in a structured form.
Repository stores a docker repository name in a structured form.
Tag stores a docker tag name in a structured form.

# Interfaces

Reference defines the interface that consumers use when they can take either a tag or a digest.

# Type aliases

Option is a functional option for name parsing.
OptionFn is a function that returns an option.