package fs
import "github.com/docker/libcontainer/cgroups/fs"
Index ¶
- Variables
- func Apply(c *cgroups.Cgroup, pid int) (map[string]string, 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(systemPaths map[string]string) (*cgroups.Stats, error)
- func NotifyOnOOM(c *cgroups.Cgroup) (<-chan struct{}, error)
- type BlkioGroup
- func (s *BlkioGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *BlkioGroup) Remove(d *data) error
- func (s *BlkioGroup) Set(d *data) error
- type CpuGroup
- func (s *CpuGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *CpuGroup) Remove(d *data) error
- func (s *CpuGroup) Set(d *data) error
- type CpuacctGroup
- func (s *CpuacctGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *CpuacctGroup) Remove(d *data) error
- func (s *CpuacctGroup) Set(d *data) error
- type CpusetGroup
- func (s *CpusetGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *CpusetGroup) Remove(d *data) error
- func (s *CpusetGroup) Set(d *data) error
- func (s *CpusetGroup) SetDir(dir, value string, pid int) error
- type DevicesGroup
- func (s *DevicesGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *DevicesGroup) Remove(d *data) error
- func (s *DevicesGroup) Set(d *data) error
- type FreezerGroup
- func (s *FreezerGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *FreezerGroup) Remove(d *data) error
- func (s *FreezerGroup) Set(d *data) error
- type MemoryGroup
- func (s *MemoryGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *MemoryGroup) Remove(d *data) error
- func (s *MemoryGroup) Set(d *data) error
- type PerfEventGroup
Variables ¶
var ( ErrNotSupportStat = errors.New("stats are not supported for subsystem") ErrNotValidFormat = errors.New("line is not a valid key value format") )
var (
CgroupProcesses = "cgroup.procs"
)
Functions ¶
func Apply ¶
func ApplyDevices ¶
Symmetrical public function to update device based cgroups. Also available in the systemd implementation.
func Freeze ¶
func Freeze(c *cgroups.Cgroup, state cgroups.FreezerState) error
Freeze toggles the container's freezer cgroup depending on the state provided
func GetPids ¶
func GetStats ¶
func NotifyOnOOM ¶
NotifyOnOOM sends signals on the returned channel when the cgroup reaches its memory limit. The channel is closed when the cgroup is removed.
Types ¶
type BlkioGroup ¶
type BlkioGroup struct { }
func (*BlkioGroup) GetStats ¶
func (s *BlkioGroup) GetStats(path string, stats *cgroups.Stats) error
func (*BlkioGroup) Remove ¶
func (s *BlkioGroup) Remove(d *data) error
func (*BlkioGroup) Set ¶
func (s *BlkioGroup) Set(d *data) error
type CpuGroup ¶
type CpuGroup struct { }
func (*CpuGroup) GetStats ¶
func (*CpuGroup) Remove ¶
func (*CpuGroup) Set ¶
type CpuacctGroup ¶
type CpuacctGroup struct { }
func (*CpuacctGroup) GetStats ¶
func (s *CpuacctGroup) GetStats(path string, stats *cgroups.Stats) error
func (*CpuacctGroup) Remove ¶
func (s *CpuacctGroup) Remove(d *data) error
func (*CpuacctGroup) Set ¶
func (s *CpuacctGroup) Set(d *data) error
type CpusetGroup ¶
type CpusetGroup struct { }
func (*CpusetGroup) GetStats ¶
func (s *CpusetGroup) GetStats(path string, stats *cgroups.Stats) error
func (*CpusetGroup) Remove ¶
func (s *CpusetGroup) Remove(d *data) error
func (*CpusetGroup) Set ¶
func (s *CpusetGroup) Set(d *data) error
func (*CpusetGroup) SetDir ¶
func (s *CpusetGroup) SetDir(dir, value string, pid int) error
type DevicesGroup ¶
type DevicesGroup struct { }
func (*DevicesGroup) GetStats ¶
func (s *DevicesGroup) GetStats(path string, stats *cgroups.Stats) error
func (*DevicesGroup) Remove ¶
func (s *DevicesGroup) Remove(d *data) error
func (*DevicesGroup) Set ¶
func (s *DevicesGroup) Set(d *data) error
type FreezerGroup ¶
type FreezerGroup struct { }
func (*FreezerGroup) GetStats ¶
func (s *FreezerGroup) GetStats(path string, stats *cgroups.Stats) error
func (*FreezerGroup) Remove ¶
func (s *FreezerGroup) Remove(d *data) error
func (*FreezerGroup) Set ¶
func (s *FreezerGroup) Set(d *data) error
type MemoryGroup ¶
type MemoryGroup struct { }
func (*MemoryGroup) GetStats ¶
func (s *MemoryGroup) GetStats(path string, stats *cgroups.Stats) error
func (*MemoryGroup) Remove ¶
func (s *MemoryGroup) Remove(d *data) error
func (*MemoryGroup) Set ¶
func (s *MemoryGroup) Set(d *data) error
type PerfEventGroup ¶
type PerfEventGroup struct { }
func (*PerfEventGroup) GetStats ¶
func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error
func (*PerfEventGroup) Remove ¶
func (s *PerfEventGroup) Remove(d *data) error
func (*PerfEventGroup) Set ¶
func (s *PerfEventGroup) Set(d *data) error
Source Files ¶
apply_raw.go blkio.go cpu.go cpuacct.go cpuset.go devices.go freezer.go memory.go notify_linux.go perf_event.go utils.go
- Version
- v1.4.0
- Published
- Dec 2, 2014
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 8 minutes ago –
Tools for package owners.