Tags: avishayt/ghw
Tags
Merge pull request jaypipes#243 from fromanirh/snapshots-gpu snapshot: collect data related to GPU devices
use all pointer types for receiving fields in WMI Apparently WMI will return `<nil>` type even for integer fields like DefaultBlockSize :( Issue jaypipes#189
0.3 This release includes the following fixes and features: - JSON and YAML serialization Each XXXInfo struct now has a `JSONString()` and `YAMLString()` method that returns serialized JSON or YAML. The `ghwc` client has added a new `--format|-f` CLI option to control the output of the program. - NICCapability.CanChange field renamed and fixed The `ghw.NICCapability.CanChange` field has been renamed to `CanEnable` to better describe the field's purpose. The boolean value of the field is now properly calculated from ethtool -k output. - GHW_DISABLE_WARNINGS You may now disable the output of warning messages to stderr by setting the GHW_DISABLE_WARNINGS environs variable. - A new 'virtio' bus type was added
First release of the Golang HardWare library (ghw) Features included in the 0.1 release: * CPU information via ghw.CPU() * Memory information via ghw.Memory() * Block storage information via ghw.Block() * GPU information via ghw.GPU() * Network interface controller information via ghw.Network() * Architecture and topology information via ghw.Topology() * PCI device and database information via ghw.PCI()