Documentation ¶
Rendered for windows/amd64
Index ¶
- func CreateActiveSnapshot(ctx context.Context, tb testing.TB, client *containerd.Client, ...) []mount.Mount
- func CreateViewSnapshot(ctx context.Context, tb testing.TB, client *containerd.Client, ...) []mount.Mount
- func GetImageChainID(ctx context.Context, tb testing.TB, client *containerd.Client, ...) string
- func GetPlatformComparer(tb testing.TB, platform string) platforms.MatchComparer
- func GetResolver(ctx context.Context, tb testing.TB) remotes.Resolver
- func PullImage(ctx context.Context, tb testing.TB, client *containerd.Client, ...) string
- type ContainerdClientOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateActiveSnapshot ¶
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
Types ¶
type ContainerdClientOptions ¶
func (ContainerdClientOptions) NewClient ¶
func (cco ContainerdClientOptions) NewClient( ctx context.Context, tb testing.TB, opts ...containerd.ClientOpt, ) *containerd.Client
NewClient returns a containerd client connected using the specified address and namespace.
Click to show internal directories.
Click to hide internal directories.