cli

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 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() 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() map[string]interface{}

GetNicInfo 获取网卡信息

func GetOSInfo

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

GetOSInfo 获取系统信息

func GetProductInfo

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

GetProductInfo 获取产品信息

func GetStorageInfo

func GetStorageInfo() 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)

GetTomlConfig 读取 toml 配置文件

func GetUpdateDaemonInfo

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

GetUpdateDaemonInfo 获取更新检测服务信息

func GetUpdateInfo

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

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

func GetUserInfo

func GetUserInfo() map[string]interface{}

GetUserInfo 获取用户信息

func WriteTomlConfig

func WriteTomlConfig(filePath string) (int64, error)

WriteTomlConfig 写入 toml 配置文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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