Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HostEtc = func() string { if etcPath := os.Getenv("HOST_ETC"); etcPath != "" { return etcPath } return "/etc" }
HostEtc is the path to host etc and can be set using the env var "HOST_ETC" this is to maintain consistency with gopsutil
Functions ¶
func GetLinuxVersion ¶
GetLinuxVersion - adds information about the host linux version to the supplied map
Types ¶
type CPU ¶
type CPU struct { HostPhysicalCPUs int HostLogicalCPUs int HostCPUCores int64 HostCPUModel string HostMachine string HostProcessor string }
CPU information about the host
func (*CPU) ToStringMap ¶
ToStringMap returns the CPU as a string map
type Memory ¶
Memory stores memory collected from the host
func (*Memory) ToStringMap ¶
ToStringMap returns a map of key/value metadata about the host memory where memory sizes are reported in Kb
type OS ¶
type OS struct { HostOSName string HostKernelName string HostKernelRelease string HostKernelVersion string HostLinuxVersion string }
OS is a struct containing information about the host os
func (*OS) ToStringMap ¶
ToStringMap returns a map of key/value metadata about the host os
Click to show internal directories.
Click to hide internal directories.