version

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version          = "unknown"
	Revision         = "unknown"
	Branch           = "unknown"
	BuildUser        = "unknown"
	BuildDate        = "unknown"
	GoVersion        = "unknown"
	CompilationFlags = "unknown"
)

Build information. Populated at build-time.

View Source
var Map = map[string]string{
	"version":           Version,
	"revision":          Revision,
	"branch":            Branch,
	"build_user":        BuildUser,
	"build_date":        BuildDate,
	"go_version":        GoVersion,
	"compilation_flags": CompilationFlags,
}

Map provides the iterable version information.

Functions

func Command

func Command() *cobra.Command

Command exports Cobra command builder

func Full

func Full() string

Full returns full composed version string

func ID

func ID() string

ID returns an instance id

func JSON

func JSON() string

JSON returns json representation of build info

Types

This section is empty.

Jump to

Keyboard shortcuts

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