Documentation ¶
Overview ¶
Package cgnetcls implements functionality to manage classid for processes belonging to different cgroups
Index ¶
Constants ¶
View Source
const ( // TriremeBasePath is the base path for the trireme local state in the file system TriremeBasePath = "/trireme" // CgroupNameTag identifies the cgroup name CgroupNameTag = "@cgroup_name" // CgroupMarkTag identifies the cgroup mark value CgroupMarkTag = "@cgroup_mark" // PortTag is the tag for the port values PortTag = "port" )
Variables ¶
This section is empty.
Functions ¶
func ListCgroupProcesses ¶
ListCgroupProcesses lists the processes of the cgroup
Types ¶
type Cgroupnetcls ¶
type Cgroupnetcls interface { Creategroup(cgroupname string) error AssignMark(cgroupname string, mark uint64) error AddProcess(cgroupname string, pid int) error RemoveProcess(cgroupname string, pid int) error DeleteCgroup(cgroupname string) error Deletebasepath(contextID string) bool }
Cgroupnetcls interface exposing methods that can be called from outside to manage net_cls cgroups
func NewCgroupNetController ¶
func NewCgroupNetController(releasePath string) Cgroupnetcls
NewCgroupNetController returns a handle to call functions on the cgroup net_cls controller
Click to show internal directories.
Click to hide internal directories.