containerd

package
v0.0.0-...-99b4582 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateActiveSnapshot

func CreateActiveSnapshot(ctx context.Context, tb testing.TB, client *containerd.Client, snapshotter, parent, key string, opts ...snapshots.Opt) []mount.Mount

func CreateViewSnapshot

func CreateViewSnapshot(ctx context.Context, tb testing.TB, client *containerd.Client, snapshotter, parent, key string, opts ...snapshots.Opt) []mount.Mount

a view will not not create a new scratch layer/vhd, but instead return only the directory of the committed snapshot `parent`

func GetImageChainID

func GetImageChainID(ctx context.Context, tb testing.TB, client *containerd.Client, image, platform string) string

GetImageChainID gets the chain id of an image. platform can be "".

func GetPlatformComparer

func GetPlatformComparer(tb testing.TB, platform string) platforms.MatchComparer

func GetResolver

func GetResolver(ctx context.Context, tb testing.TB) remotes.Resolver

func PullImage

func PullImage(ctx context.Context, tb testing.TB, client *containerd.Client, ref, plat string) string

PullImage pulls the image for the specified platform and returns the chain ID

Types

type ContainerdClientOptions

type ContainerdClientOptions struct {
	Address   string
	Namespace string
}

func (ContainerdClientOptions) NewClient

NewClient returns a containerd client connected using the specified address and namespace.

Jump to

Keyboard shortcuts

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