Documentation ¶
Index ¶
- func OOMKillCount(path string) (uint64, error)
- type BlkioGroup
- type CpuGroup
- 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
- type CpusetGroup
- 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
- type FreezerGroup
- 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
- type Manager
- 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
- type NameGroup
- type NetClsGroup
- type NetPrioGroup
- type PerfEventGroup
- type PidsGroup
- type RdmaGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OOMKillCount ¶
Types ¶
type BlkioGroup ¶
type BlkioGroup struct {
// contains filtered or unexported fields
}
func (*BlkioGroup) GetStats ¶
func (s *BlkioGroup) GetStats(path string, stats *cgroups.Stats) error
func (*BlkioGroup) Name ¶
func (s *BlkioGroup) Name() string
type CpuacctGroup ¶
type CpuacctGroup struct{}
func (*CpuacctGroup) GetStats ¶
func (s *CpuacctGroup) GetStats(path string, stats *cgroups.Stats) error
func (*CpuacctGroup) Name ¶
func (s *CpuacctGroup) Name() string
type CpusetGroup ¶
type CpusetGroup struct{}
func (*CpusetGroup) GetStats ¶
func (s *CpusetGroup) GetStats(path string, stats *cgroups.Stats) error
func (*CpusetGroup) Name ¶
func (s *CpusetGroup) Name() string
type DevicesGroup ¶
type DevicesGroup struct{}
func (*DevicesGroup) GetStats ¶
func (s *DevicesGroup) GetStats(path string, stats *cgroups.Stats) error
func (*DevicesGroup) Name ¶
func (s *DevicesGroup) Name() string
type FreezerGroup ¶
type FreezerGroup struct{}
func (*FreezerGroup) GetState ¶
func (s *FreezerGroup) GetState(path string) (configs.FreezerState, error)
func (*FreezerGroup) GetStats ¶
func (s *FreezerGroup) GetStats(path string, stats *cgroups.Stats) error
func (*FreezerGroup) Name ¶
func (s *FreezerGroup) Name() string
type HugetlbGroup ¶
type HugetlbGroup struct{}
func (*HugetlbGroup) GetStats ¶
func (s *HugetlbGroup) GetStats(path string, stats *cgroups.Stats) error
func (*HugetlbGroup) Name ¶
func (s *HugetlbGroup) Name() string
type Manager ¶
type Manager struct {
// 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
func (*Manager) GetAllPids ¶
func (*Manager) GetFreezerState ¶
func (m *Manager) GetFreezerState() (configs.FreezerState, error)
func (*Manager) OOMKillCount ¶
type MemoryGroup ¶
type MemoryGroup struct{}
func (*MemoryGroup) GetStats ¶
func (s *MemoryGroup) GetStats(path string, stats *cgroups.Stats) error
func (*MemoryGroup) Name ¶
func (s *MemoryGroup) Name() string
type NetClsGroup ¶
type NetClsGroup struct{}
func (*NetClsGroup) GetStats ¶
func (s *NetClsGroup) GetStats(path string, stats *cgroups.Stats) error
func (*NetClsGroup) Name ¶
func (s *NetClsGroup) Name() string
type NetPrioGroup ¶
type NetPrioGroup struct{}
func (*NetPrioGroup) GetStats ¶
func (s *NetPrioGroup) GetStats(path string, stats *cgroups.Stats) error
func (*NetPrioGroup) Name ¶
func (s *NetPrioGroup) Name() string
type PerfEventGroup ¶
type PerfEventGroup struct{}
func (*PerfEventGroup) GetStats ¶
func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error
func (*PerfEventGroup) Name ¶
func (s *PerfEventGroup) Name() string
Click to show internal directories.
Click to hide internal directories.