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)
| 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 |
no outgoing calls