package
0.0.0-20200323101341-8e16ce76f45e
Repository: https://github.com/tlm/os.git
Documentation: pkg.go.dev
# Functions
CentOSVersionSeries validates that the supplied series (eg: centos7) is supported.
DefaultSupportedLTS returns the latest LTS that Juju supports and is compatible with.
ESMSupportedJujuSeries returns a slice of just juju extended security maintenance supported ubuntu series.
GetOSFromSeries will return the operating system based on the series that is passed to it.
HostSeries returns the series of the machine the current process is running on.
IsUnknownOSForSeriesError returns true if err is of type unknownOSForSeriesError.
IsUnknownSeriesVersionError returns true if err is of type unknownSeriesVersionError.
IsUnknownVersionSeriesError returns true if err is of type unknownVersionSeriesError.
IsWindowsNano tells us whether the provided series is a nano series.
LatestLts returns the Latest LTS Series found in distro-info.
MustOSFromSeries will panic if the series represents an "unknown" operating system.
NewDistroInfo creates a new DistroInfo for querying the distro.
OSSupportedSeries returns the series of the specified OS on which we can run Juju workloads.
No description provided by the author
ReleaseVersion looks for the value of VERSION_ID in the content of the os-release.
SeriesVersion returns the version for the specified series.
SetLatestLtsForTesting is provided to allow tests to override the lts series used and decouple the tests from the host by avoiding calling out to distro-info.
SupportedJujuControllerSeries returns a slice of juju supported series that target a controller (bootstrapping).
SupportedJujuSeries returns a slice of juju supported series that also target a workload.
SupportedJujuWorkloadSeries returns a slice of juju supported series that target a workload (deploying a charm).
SupportedLts are the current supported LTS series in ascending order.
SupportedSeries returns the series on which we can run Juju workloads.
UbuntuSeriesVersion returns the ubuntu version for the specified series.
UpdateSeriesVersions forces an update of the series versions by querying distro-info if possible.
VersionSeries returns the series (e.g.trusty) for the specified version (e.g.
WindowsVersions returns all windows versions as a map If we have nan and windows version in common, nano takes precedence.
WindowsVersionSeries returns the series (eg: win2012r2) for the specified version (eg: Windows Server 2012 R2 Standard).
# Variables
TODO(katco): Remove globals (lp:1633571) Override for testing.
UbuntuDistroInfo references a csv that contains all the distro information about info.
# Structs
DistroInfo holds records of which distro is supported or not.
DistroInfoSerie holds the information about each distro.
# Interfaces
FileSystem defines a interface for interacting with the host os.