version

package
v0.0.0-...-e623927 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIExtensions = []string{
	"storage_zfs_remove_snapshots",
	"container_host_shutdown_timeout",
	"container_stop_priority",
	"container_syscall_filtering",
	"auth_pki",
	"container_last_used_at",
	"etag",
	"patch",
	"usb_devices",
	"https_allowed_credentials",
	"image_compression_algorithm",
	"directory_manipulation",
	"container_cpu_time",
	"storage_zfs_use_refquota",
	"storage_lvm_mount_options",
	"network",
	"profile_usedby",
	"container_push",
	"container_exec_recording",
	"certificate_update",
	"container_exec_signal_handling",
	"gpu_devices",
	"container_image_properties",
	"migration_progress",
	"id_map",
	"network_firewall_filtering",
	"network_routes",
	"storage",
	"file_delete",
	"file_append",
	"network_dhcp_expiry",
	"storage_lvm_vg_rename",
	"storage_lvm_thinpool_rename",
	"network_vlan",
	"image_create_aliases",
	"container_stateless_copy",
	"container_only_migration",
	"storage_zfs_clone_copy",
	"unix_device_rename",
	"storage_lvm_use_thinpool",
	"storage_rsync_bwlimit",
	"network_vxlan_interface",
	"storage_btrfs_mount_options",
	"entity_description",
	"image_force_refresh",
	"storage_lvm_lv_resizing",
	"id_map_base",
	"file_symlinks",
	"container_push_target",
	"network_vlan_physical",
	"storage_images_delete",
	"container_edit_metadata",
	"container_snapshot_stateful_migration",
	"storage_driver_ceph",
	"storage_ceph_user_name",
	"resource_limits",
	"storage_volatile_initial_source",
	"storage_ceph_force_osd_reuse",
	"storage_block_filesystem_btrfs",
	"resources",
	"kernel_limits",
	"storage_api_volume_rename",
	"macaroon_authentication",
	"network_sriov",
	"console",
	"restrict_devlxd",
	"migration_pre_copy",
	"infiniband",
	"maas_network",
	"devlxd_events",
	"proxy",
	"network_dhcp_gateway",
	"file_get_symlink",
	"network_leases",
	"unix_device_hotplug",
	"storage_api_local_volume_handling",
	"operation_description",
	"clustering",
}

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 = "3.0.0.beta1"

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