Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists = fmt.Errorf("blob already exists in the target location")
ErrAlreadyExists may be returned by the blob Create function to indicate that the blob already exists.
Functions ¶
func NewDryRun ¶
func NewDryRun(ref TypedImageReference) (distribution.Repository, error)
Types ¶
type DestinationType ¶
type DestinationType string
var ( DestinationRegistry DestinationType = "docker" DestinationS3 DestinationType = "s3" DestinationFile DestinationType = "file" )
func (DestinationType) Prefix ¶
func (t DestinationType) Prefix() string
type Options ¶
type Options struct { FileDir string Insecure bool AttemptS3BucketCopy []string RegistryContext *registryclient.Context }
Options contains inputs necessary to build a repository implementation for a reference.
func (*Options) ExpandWildcard ¶
func (o *Options) ExpandWildcard(ref TypedImageReference) ([]TypedImageReference, error)
ExpandWildcard expands the provided typed reference (which is known to have an expansion) to a set of explicit image references.
func (*Options) Repository ¶
func (o *Options) Repository(ctx context.Context, ref TypedImageReference) (distribution.Repository, error)
Repository retrieves the appropriate repository implementation for the given typed reference.
type TypedImageReference ¶
type TypedImageReference struct { Type DestinationType Ref reference.DockerImageReference }
func ParseDestinationReference ¶
func ParseDestinationReference(ref string) (TypedImageReference, error)
func ParseReference ¶
func ParseReference(ref string) (TypedImageReference, error)
func ParseSourceReference ¶
func ParseSourceReference(ref string, expandFn func(ref TypedImageReference) ([]TypedImageReference, error)) ([]TypedImageReference, error)
func (TypedImageReference) Equal ¶
func (t TypedImageReference) Equal(other TypedImageReference) bool
func (TypedImageReference) EqualRegistry ¶
func (t TypedImageReference) EqualRegistry(other TypedImageReference) bool
func (TypedImageReference) String ¶
func (t TypedImageReference) String() string
Click to show internal directories.
Click to hide internal directories.