package
2.0.0-alpha.3
Repository: https://github.com/k0sproject/rig.git
Documentation: pkg.go.dev

# Functions

NewOSReleaseService creates a new instance of Service with the provided provider and runner.
NewProvider creates a new OS release provider.
RegisterDarwin registers the darwin OS release resolver to a provider.
RegisterLinux registers the linux OS release resolver to a provider.
RegisterWindows registers the windows OS release resolver to a provider.
ResolveDarwin resolves the OS release information for a darwin host.
ResolveLinux resolves the OS release information for a linux host.
ResolveWindows resolves the OS release information for a windows host.

# Variables

DefaultProvider is the default OS release provider.
ErrNotRecognized is returned when the host OS is not recognized.

# Structs

Release describes host operating system version information.
Service provides an interface to detect the operating system version and release information using the specified Provider.

# Interfaces

OSReleaseProvider is a factory for OS release information.