systems

package module
v0.0.0-...-bc6b2f9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: AGPL-3.0 Imports: 5 Imported by: 1

README

systems

Documentation

Index

Constants

View Source
const (
	Ubuntu       = "ubuntu"
	CentOS       = "centos"
	Windows      = "windows"
	OSX          = "osx"
	OpenSUSE     = "opensuse"
	GenericLinux = "genericlinux"
)

Supported OS constant names for Bases. This list should match the ones found in juju/os except for "kubernetes".

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Name    string          `json:"name,omitempty"`
	Channel channel.Channel `json:"channel,omitempty"`
}

Base represents an OS/Channel. Bases can also be converted to and from a series string.

func ParseBaseFromSeries

func ParseBaseFromSeries(s string) (Base, error)

ParseBaseFromSeries matches legacy series like "focal" or parses a base as series string in the form "os/track/risk/branch"

func (Base) String

func (s Base) String() string

String respresentation of the Base, used for series backwards compatability.

func (Base) Validate

func (s Base) Validate() error

Validate returns with no error when the Base is valid.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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