version

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TiDB2DWVerMajor is the major version of TiDB2DW
	TiDB2DWVerMajor = 0
	// TiDB2DWVerMinor is the minor version of TiDB2DW
	TiDB2DWVerMinor = 0
	// TiDB2DWVerPatch is the patch version of TiDB2DW
	TiDB2DWVerPatch = 4
	// TiDB2DWVerName is an alternative name of the version
	TiDB2DWVerName = "TiDB2DW"
	// 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 TiDB2DWBuild

type TiDB2DWBuild struct {
	GitHash   string `json:"gitHash"`
	GitRef    string `json:"gitRef"`
	GoVersion string `json:"goVersion"`
}

TiDB2DWBuild is the info of building environment

func NewTiDB2DWBuildInfo

func NewTiDB2DWBuildInfo() *TiDB2DWBuild

NewTiDB2DWBuildInfo creates a TiDB2DWBuild object

func (*TiDB2DWBuild) String

func (v *TiDB2DWBuild) String() string

String converts TiDB2DWBuild to a string

type TiDB2DWVersion

type TiDB2DWVersion struct {
	// contains filtered or unexported fields
}

TiDB2DWVersion is the semver of TiDB2DW

func NewTiDB2DWVersion

func NewTiDB2DWVersion() *TiDB2DWVersion

NewTiDB2DWVersion creates a TiDB2DWVersion object

func (*TiDB2DWVersion) Name

func (v *TiDB2DWVersion) Name() string

Name returns the alternave name of TiDB2DWVersion

func (*TiDB2DWVersion) SemVer

func (v *TiDB2DWVersion) SemVer() string

SemVer returns TiDB2DWVersion in semver format

func (*TiDB2DWVersion) String

func (v *TiDB2DWVersion) String() string

String converts TiDB2DWVersion to a string

Jump to

Keyboard shortcuts

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