Documentation ¶
Index ¶
- Variables
- func CheckCpushares(path string, c int64) error
- type BlkioGroup
- type CpuGroup
- type CpuacctGroup
- type CpusetGroup
- func (s *CpusetGroup) Apply(d *data) error
- func (s *CpusetGroup) ApplyDir(dir string, cgroup *configs.Cgroup, pid int) error
- func (s *CpusetGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *CpusetGroup) Remove(d *data) error
- func (s *CpusetGroup) Set(path string, cgroup *configs.Cgroup) error
- type DevicesGroup
- type FreezerGroup
- type HugetlbGroup
- type Manager
- func (m *Manager) Apply(pid int) error
- func (m *Manager) Destroy() error
- func (m *Manager) Freeze(state configs.FreezerState) error
- func (m *Manager) GetPaths() map[string]string
- func (m *Manager) GetPids() ([]int, error)
- func (m *Manager) GetStats() (*cgroups.Stats, error)
- func (m *Manager) Set(container *configs.Config) error
- type MemoryGroup
- type NetClsGroup
- type NetPrioGroup
- type PerfEventGroup
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CgroupProcesses = "cgroup.procs" HugePageSizes, _ = cgroups.GetHugePageSize() )
Functions ¶
Types ¶
type BlkioGroup ¶
type BlkioGroup struct { }
func (*BlkioGroup) Apply ¶
func (s *BlkioGroup) Apply(d *data) error
func (*BlkioGroup) GetStats ¶
func (s *BlkioGroup) GetStats(path string, stats *cgroups.Stats) error
func (*BlkioGroup) Remove ¶
func (s *BlkioGroup) Remove(d *data) error
type CpuGroup ¶
type CpuGroup struct { }
type CpuacctGroup ¶
type CpuacctGroup struct { }
func (*CpuacctGroup) Apply ¶
func (s *CpuacctGroup) Apply(d *data) error
func (*CpuacctGroup) GetStats ¶
func (s *CpuacctGroup) GetStats(path string, stats *cgroups.Stats) error
func (*CpuacctGroup) Remove ¶
func (s *CpuacctGroup) Remove(d *data) error
type CpusetGroup ¶
type CpusetGroup struct { }
func (*CpusetGroup) Apply ¶
func (s *CpusetGroup) Apply(d *data) error
func (*CpusetGroup) ApplyDir ¶
func (*CpusetGroup) GetStats ¶
func (s *CpusetGroup) GetStats(path string, stats *cgroups.Stats) error
func (*CpusetGroup) Remove ¶
func (s *CpusetGroup) Remove(d *data) error
type DevicesGroup ¶
type DevicesGroup struct { }
func (*DevicesGroup) Apply ¶
func (s *DevicesGroup) Apply(d *data) error
func (*DevicesGroup) GetStats ¶
func (s *DevicesGroup) GetStats(path string, stats *cgroups.Stats) error
func (*DevicesGroup) Remove ¶
func (s *DevicesGroup) Remove(d *data) error
type FreezerGroup ¶
type FreezerGroup struct { }
func (*FreezerGroup) Apply ¶
func (s *FreezerGroup) Apply(d *data) error
func (*FreezerGroup) GetStats ¶
func (s *FreezerGroup) GetStats(path string, stats *cgroups.Stats) error
func (*FreezerGroup) Remove ¶
func (s *FreezerGroup) Remove(d *data) error
type HugetlbGroup ¶
type HugetlbGroup struct { }
func (*HugetlbGroup) Apply ¶
func (s *HugetlbGroup) Apply(d *data) error
func (*HugetlbGroup) GetStats ¶
func (s *HugetlbGroup) GetStats(path string, stats *cgroups.Stats) error
func (*HugetlbGroup) Remove ¶
func (s *HugetlbGroup) Remove(d *data) error
type Manager ¶
type Manager struct { Cgroups *configs.Cgroup Paths map[string]string // contains filtered or unexported fields }
func (*Manager) Freeze ¶
func (m *Manager) Freeze(state configs.FreezerState) error
Freeze toggles the container's freezer cgroup depending on the state provided
type MemoryGroup ¶
type MemoryGroup struct { }
func (*MemoryGroup) Apply ¶
func (s *MemoryGroup) Apply(d *data) error
func (*MemoryGroup) GetStats ¶
func (s *MemoryGroup) GetStats(path string, stats *cgroups.Stats) error
func (*MemoryGroup) Remove ¶
func (s *MemoryGroup) Remove(d *data) error
type NetClsGroup ¶
type NetClsGroup struct { }
func (*NetClsGroup) Apply ¶
func (s *NetClsGroup) Apply(d *data) error
func (*NetClsGroup) GetStats ¶
func (s *NetClsGroup) GetStats(path string, stats *cgroups.Stats) error
func (*NetClsGroup) Remove ¶
func (s *NetClsGroup) Remove(d *data) error
type NetPrioGroup ¶
type NetPrioGroup struct { }
func (*NetPrioGroup) Apply ¶
func (s *NetPrioGroup) Apply(d *data) error
func (*NetPrioGroup) GetStats ¶
func (s *NetPrioGroup) GetStats(path string, stats *cgroups.Stats) error
func (*NetPrioGroup) Remove ¶
func (s *NetPrioGroup) Remove(d *data) error
type PerfEventGroup ¶
type PerfEventGroup struct { }
func (*PerfEventGroup) Apply ¶
func (s *PerfEventGroup) Apply(d *data) error
func (*PerfEventGroup) GetStats ¶
func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error
func (*PerfEventGroup) Remove ¶
func (s *PerfEventGroup) Remove(d *data) error
Click to show internal directories.
Click to hide internal directories.