Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DockerStat ¶
type DockerStat struct {
Memory VirtualMemoryStat `json:"memory"`
CpuPercent float64 `json:"cpuPercent"`
}
type VirtualMemoryStat ¶
type VirtualMemoryStat struct {
Total uint64 `json:"total"`
Available uint64 `json:"available"`
Used uint64 `json:"used"`
UsedPercent float64 `json:"usedPercent"`
Free uint64 `json:"free"`
}
func VirtualMemory ¶
func VirtualMemory() (VirtualMemoryStat, error)
func (VirtualMemoryStat) String ¶
func (m VirtualMemoryStat) String() string
Click to show internal directories.
Click to hide internal directories.