MCPcopy
hub / github.com/containerd/containerd / Add

Method Add

internal/oom/oom.go:32–32  ·  view source on GitHub ↗

Add is to start to monitor container cgroupv2 OOM event. TODO: Currently, cgroupsv2 package doesn't support to export cgroupv2 path. Ideally, the function interface should be like Add(string, *cgroupsv2.Manager, EventFunc) error

(containerID string, pid int, fn EventFunc)

Source from the content-addressed store, hash-verified

30 //
31 // Add(string, *cgroupsv2.Manager, EventFunc) error
32 Add(containerID string, pid int, fn EventFunc) error
33 //
34 // Stop is to stop monitor OOM event for a given container ID
35 Stop(containerID string) error

Callers 15

ServeHTTPMethod · 0.65
SynchronizeMethod · 0.65
RunPodSandboxMethod · 0.65
UpdatePodSandboxMethod · 0.65
PostUpdatePodSandboxMethod · 0.65
StopPodSandboxMethod · 0.65
RemovePodSandboxMethod · 0.65
CreateContainerMethod · 0.65
PostCreateContainerMethod · 0.65
StartContainerMethod · 0.65
PostStartContainerMethod · 0.65

Implementers 1

oomWatchersinternal/oom/watcher.go

Calls

no outgoing calls

Tested by 15

ServeHTTPMethod · 0.52
SynchronizeMethod · 0.52
RunPodSandboxMethod · 0.52
UpdatePodSandboxMethod · 0.52
PostUpdatePodSandboxMethod · 0.52
StopPodSandboxMethod · 0.52
RemovePodSandboxMethod · 0.52
CreateContainerMethod · 0.52
PostCreateContainerMethod · 0.52
StartContainerMethod · 0.52
PostStartContainerMethod · 0.52