Documentation
¶
Overview ¶
Package procfs implements utility functions relating to the /proc mount.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeProcFS ¶
type FakeProcFS struct{}
func (*FakeProcFS) GetFullContainerName ¶
func (fakePfs *FakeProcFS) GetFullContainerName(pid int) (string, error)
GetFullContainerName gets the container name given the root process id of the container. E.g. if the devices cgroup for the container is stored in /sys/fs/cgroup/devices/docker/nginx, return docker/nginx. Assumes that the process is part of exactly one cgroup hierarchy.
type ProcFS ¶
type ProcFS struct{}
ProcFS provides a helper for getting container name via pid.
func (*ProcFS) GetFullContainerName ¶
GetFullContainerName gets the container name given the root process id of the container. E.g. if the devices cgroup for the container is stored in /sys/fs/cgroup/devices/docker/nginx, return docker/nginx. Assumes that the process is part of exactly one cgroup hierarchy.