The current API is made of the following methods:
Ping is just used to test that the manager is alive and well, the value of the integer is ignored.
Takes a controller and PID and returns the cgroup path.
Takes a controller and PID and returns the absolute cgroup path.
Creates a new cgroup path in the provided controller, returns 1
if the path already existed, 0 if it was created.
Chown the provided controller/cgroup path to the provied uid and gid,
this will chown the directory as well as the cgroup.procs and tasks files.
Chmod the provided controller/cgroup/file path to the provided mode.
Moves the provided PID into the provided controller/cgroup.
Similar to MovePid but takes an absolute cgroup path rather than one relative
to the caller (or proxy). This call is restricted to root as it lets you escape
your current cgroup restrictions.
Queries the value of the given key in the given controller/cgroup.
The value is always returned as a string.
Sets the value of the given key to that provided.
Removes the provided cgroup, if recursive is set to 1, any sub-cgroup will also be removed.
The return value indicates whether the cgroup existed.
Returns an array of int representing all the PIDs in the provided cgroup path.
Returns an array of int representing all the PIDs in the provided cgroup path and its sub-directories.
Returns an array of string representing all the children (sub-cgroup) of the provided cgroup path.
Marks the cgroup as removable when empty.
Once the last task exists the cgroup, cgmanager will automatically remove it.
Calls RemoveOnEmpty on the cgroups path and any sub-directory (recursively).
Tasks will not be killed but once they all exit either naturally or
because something killed them, the cgroup will disappear.
Returns an array of string representing the supported controllers.
Returns an array of (string name, uint uid, uint gid, uint mode) representing the available cgroup keys.
The current internal API version, used for feature checks.
The org.linuxcontainers.cgmanager.xml file in the cgmanager cgmanager tree is used to generate the client library and is the authoritative API definition.