Documentation ¶
Overview ¶
Package facts provides facts about the system
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Facts facts
Facts holds facts about the system
Functions ¶
func DistroUbuntu ¶
func DistroUbuntu() bool
DistroUbuntu - return true if we are on a Ubuntu distro
func GetStorageFactsInfo ¶
func GetStorageFactsInfo()
func GetSystemUUID ¶
func GetSystemUUID() string
GetSystemUUID - return/fill in the system UUID TODO if we can't find one, generate our own and store it in our cache dir
Types ¶
type CPUInfoFacts ¶
type CPUInfoFacts struct { Arch string // amd64/etc ArchArch string // x86_64/etc (i.e. the output you'd get from the arch binary) FeatureLevel string // v1/v2/v3/v4 equivalent to $GOAMD64 TODO Vendor string Model string Cores int Threads int Flags []string }
CPUInfoFacts - info about the CPU(s) in the system
type DistroFacts ¶
type DistroFacts struct { Name string Slug string Family string Version string Codename string InitSystem string }
DistroFacts - holds distro information
type NetworkFacts ¶
NetworkFacts contains facts about the network
type ServiceFacts ¶
ServiceFacts contains facts about the system services
type StorageFacts ¶
type StorageFacts struct {
LocalDisks []DiskInfo // list of local disks
}
func (*StorageFacts) GetRoot ¶
func (f *StorageFacts) GetRoot() (*DiskInfo, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.