Documentation ¶
Index ¶
- func Apply(c *cgroups.Cgroup, pid int) (cgroups.ActiveCgroup, error)
- func ApplyDevices(c *cgroups.Cgroup, pid int) error
- func Freeze(c *cgroups.Cgroup, state cgroups.FreezerState) error
- func GetPids(c *cgroups.Cgroup) ([]int, error)
- func GetStats(c *cgroups.Cgroup) (*cgroups.Stats, error)
- func UseSystemd() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyDevices ¶
Symmetrical public function to update device based cgroups. Also available in the fs implementation.
func GetStats ¶
* This would be nicer to get from the systemd API when accounting * is enabled, but sadly there is no way to do that yet. * The lack of this functionality in the API & the approach taken * is guided by * http://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/#readingaccountinginformation.
func UseSystemd ¶
func UseSystemd() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.