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

Struct rawContainerHandler

lib/container/raw/handler.go:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32)
33
34type rawContainerHandler struct {
35 // Name of the container for this handler.
36 name string
37 machineInfoFactory info.MachineInfoFactory
38
39 // Absolute path to the cgroup hierarchies of this container.
40 // (e.g.: "cpu" -> "/sys/fs/cgroup/cpu/test")
41 cgroupPaths map[string]string
42
43 fsInfo fs.FsInfo
44 externalMounts []common.Mount
45 includedMetrics container.MetricSet
46
47 libcontainerHandler *libcontainer.Handler
48}
49
50func isRootCgroup(name string) bool {
51 return name == "/"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected