version

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GitCommit that was compiled; filled in by
	// the compiler.
	GitCommit string

	// Version is the version of this repo; filled
	// in by the compiler
	Version string

	// VersionMeta is a pre-release marker for the
	// version. If this is "" (empty string) then
	// it means that it is a final release. Otherwise,
	// this is a pre-release such as "dev" (in
	// development), "beta", "rc1", etc.
	VersionMeta string
)

Functions

func Current

func Current() string

Current returns current version of csi driver

func Get

func Get() string

Get returns current version from global Version variable. If Version is unset then from VERSION file at the root of this repo.

func GetBuildMeta

func GetBuildMeta() string

GetBuildMeta returns build type from global VersionMeta variable. If VersionMeta is unset then this is fetched from BUILDMETA file at the root of this repo.

func GetGitCommit

func GetGitCommit() string

GetGitCommit returns Git commit SHA-1 from global GitCommit variable. If GitCommit is unset this calls Git directly.

func GetVersionDetails

func GetVersionDetails() string

GetVersionDetails return version info from git commit

func Verbose

func Verbose() string

Verbose returns version details with git commit info

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL