golang bindings for libcgroup
Go to file
Vincent Batts 70e3da7eb3 adding bsd license 2014-02-16 22:41:09 -05:00
LICENSE adding bsd license 2014-02-16 22:41:09 -05:00
README.md adding package requirement notes 2014-02-16 21:06:40 -05:00
cg.go more progress 2013-12-17 17:03:55 -05:00
main.go adding a 'main' test file. 2013-12-17 17:09:17 -05:00

README.md

go-cgroup

Bindings to the libcgroup library

Installing

go get github.com/vbatts/go-cgroup

on debian, you'll need packages: golang, libcgroup-dev on fedora, you'll need packages: golang, libcgroup-devel

Sample

cgroup.Init()

fmt.Println(cgroup.GetSubSysMountPoint("cpu"))

ctls, err := cgroup.GetAllControllers()
if err != nil {
	fmt.Println(err)
	return
}
for i := range ctls {
	fmt.Println(ctls[i])
}

Contributing

Fork and Pull Request please!