osversion

package
v0.0.0-...-8223eb1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDetector = NewDetector(redhatReleaseFile)

Functions

This section is empty.

Types

type Detector

type Detector interface {
	Version() (OS, OSVersion, error)
}

func NewDetector

func NewDetector(releaseFile string) Detector

type OS

type OS string

Represents an operating system name, e.g. "CentOS"

func (OS) String

func (o OS) String() string

type OSVersion

type OSVersion string

Represents an operating system version, e.g. "6.6"

func (OSVersion) String

func (v OSVersion) String() string

Jump to

Keyboard shortcuts

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