version

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTime

func BuildTime() time.Time

BuildTime gets the build time

func GitSHA

func GitSHA() string

GitSHA gets the gitsha

func Init

func Init()

Init sets up the version info from build args

func Version

func Version() string

Version gets the version

Types

type Build

type Build struct {
	Version      string
	GitSHA       string
	BuildTime    time.Time
	TimeFallback string `json:"time_fallback,omitempty"`
}

Build holds details about this build of the Ship binary

func GetBuild

func GetBuild() Build

GetBuild gets the build

Jump to

Keyboard shortcuts

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