fs

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 21 Imported by: 2,635

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager added in v1.0.0

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

func OOMKillCount added in v1.0.0

func OOMKillCount(path string) (uint64, error)

Types

type BlkioGroup

type BlkioGroup struct {
	// contains filtered or unexported fields
}

func (*BlkioGroup) Apply

func (s *BlkioGroup) Apply(path string, _ *configs.Resources, pid int) error

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

func (*BlkioGroup) Set

func (s *BlkioGroup) Set(path string, r *configs.Resources) error

type CpuGroup

type CpuGroup struct{}

func (*CpuGroup) Apply

func (s *CpuGroup) Apply(path string, r *configs.Resources, pid int) error

func (*CpuGroup) GetStats

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

func (*CpuGroup) Name added in v0.0.5

func (s *CpuGroup) Name() string

func (*CpuGroup) Set

func (s *CpuGroup) Set(path string, r *configs.Resources) error

func (*CpuGroup) SetRtSched added in v1.0.0

func (s *CpuGroup) SetRtSched(path string, r *configs.Resources) error

type CpuacctGroup

type CpuacctGroup struct{}

func (*CpuacctGroup) Apply

func (s *CpuacctGroup) Apply(path string, _ *configs.Resources, pid int) error

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

func (*CpuacctGroup) Set

func (s *CpuacctGroup) Set(_ string, _ *configs.Resources) error

type CpusetGroup

type CpusetGroup struct{}

func (*CpusetGroup) Apply

func (s *CpusetGroup) Apply(path string, r *configs.Resources, pid int) error

func (*CpusetGroup) ApplyDir

func (s *CpusetGroup) ApplyDir(dir string, r *configs.Resources, pid int) error

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

func (*CpusetGroup) Set

func (s *CpusetGroup) Set(path string, r *configs.Resources) error

type DevicesGroup

type DevicesGroup struct {
	TestingSkipFinalCheck bool
}

func (*DevicesGroup) Apply

func (s *DevicesGroup) Apply(path string, r *configs.Resources, pid int) error

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

func (*DevicesGroup) Set

func (s *DevicesGroup) Set(path string, r *configs.Resources) error

type FreezerGroup

type FreezerGroup struct{}

func (*FreezerGroup) Apply

func (s *FreezerGroup) Apply(path string, _ *configs.Resources, pid int) error

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

func (*FreezerGroup) Set

func (s *FreezerGroup) Set(path string, r *configs.Resources) (Err error)

type HugetlbGroup

type HugetlbGroup struct{}

func (*HugetlbGroup) Apply

func (s *HugetlbGroup) Apply(path string, _ *configs.Resources, pid int) error

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

func (*HugetlbGroup) Set

func (s *HugetlbGroup) Set(path string, r *configs.Resources) error

type MemoryGroup

type MemoryGroup struct{}

func (*MemoryGroup) Apply

func (s *MemoryGroup) Apply(path string, _ *configs.Resources, pid int) error

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

func (*MemoryGroup) Set

func (s *MemoryGroup) Set(path string, r *configs.Resources) error

type NameGroup added in v0.0.5

type NameGroup struct {
	GroupName string
	Join      bool
}

func (*NameGroup) Apply added in v0.0.5

func (s *NameGroup) Apply(path string, _ *configs.Resources, pid int) error

func (*NameGroup) GetStats added in v0.0.5

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

func (*NameGroup) Name added in v0.0.5

func (s *NameGroup) Name() string

func (*NameGroup) Set added in v0.0.5

func (s *NameGroup) Set(_ string, _ *configs.Resources) error

type NetClsGroup

type NetClsGroup struct{}

func (*NetClsGroup) Apply

func (s *NetClsGroup) Apply(path string, _ *configs.Resources, pid int) error

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

func (*NetClsGroup) Set

func (s *NetClsGroup) Set(path string, r *configs.Resources) error

type NetPrioGroup

type NetPrioGroup struct{}

func (*NetPrioGroup) Apply

func (s *NetPrioGroup) Apply(path string, _ *configs.Resources, pid int) error

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

func (*NetPrioGroup) Set

func (s *NetPrioGroup) Set(path string, r *configs.Resources) error

type PerfEventGroup

type PerfEventGroup struct{}

func (*PerfEventGroup) Apply

func (s *PerfEventGroup) Apply(path string, _ *configs.Resources, pid int) error

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

func (*PerfEventGroup) Set

type PidsGroup added in v0.0.7

type PidsGroup struct{}

func (*PidsGroup) Apply added in v0.0.7

func (s *PidsGroup) Apply(path string, _ *configs.Resources, pid int) error

func (*PidsGroup) GetStats added in v0.0.7

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

func (*PidsGroup) Name added in v0.0.7

func (s *PidsGroup) Name() string

func (*PidsGroup) Set added in v0.0.7

func (s *PidsGroup) Set(path string, r *configs.Resources) error

type RdmaGroup added in v1.1.0

type RdmaGroup struct{}

func (*RdmaGroup) Apply added in v1.1.0

func (s *RdmaGroup) Apply(path string, _ *configs.Resources, pid int) error

func (*RdmaGroup) GetStats added in v1.1.0

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

func (*RdmaGroup) Name added in v1.1.0

func (s *RdmaGroup) Name() string

func (*RdmaGroup) Set added in v1.1.0

func (s *RdmaGroup) Set(path string, r *configs.Resources) error

Jump to

Keyboard shortcuts

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