imageloader

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Docker = "docker"
	Podman = "podman"
)

Loader type constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Docker | Podman | ""
	Loader string
}

Config is the configuration for the image loader. It specifies which container engine to use for loading images.

type Loader

type Loader interface {
	Load(ctx context.Context, tar io.Reader, imageRef string) error
}

Loader streams an OCI/Docker tar archive into a local container engine.

func New

func New(ctx context.Context, cfg Config) (Loader, error)

New instantiates the concrete loader.

Jump to

Keyboard shortcuts

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