ghw
ghw copied to clipboard
Go HardWare discovery/inspection library
wmi report inaccurate disk size, refer : https://stackoverflow.com/questions/9901792/wmi-win32-diskdrive-to-get-total-sector-on-the-physical-disk-drive replace Win32_DiskDrive with DeviceIOControl.
Expose informations about SRIOV devices. After some more design iterations (https://github.com/jaypipes/ghw/pull/230#discussion_r755312597), we fixed these goals: - model SRIOV devices as special PCI devices, avoiding a new top-level package - to...
This is a continuation of #293 . I've merged in the upstream changes as well.
Hello! github.com/StackExchange/wmi is archived, and there is suggestion to change it & use this fork: https://github.com/yusufpapurcu/wmi
I try this on win10, but it gives me that error: pciFillInfo not implemented on windows
```go package main import ( "fmt" "github.com/jaypipes/ghw" "github.com/sirupsen/logrus" "os" "strings" ) func Exists(path string) bool { _, err := os.Stat(path) if err != nil { if os.IsExist(err) { return true...
replace the ethtool invocation and related output parsing with the `ethtool` package which can now provide the same information natively (e.g. the package will NOT call the binary bug it...
Depend on sysfs instead of /proc/cpuinfo, for content of this file varies across CPU architectures, and doesn't offer unified info tag. Solves issue #199 . Signed-off-by: Xingyou Chen
To get the network interface properties on linux, we invoke the `ethtool` command. This works, but we can simplify our flow and avoid to depend on a external, not-installed-by-default tool...
Windows partitions will not populate correctly because the disk index on drive and partition are being compared using the pointer address, not the value.