prysm-pulse/vendor/github.com/elastic/gosigar
Eli 1cf6747d06 whisper: Golint fixes in whisper packages (#16637)
Former-commit-id: 6a2a7c34e451465eae5d78f76e310e36a412d848 [formerly 6294fcfb3a206061cc8f9309f945f9b0c5a332a2]
Former-commit-id: e2d352442cc4b45620454ac6ece0f8d3d564ed11
2018-05-02 08:17:17 +02:00
..
sys/windows accounts/abi: use unpackTuple to unpack event arguments 2018-02-16 11:46:25 +01:00
CHANGELOG.md whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
codecov.yml accounts/abi: use unpackTuple to unpack event arguments 2018-02-16 11:46:25 +01:00
concrete_sigar.go whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
LICENSE accounts/abi: use unpackTuple to unpack event arguments 2018-02-16 11:46:25 +01:00
NOTICE accounts/abi: use unpackTuple to unpack event arguments 2018-02-16 11:46:25 +01:00
README.md whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
sigar_darwin.go whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
sigar_format.go accounts/abi: use unpackTuple to unpack event arguments 2018-02-16 11:46:25 +01:00
sigar_freebsd.go whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
sigar_interface.go whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
sigar_linux_common.go whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
sigar_linux.go whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
sigar_openbsd.go whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
sigar_stub.go whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
sigar_unix.go accounts/abi: use unpackTuple to unpack event arguments 2018-02-16 11:46:25 +01:00
sigar_util.go accounts/abi: use unpackTuple to unpack event arguments 2018-02-16 11:46:25 +01:00
sigar_windows.go whisper: Golint fixes in whisper packages (#16637) 2018-05-02 08:17:17 +02:00
Vagrantfile accounts/abi: use unpackTuple to unpack event arguments 2018-02-16 11:46:25 +01:00

Go sigar Build Status Build status

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/elastic/gosigar
$ cd $GOPATH/src/github.com/elastic/gosigar/examples/ps
$ go build
$ ./ps

Supported platforms

The features vary by operating system.

Feature Linux Darwin Windows OpenBSD FreeBSD
Cpu X X X X X
CpuList X X X X
FDUsage X X
FileSystemList X X X X X
FileSystemUsage X X X X X
HugeTLBPages X
LoadAverage X X X X
Mem X X X X X
ProcArgs X X X X
ProcEnv X X X
ProcExe X X X
ProcFDUsage X X
ProcList X X X X
ProcMem X X X X
ProcState X X X X
ProcTime X X X X
Swap X X X X
Uptime X X X X

OS Specific Notes

FreeBSD

Mount both linprocfs and procfs for compatability. Consider adding these mounts to your /etc/fstab file so they are mounted automatically at boot.

sudo mount -t procfs proc /proc
sudo mkdir -p /compat/linux/proc
sudo mount -t linprocfs /dev/null /compat/linux/proc

License

Apache 2.0