Documentation
¶
Overview ¶
Package transfer carries a bundle's images into the target's daemon, with no registry in between.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load(ctx context.Context, api client.APIClient, images []Image, events progress.Sink) (relocation.ImageRelocationMap, error)
Load loads into the daemon, for its platform only, each image it does not have yet, and returns where each one is now: its loaded name. An image the bundle gives no digest for, and that the daemon has under its name, runs as it is. Events count the images done.
Types ¶
type Image ¶
type Image struct {
// Name is the name the bundle gives it.
Name string
// Digest is its digest, empty when the bundle does not give one.
Digest digest.Digest
// Source reaches where the image is, only when it must be read.
Source func(ctx context.Context) (remotes.Fetcher, ocispec.Descriptor, error)
}
Image is an image of a bundle to carry.
Click to show internal directories.
Click to hide internal directories.