cli

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBIOSInfo

func GetBIOSInfo(sysInfo sysinfo.SysInfo) map[string]interface{}

GetBIOSInfo 获取BIOS信息

func GetBoardInfo

func GetBoardInfo(sysInfo sysinfo.SysInfo) map[string]interface{}

GetBoardInfo 获取主板信息

func GetCPUInfo

func GetCPUInfo(sysInfo sysinfo.SysInfo, dataUnit string) map[string]interface{}

GetCPUInfo 获取CPU信息

func GetGPUInfo

func GetGPUInfo() (gpuInfo map[string]interface{})

GetGPUInfo 获取显卡信息

func GetLoadInfo

func GetLoadInfo() map[string]interface{}

GetLoadInfo 获取负载信息

func GetMemoryInfo

func GetMemoryInfo(dataUnit string, percentUnit string) map[string]interface{}

GetMemoryInfo 获取内存信息

func GetNicInfo

func GetNicInfo() (networkInfo map[string]interface{})

GetNicInfo 获取网卡信息

func GetOSInfo

func GetOSInfo(sysInfo sysinfo.SysInfo) map[string]interface{}

GetOSInfo 获取系统信息

func GetProcessInfo

func GetProcessInfo() map[string]interface{}

GetProcessInfo 获取进程信息

func GetProductInfo

func GetProductInfo(sysInfo sysinfo.SysInfo) map[string]interface{}

GetProductInfo 获取产品信息

func GetStorageInfo

func GetStorageInfo() (storageInfo map[string]interface{})

GetStorageInfo 获取存储设备信息

func GetSwapInfo

func GetSwapInfo(dataUnit string) map[string]interface{}

GetSwapInfo 获取交换分区信息

func GetTimeInfo

func GetTimeInfo() (map[string]interface{}, error)

GetTimeInfo 获取时间信息

func GetTomlConfig

func GetTomlConfig(filePath string) (*toml.Tree, error)

读取toml配置文件

func GetUpdateDaemonInfo

func GetUpdateDaemonInfo() (map[string]interface{}, error)

获取更新检测服务信息

func GetUpdateInfo

func GetUpdateInfo(filePath string, line int) ([]string, error)

读取更新信息文件,参数line为0时读取全部行

func GetUserInfo

func GetUserInfo() map[string]interface{}

GetUserInfo 获取用户信息

func WriteTomlConfig

func WriteTomlConfig(filePath string) (int64, error)

写入toml配置文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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