BatteryStats struct

BatteryStats represents battery statistics

Fields:

  • Capacity (int) - json:"capacity"
  • CapacityDesign (int) - json:"capacityDesign"
  • Percentage (int) - json:"percentage"
  • Status (BatteryStatus) - json:"status"
  • Voltage (int) - json:"voltage"

BatteryStatus type

BatteryStatus represents the status of a battery

Type Definition:

string

DeviceType type

DeviceType represents a system device type

Type Definition:

string

InputDevice struct

InputDevice represents an input device

Fields:

  • Name (string) - json:"name"
  • Product (string) - json:"product"

ChassisType type

ChassisType represents the standardized chassis type.

Type Definition:

string

MachineInfo struct

MachineInfo contains various information about the current machine

Fields:

  • ProductName (string) - json:"productName"
  • Manufacturer (string) - json:"manufacturer"
  • Version (string) - json:"version"
  • Chassis (ChassisInfo) - json:"chassis"
  • Bios (BiosInfo) - json:"bios"
  • Board (BoardInfo) - json:"board"

ChassisInfo struct

ChassisInfo contains various information about the machine chassis

Fields:

  • ID (int) - json:"id"
  • Type (ChassisType) - json:"type"
  • Manufacturer (string) - json:"manufacturer"
  • Version (string) - json:"version"

BiosInfo struct

BiosInfo contains various information about the machine bios

Fields:

  • Vendor (string) - json:"vendor"
  • Version (string) - json:"version"
  • Release (string) - json:"release"

BoardInfo struct

BoardInfo contains various information about the machine board

Fields:

  • ProductName (string) - json:"product"
  • Manufacturer (string) - json:"manufacturer"
  • Version (string) - json:"version"

PCIDeviceMap type

PCIDeviceMap represents a map of PCIDeviceMapVendor structs

Type Definition:

[]PCIDeviceMapVendor

PCIDeviceMapDevice struct

PCIDeviceMapDevice represents a PCI (Peripheral Component Interconnect)

device

Fields:

  • ID (string)
  • Name (string)

PCIDeviceMapVendor struct

PCIDeviceMapVendor represents a PCI (Peripheral Component Interconnect)

vendor

Fields:

  • ID (string)
  • Name (string)
  • Devices ([]PCIDeviceMapDevice)

PCIDevice struct

PCIDevice represents a PCI (Peripheral Component Interconnect) device

Fields:

  • ID (string) - json:"id"
  • Class (string) - json:"class"
  • Name (string) - json:"name"
  • VendorName (string) - json:"vendor_name"
  • Vendor (string) - json:"vendor"
  • Device (string) - json:"device"
  • SubsystemDevice (string) - json:"subsystem_device"
  • SubsystemVendor (string) - json:"subsystem_vendor"
  • Modalias (string) - json:"modalias"

Peripheral struct

Peripheral represents a system peripheral.

Fields:

  • ID (string) - json:"id"
  • Name (string) - json:"name"
  • Type (DeviceType) - json:"type"