Help us shape the future of Go! Take the 2026 Go Developer Survey

manager

package
v1.18.16 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 18 Imported by: 1

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

type PodMetadata struct {
	Name      string
	Namespace string
	IPs       []string
}

PodMetadata stores selected metadata of a pod populated via Kubernetes watcher events.

Jump to

Keyboard shortcuts

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