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
GetContainerName returns the value of the KubernetesContainerNameLabel.
func GetPodName ¶ added in v2.1.0
GetPodName returns the value of the KubernetesPodNameLabel.
func GetPodNamespace ¶ added in v2.1.0
GetPodNamespace returns the value of the KubernetesPodNamespaceLabel.
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
Click to show internal directories.
Click to hide internal directories.