imageload

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Apple added in v0.18.15

type Apple struct{}

func (Apple) Loader added in v0.18.15

func (loader Apple) Loader(ctx context.Context) (*Loader, error)

type Backend

type Backend interface {
	Loader(context.Context) (*Loader, error)
}

func GetBackend

func GetBackend(name string) (Backend, error)

type Containerd

type Containerd struct{}

func (Containerd) Loader

func (loader Containerd) Loader(ctx context.Context) (_ *Loader, rerr error)

type Docker

type Docker struct {
	Cmd string
}

func (Docker) Loader

func (loader Docker) Loader(ctx context.Context) (*Loader, error)

type Loader

type Loader struct {
	ID string

	// TarballWriter and TarballReader allow the backend to write and read tarballs
	// to and from the content store.
	TarballWriter TarballWriter
	TarballReader TarballReader

	// Stores are used to directly access a containerd backend (when available).
	// These are *significantly* faster when available.
	ContentStore content.Store
	ImagesStore  images.Store
	LeaseManager leases.Manager
	// contains filtered or unexported fields
}

func (*Loader) Close

func (loader *Loader) Close() error

type TarballReader added in v0.18.17

type TarballReader func(ctx context.Context, name string, tarball io.Writer) error

type TarballWriter added in v0.18.17

type TarballWriter func(ctx context.Context, name string, tarball io.Reader) error

Jump to

Keyboard shortcuts

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