package
Version:
v0.0.0-...-71b87c0
Opens a new window with list of versions in this module.
Published: Apr 25, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ListNetnsIDs returns the NetNS IDs for each namespace listed inside dir.
type Metadata struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
}
Metadata holds a pod's metadata.
type Namespace struct {
Type string `json:"type"`
Path string `json:"path"`
}
type Pod struct {
ID string `json:"id"`
Metadata Metadata `json:"metadata"`
}
Pod is a pod object.
GetOwnerOfLink returns the Pod for the provided link.
type PodInspect struct {
Info struct {
RuntimeSpec struct {
Linux struct {
Namespaces []Namespace `json:"namespaces"`
} `json:"linux"`
} `json:"runtimeSpec"`
} `json:"info"`
}
GetNetns returns the netns (only the name, without the full path) of this pod.
type PodList struct {
Items []Pod `json:"items"`
}
PodList is a list of Pods.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.