imagesource

package
v0.0.0-alpha.0....-6d61f76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

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

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

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 (TypedImageReference) EqualRegistry

func (t TypedImageReference) EqualRegistry(other TypedImageReference) bool

func (TypedImageReference) String

func (t TypedImageReference) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL