Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DiskUsagePath is the path to check usage of the disk. // Must be a filesystem path such as "/", not device file path like "/dev/vda1" DiskUsagePath = "/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostInfo ¶
type HostInfo struct {
Memory *mem.VirtualMemoryStat
CPU []cpu.InfoStat
Host *host.InfoStat
Disk *disk.UsageStat
CollectionTime int64
Errors []error
}
HostInfo includes information about resources on the host as well as collection time and
func CollectHostInfo ¶
func CollectHostInfo() *HostInfo
CollectHostInfo queries the host system and returns HostInfo. Any errors encountered will be returned in HostInfo.Errors
Click to show internal directories.
Click to hide internal directories.