MCPcopy
hub / github.com/google/cadvisor / MakeCgroupPaths

Function MakeCgroupPaths

lib/container/common/helpers.go:333–340  ·  view source on GitHub ↗
(mountPoints map[string]string, name string)

Source from the content-addressed store, hash-verified

331}
332
333func 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
342func CgroupExists(cgroupPaths map[string]string) bool {
343 // If any cgroup exists, the container is still alive.

Callers 5

newContainerHandlerFunction · 0.92
newContainerHandlerFunction · 0.92
newCrioContainerHandlerFunction · 0.92
newRawContainerHandlerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…