mirror of
https://github.com/vbatts/go-cgroup.git
synced 2025-01-15 10:10:09 +00:00
34 lines
397 B
Markdown
34 lines
397 B
Markdown
go-cgroup
|
|
=========
|
|
|
|
Bindings to the libcgroup library
|
|
|
|
|
|
Installing
|
|
==========
|
|
|
|
go get github.com/vbatts/go-cgroup
|
|
|
|
|
|
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!
|
|
|