subsystems

package
v0.0.0-...-03ffbd0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type CPUSetSubSystem

type CPUSetSubSystem struct{}

func (*CPUSetSubSystem) Apply

func (cs *CPUSetSubSystem) Apply(path string, pid int) error

func (*CPUSetSubSystem) Name

func (cs *CPUSetSubSystem) Name() string

func (*CPUSetSubSystem) Remove

func (cs *CPUSetSubSystem) Remove(path string) error

func (*CPUSetSubSystem) Set

func (cs *CPUSetSubSystem) Set(cgroupPath string, res *ResourceConfig) error

type CPUSubSystem

type CPUSubSystem struct{}

func (*CPUSubSystem) Apply

func (cs *CPUSubSystem) Apply(path string, pid int) error

func (*CPUSubSystem) Name

func (cs *CPUSubSystem) Name() string

func (*CPUSubSystem) Remove

func (cs *CPUSubSystem) Remove(path string) error

func (*CPUSubSystem) Set

func (cs *CPUSubSystem) Set(cgroupPath string, res *ResourceConfig) error

type MemorySubSystem

type MemorySubSystem struct{}

func (*MemorySubSystem) Apply

func (ms *MemorySubSystem) Apply(path string, pid int) error

func (*MemorySubSystem) Name

func (ms *MemorySubSystem) Name() string

func (*MemorySubSystem) Remove

func (ms *MemorySubSystem) Remove(path string) error

func (*MemorySubSystem) Set

func (ms *MemorySubSystem) Set(cgroupPath string, res *ResourceConfig) error

type ResourceConfig

type ResourceConfig struct {
	MemoryLimit string
	CpuShare    string
	CpuSet      string
}

type Subsystem

type Subsystem interface {
	Name() string
	Set(cgroupPath string, res *ResourceConfig) error
	Apply(path string, pid int) error
	Remove(path string) error
}

Jump to

Keyboard shortcuts

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