19 Commits (v4.24.12)

Author SHA1 Message Date
shirou ab0d977709 [sensors] move Temperatures from host to sensors.
shirou bc060cc227 add SPDX License, remove old build tag, and replace import
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>
shirou 0665cafa1b chore: replace deprecated ioutil package to os and io
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.
Ville Skyttä 7a8feb155b [host][solaris] implement SensorsTemperaturesWithContext
shirou 0969c9436b delete v2 directory, move v3 to top #1078
Sergey Vinogradov 5209442b3c Refactor "host" package
Lomanic 4bf185067d [host] Fix #737 add KernelArch field in InfoStat struct returning 'uname -m' result
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.
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`.