package fs
import "github.com/opencontainers/runc/libcontainer/cgroups/fs"
Index ¶
- func OOMKillCount(path string) (uint64, error)
- type BlkioGroup
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- func NewManager(cg *configs.Cgroup, paths map[string]string) (*Manager, error)
- 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
- 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
- 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
- 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
- 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
- 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
- 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
Functions ¶
func OOMKillCount ¶
Types ¶
type BlkioGroup ¶
type BlkioGroup struct {
// contains filtered or unexported fields
}
func (*BlkioGroup) Apply ¶
func (*BlkioGroup) GetStats ¶
func (s *BlkioGroup) GetStats(path string, stats *cgroups.Stats) error
func (*BlkioGroup) Name ¶
func (s *BlkioGroup) Name() string
func (*BlkioGroup) Set ¶
func (s *BlkioGroup) Set(path string, r *configs.Resources) error
type CpuGroup ¶
type CpuGroup struct{}
func (*CpuGroup) Apply ¶
func (*CpuGroup) GetStats ¶
func (*CpuGroup) Name ¶
func (*CpuGroup) Set ¶
func (*CpuGroup) SetRtSched ¶
type CpuacctGroup ¶
type CpuacctGroup struct{}
func (*CpuacctGroup) Apply ¶
func (*CpuacctGroup) GetStats ¶
func (s *CpuacctGroup) GetStats(path string, stats *cgroups.Stats) error
func (*CpuacctGroup) Name ¶
func (s *CpuacctGroup) Name() string
func (*CpuacctGroup) Set ¶
func (s *CpuacctGroup) Set(_ string, _ *configs.Resources) error
type CpusetGroup ¶
type CpusetGroup struct{}
func (*CpusetGroup) Apply ¶
func (*CpusetGroup) ApplyDir ¶
func (*CpusetGroup) GetStats ¶
func (s *CpusetGroup) GetStats(path string, stats *cgroups.Stats) error
func (*CpusetGroup) Name ¶
func (s *CpusetGroup) Name() string
func (*CpusetGroup) Set ¶
func (s *CpusetGroup) Set(path string, r *configs.Resources) error
type DevicesGroup ¶
type DevicesGroup struct{}
func (*DevicesGroup) Apply ¶
func (*DevicesGroup) GetStats ¶
func (s *DevicesGroup) GetStats(path string, stats *cgroups.Stats) error
func (*DevicesGroup) Name ¶
func (s *DevicesGroup) Name() string
func (*DevicesGroup) Set ¶
func (s *DevicesGroup) Set(path string, r *configs.Resources) error
type FreezerGroup ¶
type FreezerGroup struct{}
func (*FreezerGroup) Apply ¶
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
func (*FreezerGroup) Set ¶
func (s *FreezerGroup) Set(path string, r *configs.Resources) (Err error)
type HugetlbGroup ¶
type HugetlbGroup struct{}
func (*HugetlbGroup) Apply ¶
func (*HugetlbGroup) GetStats ¶
func (s *HugetlbGroup) GetStats(path string, stats *cgroups.Stats) error
func (*HugetlbGroup) Name ¶
func (s *HugetlbGroup) Name() string
func (*HugetlbGroup) Set ¶
func (s *HugetlbGroup) Set(path string, r *configs.Resources) error
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) Apply ¶
func (*Manager) Destroy ¶
func (*Manager) Exists ¶
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) GetCgroups ¶
func (*Manager) GetFreezerState ¶
func (m *Manager) GetFreezerState() (configs.FreezerState, error)
func (*Manager) GetPaths ¶
func (*Manager) GetPids ¶
func (*Manager) GetStats ¶
func (*Manager) OOMKillCount ¶
func (*Manager) Path ¶
func (*Manager) Set ¶
type MemoryGroup ¶
type MemoryGroup struct{}
func (*MemoryGroup) Apply ¶
func (*MemoryGroup) GetStats ¶
func (s *MemoryGroup) GetStats(path string, stats *cgroups.Stats) error
func (*MemoryGroup) Name ¶
func (s *MemoryGroup) Name() string
func (*MemoryGroup) Set ¶
func (s *MemoryGroup) Set(path string, r *configs.Resources) error
type NameGroup ¶
func (*NameGroup) Apply ¶
func (*NameGroup) GetStats ¶
func (*NameGroup) Name ¶
func (*NameGroup) Set ¶
type NetClsGroup ¶
type NetClsGroup struct{}
func (*NetClsGroup) Apply ¶
func (*NetClsGroup) GetStats ¶
func (s *NetClsGroup) GetStats(path string, stats *cgroups.Stats) error
func (*NetClsGroup) Name ¶
func (s *NetClsGroup) Name() string
func (*NetClsGroup) Set ¶
func (s *NetClsGroup) Set(path string, r *configs.Resources) error
type NetPrioGroup ¶
type NetPrioGroup struct{}
func (*NetPrioGroup) Apply ¶
func (*NetPrioGroup) GetStats ¶
func (s *NetPrioGroup) GetStats(path string, stats *cgroups.Stats) error
func (*NetPrioGroup) Name ¶
func (s *NetPrioGroup) Name() string
func (*NetPrioGroup) Set ¶
func (s *NetPrioGroup) Set(path string, r *configs.Resources) error
type PerfEventGroup ¶
type PerfEventGroup struct{}
func (*PerfEventGroup) Apply ¶
func (*PerfEventGroup) GetStats ¶
func (s *PerfEventGroup) GetStats(path string, stats *cgroups.Stats) error
func (*PerfEventGroup) Name ¶
func (s *PerfEventGroup) Name() string
func (*PerfEventGroup) Set ¶
func (s *PerfEventGroup) Set(_ string, _ *configs.Resources) error
type PidsGroup ¶
type PidsGroup struct{}
func (*PidsGroup) Apply ¶
func (*PidsGroup) GetStats ¶
func (*PidsGroup) Name ¶
func (*PidsGroup) Set ¶
type RdmaGroup ¶
type RdmaGroup struct{}
func (*RdmaGroup) Apply ¶
func (*RdmaGroup) GetStats ¶
func (*RdmaGroup) Name ¶
func (*RdmaGroup) Set ¶
Source Files ¶
blkio.go cpu.go cpuacct.go cpuset.go devices.go error.go freezer.go fs.go hugetlb.go memory.go name.go net_cls.go net_prio.go paths.go perf_event.go pids.go rdma.go
- Version
- v1.2.6 (latest)
- Published
- Mar 14, 2025
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 2 hours ago –
Tools for package owners.