Documentation
¶
Index ¶
Constants ¶
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.
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"
LabelSharedNamespace is added to a namespace to allow that namespaces contents to be shared.
const LabelUncompressed = "containerd.io/uncompressed"
LabelUncompressed is added to compressed layer contents. The value is digest of the uncompressed content.
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
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.
Types ¶
This section is empty.