Versions in this module Expand all Collapse all v1 v1.0.0 Mar 20, 2020 Changes in this version + var SubsystemsIns = []Subsystem + func FindCgroupMountpoint(subsystem string) string + func GetCgroupPath(subsystem string, cgroupPath string, autoCreate bool) (string, error) + type CpuSubSystem struct + func (s *CpuSubSystem) Apply(cgroupPath string, pid int) error + func (s *CpuSubSystem) Name() string + func (s *CpuSubSystem) Remove(cgroupPath string) error + func (s *CpuSubSystem) Set(cgroupPath string, res *ResourceConfig) error + type CpusetSubSystem struct + func (s *CpusetSubSystem) Apply(cgroupPath string, pid int) error + func (s *CpusetSubSystem) Name() string + func (s *CpusetSubSystem) Remove(cgroupPath string) error + func (s *CpusetSubSystem) Set(cgroupPath string, res *ResourceConfig) error + type MemorySubSystem struct + func (s *MemorySubSystem) Apply(cgroupPath string, pid int) error + func (s *MemorySubSystem) Name() string + func (s *MemorySubSystem) Remove(cgroupPath string) error + func (s *MemorySubSystem) Set(cgroupPath string, res *ResourceConfig) error + type ResourceConfig struct + CpuSet string + CpuShare string + MemoryLimit string + type Subsystem interface + Apply func(path string, pid int) error + Name func() string + Remove func(path string) error + Set func(path string, res *ResourceConfig) error Other modules containing this package github.com/charSLee013/mydocker/v2