Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnpackedImage ¶
type UnpackedImage struct { Image containerd.Image SnapshotKey string }
func Pull ¶
func Pull(ctx context.Context, client *containerd.Client, ref string) (*UnpackedImage, error)
Pull pulls a remote image and unpacks it into the default snapshotter (typically, overlayfs). It returns an UnpackedImage which contains the image and the snapshot key.
Containerd's snapshot key of an image is the ChainID of the image's diffIDs.
Click to show internal directories.
Click to hide internal directories.