Documentation ¶
Index ¶
- Variables
- func ApplyDevices(c *configs.Cgroup, pid int) 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 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 PerfEventGroup
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotSupportStat = errors.New("stats are not supported for subsystem") ErrNotValidFormat = errors.New("line is not a valid key value format") )
View Source
var (
CgroupProcesses = "cgroup.procs"
)
Functions ¶
Types ¶
type BlkioGroup ¶ added in v0.4.2
type BlkioGroup struct { }
func (*BlkioGroup) Apply ¶ added in v0.4.4
func (s *BlkioGroup) Apply(d *data) error
func (*BlkioGroup) GetStats ¶ added in v0.4.2
func (s *BlkioGroup) GetStats(path string, stats *cgroups.Stats) error
func (*BlkioGroup) Remove ¶ added in v0.4.2
func (s *BlkioGroup) Remove(d *data) error
type CpuGroup ¶ added in v0.4.2
type CpuGroup struct { }
type CpuacctGroup ¶ added in v0.4.2
type CpuacctGroup struct { }
func (*CpuacctGroup) Apply ¶ added in v0.4.4
func (s *CpuacctGroup) Apply(d *data) error
func (*CpuacctGroup) GetStats ¶ added in v0.4.2
func (s *CpuacctGroup) GetStats(path string, stats *cgroups.Stats) error
func (*CpuacctGroup) Remove ¶ added in v0.4.2
func (s *CpuacctGroup) Remove(d *data) error
type CpusetGroup ¶ added in v0.4.2
type CpusetGroup struct { }
func (*CpusetGroup) Apply ¶ added in v0.4.4
func (s *CpusetGroup) Apply(d *data) error
func (*CpusetGroup) GetStats ¶ added in v0.4.2
func (s *CpusetGroup) GetStats(path string, stats *cgroups.Stats) error
func (*CpusetGroup) Remove ¶ added in v0.4.2
func (s *CpusetGroup) Remove(d *data) error
type DevicesGroup ¶ added in v0.4.2
type DevicesGroup struct { }
func (*DevicesGroup) Apply ¶ added in v0.4.4
func (s *DevicesGroup) Apply(d *data) error
func (*DevicesGroup) GetStats ¶ added in v0.4.2
func (s *DevicesGroup) GetStats(path string, stats *cgroups.Stats) error
func (*DevicesGroup) Remove ¶ added in v0.4.2
func (s *DevicesGroup) Remove(d *data) error
type FreezerGroup ¶ added in v0.4.2
type FreezerGroup struct { }
func (*FreezerGroup) Apply ¶ added in v0.4.4
func (s *FreezerGroup) Apply(d *data) error
func (*FreezerGroup) GetStats ¶ added in v0.4.2
func (s *FreezerGroup) GetStats(path string, stats *cgroups.Stats) error
func (*FreezerGroup) Remove ¶ added in v0.4.2
func (s *FreezerGroup) Remove(d *data) error
type Manager ¶ added in v0.4.4
type MemoryGroup ¶ added in v0.4.2
type MemoryGroup struct { }
func (*MemoryGroup) Apply ¶ added in v0.4.4
func (s *MemoryGroup) Apply(d *data) error
func (*MemoryGroup) GetStats ¶ added in v0.4.2
func (s *MemoryGroup) GetStats(path string, stats *cgroups.Stats) error
func (*MemoryGroup) Remove ¶ added in v0.4.2
func (s *MemoryGroup) Remove(d *data) error
type PerfEventGroup ¶ added in v0.4.2
type PerfEventGroup struct { }
func (*PerfEventGroup) Apply ¶ added in v0.4.4
func (s *PerfEventGroup) Apply(d *data) error
func (*PerfEventGroup) GetStats ¶ added in v0.4.2
func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error
func (*PerfEventGroup) Remove ¶ added in v0.4.2
func (s *PerfEventGroup) Remove(d *data) error
Click to show internal directories.
Click to hide internal directories.