version

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name string = "consul-esm"

	// The git commit that was compiled. These will be filled in by the
	// compiler.
	GitCommit   string
	GitDescribe string

	// Version is the main version number that is being run at the moment.
	// Note: our current release process does a pattern match on this variable.
	Version = "0.8.0"

	// VersionPrerelease is a pre-release marker for the version. If this is ""
	// (empty string) then it means that it is a final release. Otherwise, this
	// is a pre-release such as "dev" (in development), "beta", "rc1", etc.
	VersionPrerelease = ""
)

Functions

func CheckConsulVersions added in v0.4.0

func CheckConsulVersions(versions []string) error

CheckConsulVersions checks for the compatibility of the Consul versions. Valid SemVer is expected, and will consider any invalid versions to be incompatible.

func GetConsulVersionConstraint added in v0.4.0

func GetConsulVersionConstraint() string

GetConsulVersionConstraint returns the version constraint for Consul that ESM is compatible with.

func GetHumanVersion added in v0.2.0

func GetHumanVersion() string

GetHumanVersion composes the parts of the version in a way that's suitable for displaying to humans.

func NewConsulVersionError added in v0.4.0

func NewConsulVersionError(consulVersions []string) error

NewConsulVersionError returns an error detailing the version compatibility issue between ESM and Consul servers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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