Documentation ¶
Overview ¶
Package cgroup provides utilities for linux devices cgroups
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cgroup ¶
type Cgroup struct {
Path string
}
Cgroup represents linux devices cgroup
func NewCgroups ¶
NewCgroups returns all cgroups matching pathPattern
func NewFakeCgroup ¶
NewFakeCgroup creates and returns a new cgroup for testing with some k8s default devices allowed.
func NewFakeWideCgroup ¶
NewFakeWideCgroup creates and returns a new cgroup for testing with "a *:* rwm" allowed
Click to show internal directories.
Click to hide internal directories.