Documentation
¶
Index ¶
- func GetPnpEntityByName(whost *host.WmiHost, pnpEntityName string) (entities pnp.PnpEntityCollection, err error)
- func GetVirtualMachines(whost *host.WmiHost) (vms virtualsystem.VirtualMachineCollection, err error)
- type ComputerSystem
- type Memory
- type OperatingSystem
- type PhysicalMemory
- type Processor
- type TotalProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPnpEntityByName ¶ added in v0.21.0
func GetPnpEntityByName(whost *host.WmiHost, pnpEntityName string) (entities pnp.PnpEntityCollection, err error)
GetPnpEntityByName
func GetVirtualMachines ¶ added in v0.21.0
func GetVirtualMachines(whost *host.WmiHost) (vms virtualsystem.VirtualMachineCollection, err error)
GetVirtualMachines gets all existing virtual machines
Types ¶
type ComputerSystem ¶ added in v0.21.0
type ComputerSystem struct {
*cimv2.Win32_ComputerSystem
}
func GetComputerSystem ¶ added in v0.21.0
func GetComputerSystem(whost *host.WmiHost) (cs *ComputerSystem, err error)
GetComputerSystem
type Memory ¶
type Memory struct {
SizeBytes uint64
}
func GetFreePhysicalMemory ¶
GetFreePhysicalMemory
type OperatingSystem ¶ added in v0.21.0
type OperatingSystem struct {
*cimv2.Win32_OperatingSystem
}
func GetOperatingSystem ¶ added in v0.21.0
func GetOperatingSystem(whost *host.WmiHost) (*OperatingSystem, error)
GetOperatingSystem
type PhysicalMemory ¶
type PhysicalMemory struct {
*cimv2.Win32_PhysicalMemory
}
func NewPhysicalMemory ¶
func NewPhysicalMemory(instance *wmi.WmiInstance) (*PhysicalMemory, error)
NewPhysicalMemory
type Processor ¶
type Processor struct {
*cimv2.Win32_Processor
}
func GetProcessor ¶ added in v0.21.0
func GetSpecificProcessorInfo ¶ added in v0.21.0
func NewProcessor ¶
func NewProcessor(instance *wmi.WmiInstance) (*Processor, error)
NewPhysicalMemory
type TotalProcessor ¶
func GetTotalProcessor ¶
func GetTotalProcessor(whost *host.WmiHost) (proc *TotalProcessor, err error)
GetTotalProcessor
Click to show internal directories.
Click to hide internal directories.