Documentation ¶
Overview ¶
Package utils is a compliance internal submodule implementing various utilies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContainerOverlayPath ¶
GetContainerOverlayPath tries to extract the directory mounted as root mountpoint of the given process. To do so it parses the mountinfo table of the process and tries to match it with the mount entry of the root namespace (mountinfo pid 1).
func GetProcessRootPath ¶
GetProcessRootPath returns the process root path of the given PID.
Types ¶
type ContainerID ¶
type ContainerID string
ContainerID wraps a string representing a container identifier.
func GetProcessContainerID ¶
func GetProcessContainerID(pid int32) (ContainerID, bool)
GetProcessContainerID returns the container ID associated with the given process ID. Returns an empty string if no container found.
Click to show internal directories.
Click to hide internal directories.