types

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubernetesPodNameLabel       = "io.kubernetes.pod.name"
	KubernetesPodNamespaceLabel  = "io.kubernetes.pod.namespace"
	KubernetesPodUIDLabel        = "io.kubernetes.pod.uid"
	KubernetesContainerNameLabel = "io.kubernetes.container.name"
)

Label keys for labels used in this package.

View Source
const (
	// PodInfraContainerName is the KubernetesPodNameLabel value for infra
	// containers.
	PodInfraContainerName = "POD"
)

Label value constants

Variables

This section is empty.

Functions

func GetContainerName added in v2.1.0

func GetContainerName(labels map[string]string) string

GetContainerName returns the value of the KubernetesContainerNameLabel.

func GetPodName added in v2.1.0

func GetPodName(labels map[string]string) string

GetPodName returns the value of the KubernetesPodNameLabel.

func GetPodNamespace added in v2.1.0

func GetPodNamespace(labels map[string]string) string

GetPodNamespace returns the value of the KubernetesPodNamespaceLabel.

func GetPodUID added in v2.1.0

func GetPodUID(labels map[string]string) string

GetPodUID returns the value of the KubernetesPodUIDLabel.

Types

type SandboxInfo

type SandboxInfo struct {
	Pid            uint32                    `json:"pid"`
	Status         string                    `json:"processStatus"`
	NetNSClosed    bool                      `json:"netNamespaceClosed"`
	Image          string                    `json:"image"`
	SnapshotKey    string                    `json:"snapshotKey"`
	Snapshotter    string                    `json:"snapshotter"`
	RuntimeType    string                    `json:"runtimeType"`
	RuntimeOptions interface{}               `json:"runtimeOptions"`
	Config         *runtime.PodSandboxConfig `json:"config"`
	// Note: RuntimeSpec may not be populated if the sandbox has not been fully created.
	RuntimeSpec *specs.Spec       `json:"runtimeSpec"`
	CNIResult   *cni.Result       `json:"cniResult"`
	Metadata    *sandbox.Metadata `json:"sandboxMetadata"`
}

SandboxInfo is extra information for sandbox. TODO (mikebrow): discuss predefining constants structures for some or all of these field names in CRI

Jump to

Keyboard shortcuts

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