total
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Lock golang version to 1.x May 25, 2018
ci Fix bad concorse task docker image reference May 25, 2018
examples psnotify doesn't work on windows (yet) Nov 21, 2017
fakes Add GetFileSystemUsage to Sigar interface Jun 19, 2014
fixtures Be more precise with memory expectations Nov 14, 2017
psnotify don't attempt to compile any psnotify files on windows Nov 21, 2017
sys/windows Pull ProcCpu.Get() into shared package Nov 2, 2017
vendor Vendor dependencies Nov 14, 2017
.gitignore Ignore vagrant folder Jun 17, 2014
.travis.yml Add .travis file Jun 18, 2014
Gopkg.lock Vendor dependencies Nov 14, 2017
Gopkg.toml Vendor dependencies Nov 14, 2017
LICENSE Initial import Jun 7, 2012
NOTICE Update NOTICE Jun 22, 2017
README.md Update README.md Feb 14, 2013
Vagrantfile Vagrantfile bump to go 1.9.1 Oct 9, 2017
concrete_sigar.go Add GetFileSystemUsage to Sigar interface Jun 19, 2014
concrete_sigar_test.go Add CPU, memory, disk stats to Windows implementation Apr 26, 2016
sigar_darwin.go psnotify doesn't work on windows (yet) Nov 21, 2017
sigar_format.go psnotify doesn't work on windows (yet) Nov 21, 2017
sigar_interface.go Add ProcCpu for measuring CPU usage of a process Oct 31, 2017
sigar_interface_test.go Add ProcCpu for measuring CPU usage of a process Oct 31, 2017
sigar_linux.go psnotify doesn't work on windows (yet) Nov 21, 2017
sigar_linux_test.go Pull ProcCpu.Get() into shared package Nov 2, 2017
sigar_shared.go Pull ProcCpu.Get() into shared package Nov 2, 2017
sigar_shared_test.go Update expectations to make unit tests less flakey on windows Sep 7, 2018
sigar_suite_test.go Add CPU, memory, disk stats to Windows implementation Apr 26, 2016
sigar_unix.go psnotify doesn't work on windows (yet) Nov 21, 2017
sigar_util.go psnotify doesn't work on windows (yet) Nov 21, 2017
sigar_windows.go psnotify doesn't work on windows (yet) Nov 21, 2017
sigar_windows_test.go Update expectations to make unit tests less flakey on windows Sep 7, 2018

README.md

Go sigar

Overview

Go sigar is a golang implementation of the sigar API. The Go version of sigar has a very similar interface, but is being written from scratch in pure go/cgo, rather than cgo bindings for libsigar.

Test drive

$ go get github.com/cloudfoundry/gosigar
$ cd $GOPATH/src/github.com/cloudfoundry/gosigar/examples
$ go run uptime.go

Supported platforms

Currently targeting modern flavors of darwin and linux.

License

Apache 2.0