Versions in this module Expand all Collapse all v1 v1.1.11 Jan 21, 2024 Changes in this version + func OOMKillCount(path string) (uint64, error) + type BlkioGroup struct + func (s *BlkioGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *BlkioGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *BlkioGroup) Name() string + func (s *BlkioGroup) Set(path string, r *configs.Resources) error + type CpuGroup struct + func (s *CpuGroup) Apply(path string, r *configs.Resources, pid int) error + func (s *CpuGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *CpuGroup) Name() string + func (s *CpuGroup) Set(path string, r *configs.Resources) error + func (s *CpuGroup) SetRtSched(path string, r *configs.Resources) error + type CpuacctGroup struct + func (s *CpuacctGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *CpuacctGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *CpuacctGroup) Name() string + func (s *CpuacctGroup) Set(_ string, _ *configs.Resources) error + type CpusetGroup struct + func (s *CpusetGroup) Apply(path string, r *configs.Resources, pid int) error + func (s *CpusetGroup) ApplyDir(dir string, r *configs.Resources, pid int) error + func (s *CpusetGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *CpusetGroup) Name() string + func (s *CpusetGroup) Set(path string, r *configs.Resources) error + type DevicesGroup struct + func (s *DevicesGroup) Apply(path string, r *configs.Resources, pid int) error + func (s *DevicesGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *DevicesGroup) Name() string + func (s *DevicesGroup) Set(path string, r *configs.Resources) error + type FreezerGroup struct + func (s *FreezerGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *FreezerGroup) GetState(path string) (configs.FreezerState, error) + func (s *FreezerGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *FreezerGroup) Name() string + func (s *FreezerGroup) Set(path string, r *configs.Resources) (Err error) + type HugetlbGroup struct + func (s *HugetlbGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *HugetlbGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *HugetlbGroup) Name() string + func (s *HugetlbGroup) Set(path string, r *configs.Resources) error + type Manager struct + func NewManager(cg *configs.Cgroup, paths map[string]string) (*Manager, error) + func (m *Manager) Apply(pid int) (err error) + func (m *Manager) Destroy() error + func (m *Manager) Exists() bool + func (m *Manager) Freeze(state configs.FreezerState) error + func (m *Manager) GetAllPids() ([]int, error) + func (m *Manager) GetCgroups() (*configs.Cgroup, error) + func (m *Manager) GetFreezerState() (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) OOMKillCount() (uint64, error) + func (m *Manager) Path(subsys string) string + func (m *Manager) Set(r *configs.Resources) error + type MemoryGroup struct + func (s *MemoryGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *MemoryGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *MemoryGroup) Name() string + func (s *MemoryGroup) Set(path string, r *configs.Resources) error + type NameGroup struct + GroupName string + Join bool + func (s *NameGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *NameGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *NameGroup) Name() string + func (s *NameGroup) Set(_ string, _ *configs.Resources) error + type NetClsGroup struct + func (s *NetClsGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *NetClsGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *NetClsGroup) Name() string + func (s *NetClsGroup) Set(path string, r *configs.Resources) error + type NetPrioGroup struct + func (s *NetPrioGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *NetPrioGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *NetPrioGroup) Name() string + func (s *NetPrioGroup) Set(path string, r *configs.Resources) error + type PerfEventGroup struct + func (s *PerfEventGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *PerfEventGroup) Name() string + func (s *PerfEventGroup) Set(_ string, _ *configs.Resources) error + type PidsGroup struct + func (s *PidsGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *PidsGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *PidsGroup) Name() string + func (s *PidsGroup) Set(path string, r *configs.Resources) error + type RdmaGroup struct + func (s *RdmaGroup) Apply(path string, _ *configs.Resources, pid int) error + func (s *RdmaGroup) GetStats(path string, stats *cgroups.Stats) error + func (s *RdmaGroup) Name() string + func (s *RdmaGroup) Set(path string, r *configs.Resources) error