cgroupid

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CgroupIDManager

type CgroupIDManager interface {
	Run(ctx context.Context)

	GetCgroupIDForContainer(podUID, containerID string) (uint64, error)
	ListCgroupIDsForPod(podUID string) ([]uint64, error)
}

CgroupIDManager maintains the mapping of pod to cgroup id.

func NewCgroupIDManager

func NewCgroupIDManager(podFetcher pod.PodFetcher) CgroupIDManager

NewCgroupIDManager returns a CgroupIDManager

type ContainerCache

type ContainerCache map[string]uint64 // Keyed by container id

type PodCache

type PodCache map[string]ContainerCache // Keyed by pod UID

Jump to

Keyboard shortcuts

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