Documentation
¶
Overview ¶
Gather facts (memory, cpus, filesystems, etc...) about the current machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Facts ¶
type Facts struct { Hostname string `json:"hostname"` Domain string `json:"domain"` Fqdn string `json:"fqdn"` Cpus int `json:"cpus"` Arch string `json:"arch"` Os string `json:"os"` Platform string `json:"platform"` PlatformVersion string `json:"platform_version"` PlatformCodename string `json:"platform_codename"` Uptime float64 `json:"uptime"` Memory uint64 `json:"memory"` // In megabytes Swap uint64 `json:"swap"` // In megabytes Interfaces map[string]Interface `json:"interfaces"` // key is nic name ex: en0, eth0 FileSystems map[string]FileSystem `json:"filesystems"` // key is DeviceName }
func (*Facts) ToPrettyJson ¶
Return facts as a JSON document with newlines and indentation added.
type FileSystem ¶
Click to show internal directories.
Click to hide internal directories.