Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CgroupManager ¶
func NewCgroupManager ¶
func NewCgroupManager(name string, limits map[string]string) *CgroupManager
func (*CgroupManager) ApplyPid ¶
func (c *CgroupManager) ApplyPid(pid int)
func (*CgroupManager) Destory ¶
func (c *CgroupManager) Destory()
func (*CgroupManager) SetLimit ¶
func (c *CgroupManager) SetLimit()
type Subsystem ¶
type Subsystem struct { Name string CgroupName string Path string LimitFilePath string TaskFilePath string Limit string }
Click to show internal directories.
Click to hide internal directories.