version

package
v0.0.0-...-49f7de5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIExtensions = []string{}/* 189 elements not displayed */

APIExtensions is the list of all API extensions in the order they were added.

The following kind of changes come with a new extensions:

- New configuration key - New valid values for a configuration key - New REST API endpoint - New argument inside an existing REST API call - New HTTPs authentication mechanisms or protocols

This list is used mainly by the LXD server code, but it's in the shared package as well for reference.

View Source
var APIVersion = "1.0"

APIVersion contains the API base version. Only bumped for backward incompatible changes.

View Source
var UserAgent = getUserAgent()

UserAgent contains a string suitable as a user-agent

View Source
var Version = "4.0.0"

Version contains the LXD version number

Functions

func APIExtensionsCount

func APIExtensionsCount() int

APIExtensionsCount returns the number of available API extensions.

func UserAgentFeatures

func UserAgentFeatures(features []string)

UserAgentFeatures updates the list of advertised features

func UserAgentStorageBackends

func UserAgentStorageBackends(backends []string)

UserAgentStorageBackends updates the list of storage backends to include in the user-agent

Types

type DottedVersion

type DottedVersion struct {
	Major int
	Minor int
	Patch int
}

DottedVersion holds element of a version in the maj.min[.patch] format.

func NewDottedVersion

func NewDottedVersion(versionString string) (*DottedVersion, error)

NewDottedVersion returns a new Version.

func Parse

func Parse(s string) (*DottedVersion, error)

Parse parses a string starting with a dotted version and returns it.

func (*DottedVersion) Compare

func (v *DottedVersion) Compare(other *DottedVersion) int

Compare returns result of comparison between two versions

func (*DottedVersion) String

func (v *DottedVersion) String() string

String returns version as a string

Jump to

Keyboard shortcuts

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