copy

package
v0.0.0-...-43b0be4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAll

func CopyAll(concurrency int, specs ...Spec) error

CopyAll performs a bulk copy between OCI image registries based on the provided copy specs, using the provided concurrency for each component of the overall operation.

Types

type Spec

type Spec struct {
	Src       image.Image `json:"src"`
	Dst       image.Image `json:"dst"`
	Transform Transform   `json:"transform,omitempty"`
}

Spec represents a single request to copy a particular source image to a particular destination.

type Transform

type Transform struct {
	// LimitPlatforms limits the set of platforms copied from a multi-platform
	// source image to those listed. If it is empty, all platforms from the source
	// image will be copied. If the source image is a single-platform image, this
	// setting will be ignored and the image will be copied as-is.
	LimitPlatforms platformSet `json:"limitPlatforms,omitempty"`
}

Transform represents an optional set of transformations to perform while mirroring a source image to a destination.

Jump to

Keyboard shortcuts

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