cgm

package module
v0.0.0-...-1e2482b Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2014 License: LGPL-2.1 Imports: 2 Imported by: 0

README

go-cgm

This is a go library for interacting with the cgmanager. It supports the following calls:


Function Description
Cat Get the contents of a cgroup file
Create Create a cgroup
GetChildren Get list of child cgroups
GetTasks List tasks in a cgroup
ListControllers List mounted controllers
Ls List files offered by a controller
MovePid Move a process into a cgroup
Ping Ping the cgmanager
Remove Remove a cgroup
Set Set the value of a cgroup file

Arguemnts

Cat controller cgroup file
Create controller cgroup
GetChildren controller cgroup
GetTasks controller cgroup
ListControllers
Ls controller cgroup
MovePid controller new-cgroup pid
Ping
Remove controller cgroup
Set controller cgroup file new-value

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cat

func Cat(controller, cgroup, file string) (*string, error)

func Create

func Create(controller string, cgroup string) error

func GetChildren

func GetChildren(controller string, cgroup string) (*[]string, error)

func Gettasks

func Gettasks(controller string, cgroup string) (*[]int32, error)

func ListControllers

func ListControllers() (*[]string, error)

func Ls

func Ls(controller, cgroup string) (*[]Cgmfile, error)

func MovePid

func MovePid(controller, cgroup, pid string) error

func Ping

func Ping() error

func Remove

func Remove(controller, cgroup string) error

func Set

func Set(controller, cgroup, file, value string) error

Types

type Cgmfile

type Cgmfile struct {
	Name  string
	Owner uint32
	Group uint32
	Perms uint32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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