Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HostInfo ¶
type HostInfo struct { Memory *memory.Info `json:"memory"` Block *block.Info `json:"block"` CPU *cpu.Info `json:"cpu"` Topology *topology.Info `json:"topology"` Network *net.Info `json:"network"` GPU *gpu.Info `json:"gpu"` Chassis *chassis.Info `json:"chassis"` BIOS *bios.Info `json:"bios"` Baseboard *baseboard.Info `json:"baseboard"` Product *product.Info `json:"product"` // contains filtered or unexported fields }
HostInfo represents all the host info minus the PCI devices We cannot use ghw.HostInfo directly as that tries to gather the local pci-ids database, which we don't have And fallbacks to download it from the network. Unfortunately that returns an error instead of a warning and prevents us from gathering the rest of the data. Thus, the necessity of having our own struct :/ We could drop this if we include the hwdata package in the base OS
Click to show internal directories.
Click to hide internal directories.