Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
var APIVersion = "1.0"
APIVersion contains the API base version. Only bumped for backward incompatible changes.
var UserAgent = getUserAgent()
UserAgent contains a string suitable as a user-agent
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 ¶
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