Documentation ¶
Index ¶
- func Delete(ctx context.Context, imageName string, opts *DeleteOptions) error
- func ParseImageSource(ctx context.Context, opts *ImageOptions, name string) (types.ImageSource, error)
- func ParseManifestFormat(manifestFormat string) (string, error)
- func ReexecIfNecessaryForImages(imageNames ...string) error
- type DeleteOptions
- type DockerImageOptions
- type GlobalOptions
- type ImageDestOptions
- type ImageOptions
- type SharedImageOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
ParseManifestFormat parses format parameter for copy and sync command. It returns string value to use as manifest MIME type
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. AuthFilePath string // Path to a */containers/auth.json (prefixed version to override shared image option). // 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=).