Documentation ¶
Overview ¶
Package tools 存放辅助方法
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateVersions ¶
GenerateVersions 获取版本列表
func RestartPanel ¶
func RestartPanel()
Types ¶
type MonitoringInfo ¶
type MonitoringInfo struct { Cpus []cpu.InfoStat `json:"cpus"` Percent []float64 `json:"percent"` Load *load.AvgStat `json:"load"` Host *host.InfoStat `json:"host"` Mem *mem.VirtualMemoryStat `json:"mem"` Swap *mem.SwapMemoryStat `json:"swap"` Net []net.IOCountersStat `json:"net"` DiskIO []disk.IOCountersStat `json:"disk_io"` Disk []disk.PartitionStat `json:"disk"` DiskUsage []disk.UsageStat `json:"disk_usage"` }
MonitoringInfo 监控信息
type PanelInfo ¶
type PanelInfo struct { Name string `json:"name"` Version string `json:"version"` DownloadName string `json:"download_name"` DownloadUrl string `json:"download_url"` Body string `json:"body"` Date string `json:"date"` Checksums string `json:"checksums"` ChecksumsUrl string `json:"checksums_url"` }
func GetLatestPanelVersion ¶
GetLatestPanelVersion 获取最新版本
func GetPanelVersion ¶
GetPanelVersion 获取指定面板版本
Click to show internal directories.
Click to hide internal directories.