version

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion(showShort bool, needCommit bool) string

GetVersion return string with Tarantool CLI version info.

func SortVersions

func SortVersions(versions []Version)

SortVersions sorts versions from oldest to newest.

Types

type Release

type Release struct {
	Type ReleaseType
	Num  uint64
}

type ReleaseType

type ReleaseType uint16
const (
	TypeNightly ReleaseType = iota
	TypeAlpha
	TypeBeta
	TypeRC
	TypeRelease
)

type Version

type Version struct {
	Major      uint64  // Major
	Minor      uint64  // Minor
	Patch      uint64  // Patch
	Additional uint64  // Additional commits.
	Revision   uint64  // Revision number.
	Release    Release // Release type.
	Hash       string  // Commit hash.
	Str        string  // String representation.
	Tarball    string  // Tarball name.
}

func GetVersionDetails

func GetVersionDetails(verStr string) (Version, error)

GetVersionDetails collects information about all version details.

Jump to

Keyboard shortcuts

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