distro

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseImageLibraryURL

func GetBaseImageLibraryURL(linuxDistro ID, sysCfg *sys.Config) string

GetBaseImageLibraryURL returns the library URL to use as base image (when possible)

Types

type ID

type ID struct {
	// Name is the name of the Linux distribution, e.g., ubuntu
	Name string

	// Version is the version of the Linux distribution, e.g., 7, 19.04
	Version string

	// Codename is the codename of the Linux distribution, e.g., disco (can be empty)
	Codename string
}

ID represents a Linux distribution

func ParseDescr

func ParseDescr(descr string) ID

ParseDescr parses the description string of a Linux distribution (e.g., centos:6) to a ID structure

Jump to

Keyboard shortcuts

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