label

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CRIImageRef       = "containerd.io/snapshot/cri.image-ref"
	CRIImageLayers    = "containerd.io/snapshot/cri.image-layers"
	CRILayerDigest    = "containerd.io/snapshot/cri.layer-digest"
	CRIManifestDigest = "containerd.io/snapshot/cri.manifest-digest"

	// Marker for remote snapshotter to handle the pull request.
	// During image pull, the containerd client calls Prepare API with the label containerd.io/snapshot.ref.
	// This is a containerd-defined label which contains ChainID that targets a committed snapshot that the
	// client is trying to prepare.
	TargetSnapshotRef = "containerd.io/snapshot.ref"

	// A bool flag to mark the blob as a Nydus data blob, set by image builders.
	NydusDataLayer = "containerd.io/snapshot/nydus-blob"
	// A bool flag to mark the blob as a nydus bootstrap, set by image builders.
	NydusMetaLayer = "containerd.io/snapshot/nydus-bootstrap"
	// A bool flag to mark the blob as a nydus ref metadata, set by image builders.
	NydusRefLayer = "containerd.io/snapshot/nydus-ref"
	// Annotation containing secret to pull images from registry, set by the snapshotter.
	NydusImagePullSecret = "containerd.io/snapshot/pullsecret"
	// Annotation containing username to pull images from registry, set by the snapshotter.
	NydusImagePullUsername = "containerd.io/snapshot/pullusername"
	// A bool flag to enable integrity verification of meta data blob
	NydusSignature = "containerd.io/snapshot/nydus-signature"

	// A bool flag to mark the blob as a estargz data blob, set by the snapshotter.
	StargzLayer = "containerd.io/snapshot/stargz"

	// volatileOpt is a key of an optional label to each snapshot.
	// If this optional label of a snapshot is specified, when mounted to rootdir
	// this snapshot will include volatile option
	OverlayfsVolatileOpt = "containerd.io/snapshot/overlay.volatile"
)

Variables

This section is empty.

Functions

func AppendLabelsHandlerWrapper added in v0.3.0

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

AppendLabelsHandlerWrapper returns a function which can wrap a handler by appending image's basic information to each layer descriptor as annotations during unpack. These annotations will be passed to this nydus snapshotter as labels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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