skopeo

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.Context, imageName string, opts *DeleteOptions) error

func ParseImageSource

func ParseImageSource(ctx context.Context, opts *ImageOptions, name string) (types.ImageSource, error)

ParseImageSource converts image URL-like string to an ImageSource. The caller must call .Close() on the returned ImageSource.

func ParseManifestFormat

func ParseManifestFormat(manifestFormat string) (string, error)

ParseManifestFormat parses format parameter for copy and sync command. It returns string value to use as manifest MIME type

func ReexecIfNecessaryForImages

func ReexecIfNecessaryForImages(imageNames ...string) error

Types

type DeleteOptions

type DeleteOptions struct {
	Image     *ImageOptions
	RetryOpts *retry.RetryOptions
}

type DockerImageOptions

type DockerImageOptions struct {
	Global       *GlobalOptions      // May be shared across several imageOptions instances.
	Shared       *SharedImageOptions // May be shared across several imageOptions instances.
	AuthFilePath string              // Path to a */containers/auth.json (prefixed version to override shared image option).
	Insecure     bool                // Allow accessing non TLS registry

	DockerCertPath string // A directory using Docker-like *.{crt,cert,key} files for connecting to a registry or a daemon
	// contains filtered or unexported fields
}

DockerImageOptions collects CLI flags specific to the "docker" transport, which are the same across subcommands, but may be different for each image (e.g. may differ between the source and destination of a copy)

type GlobalOptions

type GlobalOptions struct {
	Debug bool // Enable debug output
	// contains filtered or unexported fields
}

type ImageDestOptions

type ImageDestOptions struct {
	*ImageOptions
	// contains filtered or unexported fields
}

ImageDestOptions is a superset of imageOptions specialized for image destinations.

type ImageOptions

type ImageOptions struct {
	DockerImageOptions
	// contains filtered or unexported fields
}

ImageOptions collects CLI flags which are the same across subcommands, but may be different for each image (e.g. may differ between the source and destination of a copy)

func (*ImageOptions) NewSystemContext

func (opts *ImageOptions) NewSystemContext() (*types.SystemContext, error)

NewSystemContext returns a *types.SystemContext corresponding to opts. It is guaranteed to return a fresh instance, so it is safe to make additional updates to it.

type SharedImageOptions

type SharedImageOptions struct {
	// contains filtered or unexported fields
}

SharedImageOptions collects CLI flags which are image-related, but do not change across images. This really should be a part of globalOptions, but that would break existing users of (skopeo copy --authfile=).

Jump to

Keyboard shortcuts

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