Documentation
¶
Index ¶
- type ContainerdTestdataImporter
- func (i *ContainerdTestdataImporter) Close() error
- func (i *ContainerdTestdataImporter) ImportImage(ctx context.Context, imageRef string, compressedData []byte) error
- func (i *ContainerdTestdataImporter) IsImageAvailable(ctx context.Context, imageRef string) (bool, error)
- func (i *ContainerdTestdataImporter) PreloadTestImages(ctx context.Context, registry map[string][]byte) error
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
Click to show internal directories.
Click to hide internal directories.