Documentation
¶
Index ¶
- Constants
- func GetFacts(cfg config.Config) *facts.Facts
- type BlockDevice
- type BlockDevices
- type DMI
- type Date
- type FileSystem
- type FileSystems
- type Interface
- type Interfaces
- type Ip4Address
- type Ip6Address
- type Kernel
- type LoadAverage
- type Memory
- type Network
- type OSRelease
- type Processor
- type Processors
- type Swap
- type SystemFacts
Constants ¶
View Source
const ( // LINUX_SYSINFO_LOADS_SCALE has been described elsewhere as a "magic" number. // It reverts the calculation of "load << (SI_LOAD_SHIFT - FSHIFT)" done in the original load calculation. LINUX_SYSINFO_LOADS_SCALE float64 = 65536.0 )
Constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockDevice ¶
type BlockDevice struct { Device string Size uint64 Vendor string ReadIOs uint64 ReadMerges uint64 ReadSectors uint64 ReadTicks uint64 WriteIOs uint64 WriteMerges uint64 WriteSectors uint64 WriteTicks uint64 InFlight uint64 IOTicks uint64 TimeInQueue uint64 }
BlockDevice holds facts for a block device
type BlockDevices ¶
type BlockDevices map[string]BlockDevice
BlockDevices holds the BlockDevice facts.
type DMI ¶
type DMI struct { BIOSDate string BIOSVendor string BIOSVersion string ChassisAssetTag string ChassisSerial string ChassisType string ChassisVendor string ChassisVersion string ProductName string ProductSerial string ProductUUID string ProductVersion string SysVendor string }
DMI holds the DMI / Hardware Information.
type FileSystem ¶
type FileSystem struct { Device string MountPoint string Type string Options []string DumpFreq uint64 PassNo uint64 }
FileSystem holds facts for a filesystem (man fstab).
type Interface ¶
type Interface struct { Name string Index int HardwareAddr string IpAddresses []string Ip4Addresses []Ip4Address Ip6Addresses []Ip6Address }
Interface holds facts for a single interface.
type Ip4Address ¶
type Ip6Address ¶
type LoadAverage ¶
Holds the load average facts.
type OSRelease ¶
type OSRelease struct { Name string ID string PrettyName string Version string VersionID string CodeName string }
OSRelease holds the OS release facts.
type Processor ¶
type Processor struct { VendorID string CPUFamily uint64 Model uint64 ModelName string MHz string CacheSize string CPUCores uint64 Flags []string BogoMips float64 }
Processor holds facts about a single Processor / CPU.
type Processors ¶
Processors holds facts about the Processors / CPUs.
type SystemFacts ¶
type SystemFacts struct { Architecture string BootID string DMI DMI Date Date Domainname string Hostname string Network Network Kernel Kernel MachineID string Memory Memory OSRelease OSRelease Swap Swap Uptime int64 LoadAverage LoadAverage FileSystems FileSystems BlockDevices BlockDevices Processors Processors // contains filtered or unexported fields }
SystemFacts holds the system facts.
Click to show internal directories.
Click to hide internal directories.