Help us shape the future of Go! Take the 2026 Go Developer Survey

transfer

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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

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.

func LoadedName

func LoadedName(name string, dgst digest.Digest) (string, error)

LoadedName is the name an image runs as once loaded: its repository, tagged after its digest, so that what runs changes with the content, without a registry to resolve the digest.

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.

Jump to

Keyboard shortcuts

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