(mountPoints map[string]string, name string)
| 331 | } |
| 332 | |
| 333 | func MakeCgroupPaths(mountPoints map[string]string, name string) map[string]string { |
| 334 | cgroupPaths := make(map[string]string, len(mountPoints)) |
| 335 | for key, val := range mountPoints { |
| 336 | cgroupPaths[key] = path.Join(val, name) |
| 337 | } |
| 338 | |
| 339 | return cgroupPaths |
| 340 | } |
| 341 | |
| 342 | func CgroupExists(cgroupPaths map[string]string) bool { |
| 343 | // If any cgroup exists, the container is still alive. |
no outgoing calls
no test coverage detected
searching dependent graphs…