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) (retErr 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 ¶ added in v1.0.0
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 ¶ added in v0.0.5
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 ¶ added in v0.0.5
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 ¶ added in v0.0.5
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 ¶ added in v0.0.5
func (s *DevicesGroup) Name() string
type FreezerGroup ¶
type FreezerGroup struct{}
func (*FreezerGroup) GetState ¶ added in v1.0.0
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 ¶ added in v0.0.5
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 ¶ added in v0.0.5
func (s *HugetlbGroup) Name() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶ added in v1.0.0
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 ¶ added in v0.0.7
func (*Manager) GetCgroups ¶ added in v1.2.0
func (*Manager) GetFreezerState ¶ added in v1.2.0
func (m *Manager) GetFreezerState() (configs.FreezerState, error)
func (*Manager) OOMKillCount ¶ added in v1.2.0
type MemoryGroup ¶
type MemoryGroup struct{}
func (*MemoryGroup) GetStats ¶
func (s *MemoryGroup) GetStats(path string, stats *cgroups.Stats) error
func (*MemoryGroup) Name ¶ added in v0.0.5
func (s *MemoryGroup) Name() string
type NameGroup ¶ added in v0.0.5
type NetClsGroup ¶
type NetClsGroup struct{}
func (*NetClsGroup) GetStats ¶
func (s *NetClsGroup) GetStats(path string, stats *cgroups.Stats) error
func (*NetClsGroup) Name ¶ added in v0.0.5
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 ¶ added in v0.0.5
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 ¶ added in v0.0.5
func (s *PerfEventGroup) Name() string
type PidsGroup ¶ added in v0.0.7
type PidsGroup struct{}
Click to show internal directories.
Click to hide internal directories.