Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPlatformInformation ¶
func GetVirtualization ¶
Types ¶
type HostInfoStat ¶
type HostInfoStat struct { Hostname string `json:"hostname"` Uptime uint64 `json:"uptime"` Procs uint64 `json:"procs"` // number of processes OS string `json:"os"` // ex: freebsd, linux Platform string `json:"platform"` // ex: ubuntu, linuxmint PlatformFamily string `json:"platform_family"` // ex: debian, rhel PlatformVersion string `json:"platform_version"` VirtualizationSystem string `json:"virtualization_system"` VirtualizationRole string `json:"virtualization_role"` // guest or host }
A HostInfoStat describes the host status. This is not in the psutil but it useful.
func HostInfo ¶
func HostInfo() (*HostInfoStat, error)
func (HostInfoStat) String ¶
func (h HostInfoStat) String() string
Click to show internal directories.
Click to hide internal directories.