Documentation ¶
Index ¶
- func NewManager(cg *configs.Cgroup, paths map[string]string) (cgroups.Manager, error)
- 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 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 NewManager ¶ added in v1.0.0
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 {
TestingSkipFinalCheck bool
}
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 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.