Documentation
¶
Index ¶
- func GetBIOSInfo(sysInfo sysinfo.SysInfo) map[string]interface{}
- func GetBoardInfo(sysInfo sysinfo.SysInfo) map[string]interface{}
- func GetCPUInfo(sysInfo sysinfo.SysInfo, dataUnit string) map[string]interface{}
- func GetGPUInfo() (gpuInfo map[string]interface{})
- func GetLoadInfo() map[string]interface{}
- func GetMemoryInfo(dataUnit string, percentUnit string) map[string]interface{}
- func GetNicInfo() (networkInfo map[string]interface{})
- func GetOSInfo(sysInfo sysinfo.SysInfo) map[string]interface{}
- func GetProcessInfo() map[string]interface{}
- func GetProductInfo(sysInfo sysinfo.SysInfo) map[string]interface{}
- func GetStorageInfo() (storageInfo map[string]interface{})
- func GetSwapInfo(dataUnit string) map[string]interface{}
- func GetTimeInfo() (map[string]interface{}, error)
- func GetTomlConfig(filePath string) (*toml.Tree, error)
- func GetUpdateDaemonInfo() (map[string]interface{}, error)
- func GetUpdateInfo(filePath string, line int) ([]string, error)
- func GetUserInfo() map[string]interface{}
- func WriteTomlConfig(filePath string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBIOSInfo ¶
GetBIOSInfo 获取BIOS信息
func GetBoardInfo ¶
GetBoardInfo 获取主板信息
func GetCPUInfo ¶
GetCPUInfo 获取CPU信息
func GetMemoryInfo ¶
GetMemoryInfo 获取内存信息
func GetProductInfo ¶
GetProductInfo 获取产品信息
func GetStorageInfo ¶
func GetStorageInfo() (storageInfo map[string]interface{})
GetStorageInfo 获取存储设备信息
func GetUpdateInfo ¶
读取更新信息文件,参数line为0时读取全部行
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.