package systemd

import "github.com/docker/libcontainer/cgroups/systemd"

Index

Functions

func Apply

func Apply(c *cgroups.Cgroup, pid int) (cgroups.ActiveCgroup, error)

func Freeze

func Freeze(c *cgroups.Cgroup, state cgroups.FreezerState) error

func GetPids

func GetPids(c *cgroups.Cgroup) ([]int, error)

func GetStats

func GetStats(c *cgroups.Cgroup) (*cgroups.Stats, error)

* 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

Source Files

apply_systemd.go

Version
v1.2.0
Published
Aug 20, 2014
Platform
linux/amd64
Imports
13 packages
Last checked
2 hours ago

Tools for package owners.