Documentation ¶
Index ¶
- Constants
- func GetMinorVersionString() string
- func GetVersion() (client string, major, minor, patch uint8)
- func GetVersionString() string
- func MakeMinorVersionString(client string, major, minor, patch int) string
- func MakeVersionString(client string, major, minor, patch int) string
- func MatchesMinorVersion(referenceVersion *VersionIdentifier) bool
- type VersionIdentifier
Constants ¶
const VERSION = "0.16.3"
IMPORTANT: burrow 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 burrow without a receiver, or for the version called on. MakeMinorVersionString builds the same version string with provided parameters.
func GetVersion ¶
GetVersion returns a tuple of client, major, minor, and patch as types, either for burrow without a receiver or the called version structure.
func GetVersionString ¶
func GetVersionString() string
GetVersionString returns `client-major.minor.patch` for burrow without a receiver, or for the version called on. MakeVersionString builds the same version string with provided parameters.
func MakeMinorVersionString ¶
note: similar remark applies here on the use of `int` over `uint8` for the arguments as above for MakeVersionString()
func MakeVersionString ¶
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