Help us shape the future of Go! Take the 2026 Go Developer Survey

fs

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2016 License: Apache-2.0, Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CgroupProcesses  = "cgroup.procs"
	HugePageSizes, _ = cgroups.GetHugePageSize()
)
View Source
var (
	ErrNotSupportStat = errors.New("stats are not supported for subsystem")
	ErrNotValidFormat = errors.New("line is not a valid key value format")
)

Functions

func CheckCpushares added in v1.1.1

func CheckCpushares(path string, c int64) error

Types

type BlkioGroup

type BlkioGroup struct {
}

func (*BlkioGroup) Apply added in v0.16.0

func (s *BlkioGroup) Apply(d *data) error

func (*BlkioGroup) GetStats

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

func (*BlkioGroup) Remove

func (s *BlkioGroup) Remove(d *data) error

func (*BlkioGroup) Set

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

type CpuGroup

type CpuGroup struct {
}

func (*CpuGroup) Apply added in v0.16.0

func (s *CpuGroup) Apply(d *data) error

func (*CpuGroup) GetStats

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

func (*CpuGroup) Remove

func (s *CpuGroup) Remove(d *data) error

func (*CpuGroup) Set

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

type CpuacctGroup

type CpuacctGroup struct {
}

func (*CpuacctGroup) Apply added in v0.16.0

func (s *CpuacctGroup) Apply(d *data) error

func (*CpuacctGroup) GetStats

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

func (*CpuacctGroup) Remove

func (s *CpuacctGroup) Remove(d *data) error

func (*CpuacctGroup) Set

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

type CpusetGroup

type CpusetGroup struct {
}

func (*CpusetGroup) Apply added in v0.16.0

func (s *CpusetGroup) Apply(d *data) error

func (*CpusetGroup) ApplyDir added in v0.16.0

func (s *CpusetGroup) ApplyDir(dir string, cgroup *configs.Cgroup, pid int) error

func (*CpusetGroup) GetStats

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

func (*CpusetGroup) Remove

func (s *CpusetGroup) Remove(d *data) error

func (*CpusetGroup) Set

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

type DevicesGroup

type DevicesGroup struct {
}

func (*DevicesGroup) Apply added in v0.16.0

func (s *DevicesGroup) Apply(d *data) error

func (*DevicesGroup) GetStats

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

func (*DevicesGroup) Remove

func (s *DevicesGroup) Remove(d *data) error

func (*DevicesGroup) Set

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

type FreezerGroup

type FreezerGroup struct {
}

func (*FreezerGroup) Apply added in v0.16.0

func (s *FreezerGroup) Apply(d *data) error

func (*FreezerGroup) GetStats

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

func (*FreezerGroup) Remove

func (s *FreezerGroup) Remove(d *data) error

func (*FreezerGroup) Set

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

type HugetlbGroup added in v1.1.1

type HugetlbGroup struct {
}

func (*HugetlbGroup) Apply added in v1.1.1

func (s *HugetlbGroup) Apply(d *data) error

func (*HugetlbGroup) GetStats added in v1.1.1

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

func (*HugetlbGroup) Remove added in v1.1.1

func (s *HugetlbGroup) Remove(d *data) error

func (*HugetlbGroup) Set added in v1.1.1

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

type Manager added in v0.16.0

type Manager struct {
	Cgroups *configs.Cgroup
	Paths   map[string]string
	// contains filtered or unexported fields
}

func (*Manager) Apply added in v0.16.0

func (m *Manager) Apply(pid int) error

func (*Manager) Destroy added in v0.16.0

func (m *Manager) Destroy() error

func (*Manager) Freeze added in v0.16.0

func (m *Manager) Freeze(state configs.FreezerState) error

Freeze toggles the container's freezer cgroup depending on the state provided

func (*Manager) GetPaths added in v0.16.0

func (m *Manager) GetPaths() map[string]string

func (*Manager) GetPids added in v0.16.0

func (m *Manager) GetPids() ([]int, error)

func (*Manager) GetStats added in v0.16.0

func (m *Manager) GetStats() (*cgroups.Stats, error)

func (*Manager) Set added in v0.16.0

func (m *Manager) Set(container *configs.Config) error

type MemoryGroup

type MemoryGroup struct {
}

func (*MemoryGroup) Apply added in v0.16.0

func (s *MemoryGroup) Apply(d *data) error

func (*MemoryGroup) GetStats

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

func (*MemoryGroup) Remove

func (s *MemoryGroup) Remove(d *data) error

func (*MemoryGroup) Set

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

type NetClsGroup added in v1.1.1

type NetClsGroup struct {
}

func (*NetClsGroup) Apply added in v1.1.1

func (s *NetClsGroup) Apply(d *data) error

func (*NetClsGroup) GetStats added in v1.1.1

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

func (*NetClsGroup) Remove added in v1.1.1

func (s *NetClsGroup) Remove(d *data) error

func (*NetClsGroup) Set added in v1.1.1

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

type NetPrioGroup added in v1.1.1

type NetPrioGroup struct {
}

func (*NetPrioGroup) Apply added in v1.1.1

func (s *NetPrioGroup) Apply(d *data) error

func (*NetPrioGroup) GetStats added in v1.1.1

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

func (*NetPrioGroup) Remove added in v1.1.1

func (s *NetPrioGroup) Remove(d *data) error

func (*NetPrioGroup) Set added in v1.1.1

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

type PerfEventGroup

type PerfEventGroup struct {
}

func (*PerfEventGroup) Apply added in v0.16.0

func (s *PerfEventGroup) Apply(d *data) error

func (*PerfEventGroup) GetStats

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

func (*PerfEventGroup) Remove

func (s *PerfEventGroup) Remove(d *data) error

func (*PerfEventGroup) Set

func (s *PerfEventGroup) 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