package cgroups
import "github.com/opencontainers/runc/libcontainer/cgroups"
Index ¶
- Constants
- func FindCgroupMountpoint(cgroupPath, subsystem string) (string, error)
- func FindCgroupMountpointAndRoot(cgroupPath, subsystem string) (string, string, error)
- func GetInitCgroup(subsystem string) (string, error)
- func GetInitCgroupPath(subsystem string) (string, error)
- func GetOwnCgroup(subsystem string) (string, error)
- func GetOwnCgroupPath(subsystem string) (string, error)
- func IsNotFound(err error) bool
- func NewNotFoundError(sub string) error
- type NotFoundError
Constants ¶
const (
CgroupNamePrefix = "name="
)
Functions ¶
func FindCgroupMountpoint ¶
https://www.kernel.org/doc/Documentation/cgroup-v1/cgroups.txt
func FindCgroupMountpointAndRoot ¶
func GetInitCgroup ¶
func GetInitCgroupPath ¶
func GetOwnCgroup ¶
GetOwnCgroup returns the relative path to the cgroup docker is running in.
func GetOwnCgroupPath ¶
func IsNotFound ¶
func NewNotFoundError ¶
Types ¶
type NotFoundError ¶
type NotFoundError struct { Subsystem string }
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Source Files ¶
cgroups_unsupported.go v1_utils.go
Directories ¶
Path | Synopsis |
---|---|
libcontainer/cgroups/devices | |
libcontainer/cgroups/ebpf | |
libcontainer/cgroups/ebpf/devicefilter | Package devicefilter containes eBPF device filter program |
libcontainer/cgroups/fs | |
libcontainer/cgroups/fs2 | |
libcontainer/cgroups/systemd |
- Version
- v1.0.0-rc91
- Published
- Jun 30, 2020
- Platform
- darwin/amd64
- Imports
- 7 packages
- Last checked
- 1 minute ago –
Tools for package owners.