Create the cgroup
(ctr *CgroupControl)
| 23 | |
| 24 | // Create the cgroup |
| 25 | func (c *memHandler) Create(ctr *CgroupControl) (bool, error) { |
| 26 | if ctr.cgroup2 { |
| 27 | return false, nil |
| 28 | } |
| 29 | return ctr.createCgroupDirectory(Memory) |
| 30 | } |
| 31 | |
| 32 | // Destroy the cgroup |
| 33 | func (c *memHandler) Destroy(ctr *CgroupControl) error { |
nothing calls this directly
no test coverage detected