host

package
v0.37.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func GetFreePhysicalMemory(whost *host.WmiHost) (mem *Memory, err error)

GetFreePhysicalMemory

func GetTotalPhysicalMemory

func GetTotalPhysicalMemory(whost *host.WmiHost) (mem *Memory, err error)

GetTotalPhysicalMemory

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 GetProcessor(whost *host.WmiHost) (proc *Processor, err error)

func GetSpecificProcessorInfo added in v0.21.0

func GetSpecificProcessorInfo(whost *host.WmiHost, selectList []string) (proc *Processor, err error)

func NewProcessor

func NewProcessor(instance *wmi.WmiInstance) (*Processor, error)

NewPhysicalMemory

type TotalProcessor

type TotalProcessor struct {
	Cores             uint32
	LogicalProcessors uint32
}

func GetTotalProcessor

func GetTotalProcessor(whost *host.WmiHost) (proc *TotalProcessor, err error)

GetTotalProcessor

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL