Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HardwareInfo ¶
type HardwareInfo struct { MachineModel string CPUType string CurrentProcessorSpeed int PhysicalMemory string }
HardwareInfo is a subset of MachineInfo
func GetHardwareInfo ¶
func GetHardwareInfo() (*HardwareInfo, error)
GetHardwareInfo creates the necessary structure sal expects
type MachineInfo ¶
type MachineInfo struct { OSVers string HardwareInfo *HardwareInfo }
MachineInfo is required as a top level report field
func EmulateMachineInfo ¶
func EmulateMachineInfo() (*MachineInfo, error)
EmulateMachineInfo copies its behavior from macOS, and provides struct data to Sal
type Win32Bios ¶
type Win32Bios struct { PSComputerName string `json:"PSComputerName"` SerialNumber string `json:"SerialNumber"` }
Win32Bios data structure
func GetWin32Bios ¶
GetWin32Bios exports the win32_bios powershell class
type Win32ComputerSystem ¶
type Win32ComputerSystem struct { UserName string `json:"UserName"` Manufacturer string `json:"Manufacturer"` Model string `json:"Model"` }
Win32ComputerSystem structure
func GetWin32ComputerSystem ¶
func GetWin32ComputerSystem() (Win32ComputerSystem, error)
GetWin32ComputerSystem exports win32_ComputerSystem powershell class
type Win32LogicalDisk ¶
type Win32LogicalDisk struct { Name string `json:"Name"` Size int `json:"Size"` FreeSpace int `json:"FreeSpace"` }
Win32LogicalDisk structure
func GetWin32LogicalDisk ¶
func GetWin32LogicalDisk() ([]Win32LogicalDisk, error)
GetWin32LogicalDisk returns an array of powershell class win32_logicaldisk
type Win32OS ¶
type Win32OS struct { Caption string `json:"Caption"` //os version TotalVirtualMemorySize int `json:"TotalVirtualMemorySize"` TotalVisibleMemorySize int `json:"TotalVisibleMemorySize"` }
Win32OS structure
func GetWin32OS ¶
GetWin32OS exports win32_operatingsystem powershell class
type Win32Processor ¶
type Win32Processor struct { CPUType string `json:"Name"` CurrentProcessorSpeed int `json:"MaxClockSpeed"` }
Win32Processor data structure
func GetWin32Processor ¶
func GetWin32Processor() (Win32Processor, error)
GetWin32Processor exports the win32_bios powershell class