Documentation ¶
Overview ¶
Package value exposes types related to Couchbase e.g. versions.
Index ¶
Constants ¶
View Source
const ( // VersionUnknown indicates the cluster is running an unknown version of Couchbase Server; this is usually a // development build and therefore is treated as being the latest version during comparisons. VersionUnknown = Version("0.0.0") // Version5_0_0 represents the 5.0.0 release of Couchbase Server (Spock). Version5_0_0 = Version("5.0.0") // Version5_5_0 represents the 5.5.0 release of Couchbase Server (Vulcan). Version5_5_0 = Version("5.5.0") // Version6_0_0 represents the 6.0.0 release of Couchbase Server (Alice). Version6_0_0 = Version("6.0.0") // Version6_5_0 represents the 6.5.0 release of Couchbase Server (Mad-Hatter). Version6_5_0 = Version("6.5.0") // Version6_6_0 represents the 6.6.0 release of Couchbase Server (Mad-Hatter). Version6_6_0 = Version("6.6.0") // Version7_0_0 represents the 7.0.0 release of Couchbase Server (Cheshire-Cat). Version7_0_0 = Version("7.0.0") // Version7_0_1 represents the 7.0.1 release of Couchbase Server (Cheshire-Cat). Version7_0_1 = Version("7.0.1") // Version7_0_2 represents the 7.0.2 release of Couchbase Server (Cheshire-Cat). Version7_0_2 = Version("7.0.2") // Version7_1_0 represents the 7.1.0 release of Couchbase Server (Neo). Version7_1_0 = Version("7.1.0") // Version7_2_0 represents the 7.2.0 release of Couchbase Server (also called Neo). Version7_2_0 = Version("7.2.0") // Version7_6_0 represents the 7.6.0 release of Couchbase Server (Trinity). Version7_6_0 = Version("7.6.0") // VersionLatest represents the latest known version of Couchbase server, this may be an unreleased version. VersionLatest = Version7_6_0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterVersion ¶
type ClusterVersion struct { MinVersion Version `json:"min_version"` Mixed bool `json:"is_mixed_cluster"` }
ClusterVersion encapsulates version information for a Couchbase cluster, including whether or not it is operating in mixed mode.
type Version ¶
type Version string
Version represents a Couchbase Server version and provides utilities for convenient comparison.
func (Version) AtLeast ¶
AtLeast returns a boolean indicating whether the current version is higher than or equal to the provided version.
NOTE: The unknown version is a special case and is treated as the latest version.
func (Version) Equal ¶
Equal returns a boolean indicating whether the current version is equal to the provided version.
Click to show internal directories.
Click to hide internal directories.