Documentation ¶
Index ¶
- Variables
- func NewManager(cg *configs.Cgroup, paths map[string]string, rootless bool) cgroups.Manager
- type BlkioGroup
- type CpuGroup
- func (s *CpuGroup) Apply(path string, d *cgroupData) error
- func (s *CpuGroup) Clone(source, dest string) error
- func (s *CpuGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *CpuGroup) Name() string
- func (s *CpuGroup) Set(path string, cgroup *configs.Cgroup) error
- func (s *CpuGroup) SetRtSched(path string, cgroup *configs.Cgroup) error
- type CpuacctGroup
- type CpusetGroup
- func (s *CpusetGroup) Apply(path string, d *cgroupData) error
- func (s *CpusetGroup) ApplyDir(dir string, cgroup *configs.Cgroup, pid int) error
- func (s *CpusetGroup) Clone(source, dest string) error
- func (s *CpusetGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *CpusetGroup) Name() string
- func (s *CpusetGroup) Set(path string, cgroup *configs.Cgroup) error
- type DevicesGroup
- type FreezerGroup
- func (s *FreezerGroup) Apply(path string, d *cgroupData) error
- func (s *FreezerGroup) Clone(source, dest string) 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, cgroup *configs.Cgroup) error
- type HugetlbGroup
- type MemoryGroup
- type NameGroup
- type NetClsGroup
- type NetPrioGroup
- type PerfEventGroup
- func (s *PerfEventGroup) Apply(path string, d *cgroupData) error
- func (s *PerfEventGroup) Clone(source, dest string) error
- func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error
- func (s *PerfEventGroup) Name() string
- func (s *PerfEventGroup) Set(path string, cgroup *configs.Cgroup) error
- type PidsGroup
- type RdmaGroup
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HugePageSizes, _ = cgroups.GetHugePageSize()
)
Functions ¶
Types ¶
type BlkioGroup ¶
type BlkioGroup struct { }
func (*BlkioGroup) Apply ¶
func (s *BlkioGroup) Apply(path string, d *cgroupData) error
func (*BlkioGroup) Clone ¶
func (s *BlkioGroup) Clone(source, dest string) error
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) Apply ¶
func (s *CpuacctGroup) Apply(path string, d *cgroupData) error
func (*CpuacctGroup) Clone ¶
func (s *CpuacctGroup) Clone(source, dest string) error
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) Apply ¶
func (s *CpusetGroup) Apply(path string, d *cgroupData) error
func (*CpusetGroup) Clone ¶
func (s *CpusetGroup) Clone(source, dest string) error
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 {
// contains filtered or unexported fields
}
func (*DevicesGroup) Apply ¶
func (s *DevicesGroup) Apply(path string, d *cgroupData) error
func (*DevicesGroup) Clone ¶
func (s *DevicesGroup) Clone(source, dest string) error
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) Apply ¶
func (s *FreezerGroup) Apply(path string, d *cgroupData) error
func (*FreezerGroup) Clone ¶
func (s *FreezerGroup) Clone(source, dest string) error
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) Apply ¶
func (s *HugetlbGroup) Apply(path string, d *cgroupData) error
func (*HugetlbGroup) Clone ¶
func (s *HugetlbGroup) Clone(source, dest string) error
func (*HugetlbGroup) GetStats ¶
func (s *HugetlbGroup) GetStats(path string, stats *cgroups.Stats) error
func (*HugetlbGroup) Name ¶
func (s *HugetlbGroup) Name() string
type MemoryGroup ¶
type MemoryGroup struct { }
func (*MemoryGroup) Apply ¶
func (s *MemoryGroup) Apply(path string, d *cgroupData) (err error)
func (*MemoryGroup) Clone ¶
func (s *MemoryGroup) Clone(source, dest string) error
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) Apply ¶
func (s *NetClsGroup) Apply(path string, d *cgroupData) error
func (*NetClsGroup) Clone ¶
func (s *NetClsGroup) Clone(source, dest string) error
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) Apply ¶
func (s *NetPrioGroup) Apply(path string, d *cgroupData) error
func (*NetPrioGroup) Clone ¶
func (s *NetPrioGroup) Clone(source, dest string) error
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) Apply ¶
func (s *PerfEventGroup) Apply(path string, d *cgroupData) error
func (*PerfEventGroup) Clone ¶
func (s *PerfEventGroup) Clone(source, dest string) error
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.