snapshotters

package
v1.6.19 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 53

Documentation

Index

Constants

View Source
const (
	// TargetRefLabel is a label which contains image reference and will be passed
	// to snapshotters.
	TargetRefLabel = "containerd.io/snapshot/cri.image-ref"
	// TargetManifestDigestLabel is a label which contains manifest digest and will be passed
	// to snapshotters.
	TargetManifestDigestLabel = "containerd.io/snapshot/cri.manifest-digest"
	// TargetLayerDigestLabel is a label which contains layer digest and will be passed
	// to snapshotters.
	TargetLayerDigestLabel = "containerd.io/snapshot/cri.layer-digest"
	// TargetImageLayersLabel is a label which contains layer digests contained in
	// the target image and will be passed to snapshotters for preparing layers in
	// parallel. Skipping some layers is allowed and only affects performance.
	TargetImageLayersLabel = "containerd.io/snapshot/cri.image-layers"
)

NOTE: The following labels contain "cri" prefix but they are not specific to CRI and can be used by non-CRI clients as well for enabling remote snapshotters. We need to retain that string for keeping compatibility with snapshotter implementations.

Variables

This section is empty.

Functions

func AppendInfoHandlerWrapper

func AppendInfoHandlerWrapper(ref string) func(f images.Handler) images.Handler

AppendInfoHandlerWrapper makes a handler which appends some basic information of images like digests for manifest and their child layers as annotations during unpack. These annotations will be passed to snapshotters as labels. These labels will be used mainly by remote snapshotters for querying image contents from the remote location.

Types

This section is empty.

Jump to

Keyboard shortcuts

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