osdetect

package
v0.0.0-...-a9ed6da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperatingSystem

type OperatingSystem struct {
	Platform        string
	PlatformVersion string
	PlatformFamily  string
	Architecture    string
	InitSystem      string
	PackageManager  string
}

OperatingSystem contains operating system information and capabilities Identifies are aligned with Ohai data naming.

func CollectOSData

func CollectOSData(log log.T) (*OperatingSystem, error)

CollectOSData quires the operating system for type and capabilities

type OsDetector

type OsDetector interface {
	DetectPlatform(log.T) (string, string, string, error)
	DetectInitSystem() (string, error)
	DetectPkgManager(string, string, string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL