Versions in this module Expand all Collapse all v1 v1.0.2 Apr 28, 2022 Changes in this version + var LinuxSystem string = "centos" + func SetLinuxStr() + func SetLinuxSystem(s string) v1.0.1 Apr 25, 2022 Changes in this version + const B + const GB + const KB + const MB + var ProcessorStat = make(map[string]int) + var ResultCount = 50 + func AnalyzeLine2HDDevUsageInfo(lineInfo string) (model.HDDevUsage, error) + func DiskUsage(path string) (disk model.DiskStatus) + func GetAppUser() (myUsers []model.AppUser) + func GetApplicationInfo() (myApplicationInfos model.ApplicationInfo) + func GetConnectionStatInfo(max int) ([]model.ConnectionStat, error) + func GetCpuInfo() (c model.Cpu, err error) + func GetCronTask() (myCrons []model.CronTask) + func GetDisksInfo() (d []model.Disk, err error) + func GetHardwareInfo() (h model.HardwareInfo, err error) + func GetHistoryLog(num int, str string) (historyLog model.HistoryLog) + func GetHostInfo() (s model.HostInfoService, err error) + func GetHostInfoFunc(list []string) (s model.HostInfoService, cnName map[string]string, hostInfo []string) + func GetHostLog(num int, str string) (s model.HostLog) + func GetIPTableInfo() (i model.Iptable, err error) + func GetLastLog(num int, str string) (result []model.LoginLog) + func GetLogInfo(num int, hostStr, historyStr, lastStr string) (s model.LogInfo) + func GetLoginInfo(list []string) (name, remote, time, status string) + func GetMemoryInfo() (m model.Memory, err error) + func GetNetCardInfo() (NetCardList []model.NetCard, err error) + func GetNetCardUUid(name string) (string, error) + func GetNetworkInfo() (s model.NetworkInfo) + func GetPasswordPolicy() (p model.PasswordPolicy, err error) + func GetPolicyInfo() (p model.PolicyInfo, err error) + func GetRunTimeInfo() (s model.RunTimeInfo, err error) + func GetServiceInfo() (myServices []model.Service) + func GetSpecialStatus() (R, S, T, I, Z, W, L, count int) + func GetSwapInfo() (s model.Swap, err error) + func GetSysMTabInfo() ([]model.HDDevUsage, error) + func GetTaskInfo() (taskList []model.Task, err error) + func GetUfwInfo() (u model.Ufw, err error) + func GetWebLog() (s model.WebLog, err error)