version

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

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

func (*TiUPBuild) String

func (v *TiUPBuild) String() string

String converts TiUPBuild to a string

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

Jump to

Keyboard shortcuts

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