Commit Graph

19 Commits (edff3add948e8e8e7815427468a6893afa38f2e7)

Author SHA1 Message Date
shirou ab0d977709 [sensors] move Temperatures from host to sensors. 10 months ago
shirou bc060cc227 add SPDX License, remove old build tag, and replace import 10 months ago
Matthieu MOREL c806740b34
ci(lint): ensure io/ioutil replacement (#1525)
* ci(lint): enure ioutil replacement

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

* Update host_solaris.go
* Update process_linux_test.go
* Update net_linux_test.go
* Update net_linux_test.go
* Update process_test.go
* Update process_linux_test.go
* Update process_linux_test.go

---------

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 years ago
shirou 0665cafa1b chore: replace deprecated ioutil package to os and io 2 years ago
Ville Skyttä f7e1f36418 refactor: remove unnecessary exec.LookPath calls
Executing the command does the lookup if needed and returns the same
error when not found, no need to do it separately.
3 years ago
Ville Skyttä 7a8feb155b [host][solaris] implement SensorsTemperaturesWithContext 3 years ago
shirou 0969c9436b delete v2 directory, move v3 to top #1078 3 years ago
Sergey Vinogradov 5209442b3c Refactor "host" package 5 years ago
Lomanic 4bf185067d [host] Fix #737 add KernelArch field in InfoStat struct returning 'uname -m' result 6 years ago
Segflow 86c7289ccc Fix: use filename in exec.LookPath instead of full path
exec.LookPath searches for the file in the $PATH, which mean giving it an absolute path is against it's own purposes.
6 years ago
shirou 145dca90f7 change to use CommandContext. 7 years ago
shirou ebe614f6e1 [solaris] host: add PlatformInformation() which is missing. 7 years ago
shirou 4c73494c78 Add WithContext functions. 7 years ago
WAKAYAMA Shirou 114c78c777 [host]: add not implemented methods. 8 years ago
Sean Chittenden 42a72cbfae
Add HostID support to the `solaris` build target. 8 years ago
WAKAYAMA Shirou dfbb3e40da fix build bugs. 8 years ago
Eric Gourlaouen 8b08ca5fdc added temperatures 8 years ago
WAKAYAMA Shirou f8ef680a47 error strings change to lowercase 8 years ago
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`.
8 years ago