Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersion ¶
GetVersion return string with Tarantool CLI version info.
Types ¶
type Release ¶
type Release struct { Type ReleaseType Num uint64 }
type ReleaseType ¶
type ReleaseType uint16
const ( TypeNightly ReleaseType = iota TypeAlpha TypeBeta TypeRC TypeRelease // CliSeparator is used in commands to specify version. E.g: program=version. CliSeparator = "=" // FsSeparator is used in file names to specify version. E.g: program_version. FsSeparator = "_" )
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. BuildName string // Custom build name. }
type VersionSlice ¶ added in v1.0.0
type VersionSlice []Version
VersionSlice attaches the methods of sort.Interface to []Version, sorting from oldest to newest.
func (VersionSlice) Len ¶ added in v1.0.0
func (v VersionSlice) Len() int
sort.Interface Len implementation
func (VersionSlice) Less ¶ added in v1.0.0
func (v VersionSlice) Less(i, j int) bool
sort.Interface Less implementation, sorts from oldest to newest
func (VersionSlice) Swap ¶ added in v1.0.0
func (v VersionSlice) Swap(i, j int)
sort.Interface Swap implementation
Click to show internal directories.
Click to hide internal directories.