version

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2017 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = "0.12.1"

IMPORTANT: Eris-DB version must be on the last line of this file for the deployment script tests/build_tool.sh to pick up the right label.

Variables

This section is empty.

Functions

func GetMinorVersionString

func GetMinorVersionString() string

GetMinorVersionString returns `client-major.minor` for Eris-DB without a receiver, or for the version called on. MakeMinorVersionString builds the same version string with provided parameters.

func GetVersion

func GetVersion() (client string, major, minor, patch uint8)

GetVersion returns a tuple of client, major, minor, and patch as types, either for Eris-DB without a receiver or the called version structure.

func GetVersionString

func GetVersionString() string

GetVersionString returns `client-major.minor.patch` for Eris-DB without a receiver, or for the version called on. MakeVersionString builds the same version string with provided parameters.

func MakeMinorVersionString

func MakeMinorVersionString(client string, major, minor, patch int) string

note: similar remark applies here on the use of `int` over `uint8` for the arguments as above for MakeVersionString()

func MakeVersionString

func MakeVersionString(client string, major, minor, patch int) string

note: the arguments are passed in as int (rather than uint8) because on asserting the version constructed from the configuration file the casting of an int to uint8 is uglier than expanding the type range here. Should the configuration file have an invalid integer (that could not convert) then this will equally be reflected in a failed assertion of the version string.

func MatchesMinorVersion

func MatchesMinorVersion(referenceVersion *VersionIdentifier) bool

MatchesMinorVersion matches the client identifier, major and minor version number of the reference version identifier to be equal with the receivers.

Types

type VersionIdentifier

type VersionIdentifier struct {
	// contains filtered or unexported fields
}

func New

func New(client string, major, minor, patch uint8) *VersionIdentifier

func (*VersionIdentifier) GetMinorVersionString

func (v *VersionIdentifier) GetMinorVersionString() string

func (*VersionIdentifier) GetVersion

func (version *VersionIdentifier) GetVersion() (
	client string, major, minor, patch uint8)

func (*VersionIdentifier) GetVersionString

func (v *VersionIdentifier) GetVersionString() string

func (*VersionIdentifier) MatchesMinorVersion

func (version *VersionIdentifier) MatchesMinorVersion(
	referenceVersion *VersionIdentifier) bool

Jump to

Keyboard shortcuts

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