version

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 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 GetGitCommit

func GetGitCommit() string

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

func Verbose

func Verbose() string

Verbose returns version details with git commit info

Types

This section is empty.

Jump to

Keyboard shortcuts

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