Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cgroup ¶
Cgroup represents a linux cgroup.
func GetCgroups ¶
func GetCgroups(pid int32, fs FileSystem) ([]Cgroup, error)
GetCGroups returns a slice of cgroups for pid using fs for filesystem calls.
The expected cgroup format is "hierarchy-ID:controller-list:cgroup-path", and this function will return an error if every cgroup does not meet that format.
For more information, see:
type FileSystem ¶
type FileSystem interface { // Open opens the named file for reading. Open(name string) (io.ReadCloser, error) }
Filesystem abstracts filesystem operations.
type OSFileSystem ¶
type OSFileSystem struct{}
OSFileSystem implements FileSystem using the local disk
func (OSFileSystem) Open ¶
func (OSFileSystem) Open(name string) (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.