tcontainerd

package
v0.0.0-...-0e64a26 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerdTestdataImporter

type ContainerdTestdataImporter struct {
	// contains filtered or unexported fields
}

ContainerdTestdataImporter handles importing compressed OCI layouts into containerd

func NewContainerdTestdataImporter

func NewContainerdTestdataImporter(client *client.Client, namespace string) (*ContainerdTestdataImporter, error)

NewContainerdTestdataImporter creates a new importer for loading testdata into containerd

func (*ContainerdTestdataImporter) Close

func (i *ContainerdTestdataImporter) Close() error

Close closes the containerd client

func (*ContainerdTestdataImporter) ImportImage

func (i *ContainerdTestdataImporter) ImportImage(ctx context.Context, imageRef string, compressedData []byte) error

ImportImage imports a single compressed OCI layout into containerd

func (*ContainerdTestdataImporter) IsImageAvailable

func (i *ContainerdTestdataImporter) IsImageAvailable(ctx context.Context, imageRef string) (bool, error)

IsImageAvailable checks if an image is available in containerd

func (*ContainerdTestdataImporter) PreloadTestImages

func (i *ContainerdTestdataImporter) PreloadTestImages(ctx context.Context, registry map[string][]byte) error

PreloadTestImages loads all images from the testdata registry into containerd

Jump to

Keyboard shortcuts

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