Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type All ¶
type CPU ¶
func GatherCPUs ¶
type Desktop ¶
type Desktop struct { Name string `json:"name"` Protocol DisplayProtocol `json:"protocol"` }
func GatherDesktop ¶
type Disk ¶
type Disk struct { Model string `json:"model"` Name string `json:"name"` Type string `json:"type"` Controller string `json:"controller"` }
func GatherDisks ¶
type DisplayProtocol ¶
type DisplayProtocol int
const ( Unknown DisplayProtocol = iota Wayland X11 )
func (DisplayProtocol) String ¶
func (dp DisplayProtocol) String() string
type GPU ¶
func GatherGPUs ¶
type Hardware ¶
type Hardware struct { Vendor string `json:"vendor"` Product string `json:"product"` CPUs []CPU `json:"cpus"` GPUs []GPU `json:"gpus"` PhysicalMemory uint64 `json:"physical_memory"` UsableMemory uint64 `json:"usable_memory"` Swap uint64 `json:"swap"` }
func GatherHardware ¶
type NetworkDevice ¶
type NetworkDevice struct { Interface string `json:"interface"` Type string `json:"type"` Connected bool `json:"connected"` }
func GatherNetworkDevices ¶
func GatherNetworkDevices() ([]NetworkDevice, error)
type OS ¶
Click to show internal directories.
Click to hide internal directories.