Commit Graph

9 Commits (533485542f3c011a5d889f05265f42572a455916)

Author SHA1 Message Date
shirou 145dca90f7 change to use CommandContext.
shirou ebe614f6e1 [solaris] host: add PlatformInformation() which is missing.
shirou 4c73494c78 Add WithContext functions.
WAKAYAMA Shirou 114c78c777 [host]: add not implemented methods.
Sean Chittenden 42a72cbfae
Add HostID support to the `solaris` build target.
WAKAYAMA Shirou dfbb3e40da fix build bugs.
Eric Gourlaouen 8b08ca5fdc added temperatures
WAKAYAMA Shirou f8ef680a47 error strings change to lowercase
James Nugent 408005be94 host: Add Solaris support for Info, {Boot,Up}time
This commit adds support for Info(), BootTime() and Uptime() in package
Host. It uses no cgo, preferring to parse the output of `kstat -p`
instead.

Thanks go to @gfrey for the parsing logic for `/etc/release` and `uname`.