MemoryEvent is an interface that V1 memory Cgroup notifications implement. Arg returns the file name whose fd should be written to "cgroups.event_control". EventFile returns the name of the file that supports the notification api e.g. "memory.usage_in_bytes".
| 34 | // file name whose fd should be written to "cgroups.event_control". EventFile returns the name of |
| 35 | // the file that supports the notification api e.g. "memory.usage_in_bytes". |
| 36 | type MemoryEvent interface { |
| 37 | Arg() string |
| 38 | EventFile() string |
| 39 | } |
| 40 | |
| 41 | type memoryThresholdEvent struct { |
| 42 | threshold uint64 |
no outgoing calls
no test coverage detected
searching dependent graphs…