version

package
v0.0.0-...-8540621 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

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

Version contains the build revision/time/status information.

func GetVersion

func GetVersion() *Version

GetVersion returns the current version instance.

func (*Version) BuildTimestamp

func (v *Version) BuildTimestamp() string

BuildTimestamp returns the build timestamp as a UTC string.

func (*Version) Builder

func (v *Version) Builder() string

Builder returns the built by.

func (*Version) IsDev

func (v *Version) IsDev() bool

IsDev returns true if dev build.

func (*Version) Revision

func (v *Version) Revision() string

Revision returns the revision string.

func (*Version) RevisionStatus

func (v *Version) RevisionStatus() string

RevisionStatus returns the revision status.

func (*Version) Semver

func (v *Version) Semver() semver.Version

Semver returns the semantic version.

func (*Version) ToString

func (v *Version) ToString() string

ToString returns the semver string.

Jump to

Keyboard shortcuts

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