labels

package
v1.7.33 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 244

Documentation

Index

Constants

View Source
const CRIContainerdPrefix = "io.cri-containerd"

CRIContainerdPrefix is the prefix of the label namespace reserved for labels defined and consumed by containerd's CRI plugin. Labels in this namespace must not be copied from untrusted sources such as image config labels. Use IsReserved to check for such labels.

View Source
const LabelDistributionSource = "containerd.io/distribution.source"

LabelDistributionSource is added to content to indicate its origin. e.g., "containerd.io/distribution.source.docker.io=library/redis"

View Source
const LabelSharedNamespace = "containerd.io/namespace.shareable"

LabelSharedNamespace is added to a namespace to allow that namespaces contents to be shared.

View Source
const LabelUncompressed = "containerd.io/uncompressed"

LabelUncompressed is added to compressed layer contents. The value is digest of the uncompressed content.

View Source
const ReservedPrefix = "containerd.io/"

ReservedPrefix is the prefix of the label namespace reserved for labels defined and consumed by containerd itself. Labels in this namespace must not be copied from untrusted sources such as image config labels. Use IsReserved to check for such labels.

Variables

This section is empty.

Functions

func IsReserved added in v1.7.33

func IsReserved(k string) bool

IsReserved returns true if the label key is in a namespace reserved for containerd (ReservedPrefix) or its CRI plugin (CRIContainerdPrefix). Reserved labels are interpreted by containerd and must not be copied from untrusted sources such as image config labels.

func Validate

func Validate(k, v string) error

Validate a label's key and value are under 4096 bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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