fs

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HugePageSizes, _ = cgroups.GetHugePageSize()
)

Functions

func NewManager

func NewManager(cg *configs.Cgroup, paths map[string]string, rootless bool) cgroups.Manager

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

func (*BlkioGroup) Set

func (s *BlkioGroup) Set(path string, cgroup *configs.Cgroup) error

type CpuGroup

type CpuGroup struct {
}

func (*CpuGroup) Apply

func (s *CpuGroup) Apply(path string, d *cgroupData) error

func (*CpuGroup) Clone

func (s *CpuGroup) Clone(source, dest string) error

func (*CpuGroup) GetStats

func (s *CpuGroup) GetStats(path string, stats *cgroups.Stats) error

func (*CpuGroup) Name

func (s *CpuGroup) Name() string

func (*CpuGroup) Set

func (s *CpuGroup) Set(path string, cgroup *configs.Cgroup) error

func (*CpuGroup) SetRtSched

func (s *CpuGroup) SetRtSched(path string, cgroup *configs.Cgroup) error

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

func (*CpuacctGroup) Set

func (s *CpuacctGroup) Set(path string, cgroup *configs.Cgroup) error

type CpusetGroup

type CpusetGroup struct {
}

func (*CpusetGroup) Apply

func (s *CpusetGroup) Apply(path string, d *cgroupData) error

func (*CpusetGroup) ApplyDir

func (s *CpusetGroup) ApplyDir(dir string, cgroup *configs.Cgroup, pid int) 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

func (*CpusetGroup) Set

func (s *CpusetGroup) Set(path string, cgroup *configs.Cgroup) error

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

func (*DevicesGroup) Set

func (s *DevicesGroup) Set(path string, cgroup *configs.Cgroup) error

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

func (*FreezerGroup) Set

func (s *FreezerGroup) Set(path string, cgroup *configs.Cgroup) error

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

func (*HugetlbGroup) Set

func (s *HugetlbGroup) Set(path string, cgroup *configs.Cgroup) error

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

func (*MemoryGroup) Set

func (s *MemoryGroup) Set(path string, cgroup *configs.Cgroup) error

type NameGroup

type NameGroup struct {
	GroupName string
	Join      bool
}

func (*NameGroup) Apply

func (s *NameGroup) Apply(path string, d *cgroupData) error

func (*NameGroup) Clone

func (s *NameGroup) Clone(source, dest string) error

func (*NameGroup) GetStats

func (s *NameGroup) GetStats(path string, stats *cgroups.Stats) error

func (*NameGroup) Name

func (s *NameGroup) Name() string

func (*NameGroup) Set

func (s *NameGroup) Set(path string, cgroup *configs.Cgroup) error

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

func (*NetClsGroup) Set

func (s *NetClsGroup) Set(path string, cgroup *configs.Cgroup) error

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

func (*NetPrioGroup) Set

func (s *NetPrioGroup) Set(path string, cgroup *configs.Cgroup) error

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

func (*PerfEventGroup) Set

func (s *PerfEventGroup) Set(path string, cgroup *configs.Cgroup) error

type PidsGroup

type PidsGroup struct {
}

func (*PidsGroup) Apply

func (s *PidsGroup) Apply(path string, d *cgroupData) error

func (*PidsGroup) Clone

func (s *PidsGroup) Clone(source, dest string) error

func (*PidsGroup) GetStats

func (s *PidsGroup) GetStats(path string, stats *cgroups.Stats) error

func (*PidsGroup) Name

func (s *PidsGroup) Name() string

func (*PidsGroup) Set

func (s *PidsGroup) Set(path string, cgroup *configs.Cgroup) error

type RdmaGroup

type RdmaGroup struct{}

func (*RdmaGroup) Apply

func (s *RdmaGroup) Apply(path string, d *cgroupData) error

func (*RdmaGroup) Clone

func (s *RdmaGroup) Clone(source, dest string) error

func (*RdmaGroup) GetStats

func (s *RdmaGroup) GetStats(path string, stats *cgroups.Stats) error

func (*RdmaGroup) Name

func (s *RdmaGroup) Name() string

func (*RdmaGroup) Set

func (s *RdmaGroup) Set(path string, cgroup *configs.Cgroup) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL