release

package
v0.0.0-...-921daf7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Override

func Override(r Release)

Override sets up the release using a Release

func Setup

func Setup(rootDir string) error

Setup is used to initialiaze the release information for the system

func String

func String() string

String returns the release information in a string

Types

type Lsb

type Lsb struct {
	ID       string
	Release  string
	Codename string
}

Lsb contains the /etc/lsb-release information of the system

func ReadLsb

func ReadLsb() (*Lsb, error)

ReadLsb returns the lsb-release information of the current system

type Release

type Release struct {
	Flavor  string
	Series  string
	Channel string
}

Release contains a structure with the release information

func Get

func Get() Release

Get the release

func (Release) String

func (r Release) String() string

String returns the release information in a string which is valid to set for the store http headers.

Jump to

Keyboard shortcuts

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