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 GetStorageInfo ¶
func GetStorageInfo() map[string]interface{}
GetStorageInfo 获取存储设备信息
返回:
- 存储设备信息
func GetUpdateInfo ¶
GetUpdateInfo 读取更新信息记录文件
- 参数 line=0 时读取全部行
参数:
- filePath: 更新信息记录文件路径
- line: 读取指定行
返回:
- 更新信息
- 错误信息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.