Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TiUPVerMajor is the major version of TiUP TiUPVerMajor = 1 // TiUPVerMinor is the minor version of TiUP TiUPVerMinor = 5 // TiUPVerPatch is the patch version of TiUP TiUPVerPatch = 6 // TiUPVerName is an alternative name of the version TiUPVerName = "tiup" // GitHash is the current git commit hash GitHash = "Unknown" // GitRef is the current git reference name (branch or tag) GitRef = "Unknown" )
Functions ¶
This section is empty.
Types ¶
type TiUPBuild ¶
type TiUPBuild struct { GitHash string `json:"gitHash"` GitRef string `json:"gitRef"` GoVersion string `json:"goVersion"` }
TiUPBuild is the info of building environment
func NewTiUPBuildInfo ¶
func NewTiUPBuildInfo() *TiUPBuild
NewTiUPBuildInfo creates a TiUPBuild object
type TiUPVersion ¶
type TiUPVersion struct {
// contains filtered or unexported fields
}
TiUPVersion is the semver of TiUP
func NewTiUPVersion ¶
func NewTiUPVersion() *TiUPVersion
NewTiUPVersion creates a TiUPVersion object
func (*TiUPVersion) Name ¶
func (v *TiUPVersion) Name() string
Name returns the alternave name of TiUPVersion
func (*TiUPVersion) SemVer ¶
func (v *TiUPVersion) SemVer() string
SemVer returns TiUPVersion in semver format
func (*TiUPVersion) String ¶
func (v *TiUPVersion) String() string
String converts TiUPVersion to a string
Click to show internal directories.
Click to hide internal directories.