Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "cgroup-manager", "CGroup Manager", cell.Provide(newCGroupManager), cell.Provide(newGetCgroupDumpMetadataRestApiHandler), )
Cell provides access to the cgroup manager.
Functions ¶
This section is empty.
Types ¶
type CGroupManager ¶ added in v1.16.0
type CGroupManager interface {
OnAddPod(pod *v1.Pod)
OnUpdatePod(oldPod, newPod *v1.Pod)
OnDeletePod(pod *v1.Pod)
// GetPodMetadataForContainer returns pod metadata for the given container
// cgroup id in case of success, or nil otherwise.
GetPodMetadataForContainer(cgroupId uint64) *PodMetadata
DumpPodMetadata() []*FullPodMetadata
}
type FullPodMetadata ¶
type FullPodMetadata struct {
Name string
Namespace string
Containers []*cgroupMetadata
IPs []string
}
FullPodMetadata stores selected metadata of a pod and associated containers.
type PodMetadata ¶
PodMetadata stores selected metadata of a pod populated via Kubernetes watcher events.
Click to show internal directories.
Click to hide internal directories.