Documentation
¶
Index ¶
- func GetHostname() (string, error)
- func GetInventoryJsonMarshal() ([]byte, error)
- func GetKernelVersion() (string, error)
- func GetModules() (map[string]interface{}, error)
- func GetPackagingSystem(distribution_id string) (packaging_system string)
- func ParseOSRelease() (map[string]string, error)
- type Distribution
- type Inventory
- type Package
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHostname ¶
func GetInventoryJsonMarshal ¶
func GetKernelVersion ¶
func GetModules ¶
func GetPackagingSystem ¶
func ParseOSRelease ¶
Types ¶
type Distribution ¶
type Distribution struct { Id string `json:"id,omitempty"` Version string `json:"version,omitempty"` PrettyName string `json:"pretty_name,omitempty"` PackageSystem string `json:"package_system,omitempty"` }
func GetDistribution ¶
func GetDistribution() (*Distribution, error)
type Inventory ¶
type Inventory struct { Hostname string `json:"hostname,omitempty"` Distribution *Distribution `json:"distribution,omitempty"` KernelVersion string `json:"kernel_version,omitempty"` InstalledPkgs []Package `json:"installed_packages,omitempty"` Modules map[string]interface{} `json:"modules,omitempty"` }
func GetInventory ¶
Click to show internal directories.
Click to hide internal directories.