manager

package
v1.17.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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