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() map[string]interface{}
- func GetLoadInfo() map[string]interface{}
- func GetMemoryInfo(dataUnit string, percentUnit string) map[string]interface{}
- func GetNicInfo() map[string]interface{}
- func GetOSInfo(sysInfo sysinfo.SysInfo) map[string]interface{}
- func GetProductInfo(sysInfo sysinfo.SysInfo) map[string]interface{}
- func GetStorageInfo() 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 GetTomlConfig ¶
GetTomlConfig 读取 toml 配置文件
func GetUpdateDaemonInfo ¶
GetUpdateDaemonInfo 获取更新检测服务信息
func GetUpdateInfo ¶
GetUpdateInfo 读取更新信息文件,参数 line 为0时读取全部行
func WriteTomlConfig ¶
WriteTomlConfig 写入 toml 配置文件
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.