version

package
v0.47.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunAt time.Time
View Source
var RunAtEpoch string

Functions

func BuildTime

func BuildTime() time.Time

BuildTime gets the build time

func GitSHA

func GitSHA() string

GitSHA gets the gitsha

func Version

func Version() string

Version gets the version

Types

type Build

type Build struct {
	Version      string            `json:"version,omitempty"`
	GitSHA       string            `json:"git,omitempty"`
	BuildTime    time.Time         `json:"buildTime,omitempty"`
	TimeFallback string            `json:"buildTimeFallback,omitempty"`
	Dependencies BuildDependencies `json:"dependencies,omitempty"`
	GoInfo       GoInfo            `json:"go,omitempty"`
}

Build holds details about this build of the Ship binary

func GetBuild

func GetBuild() Build

GetBuild gets the build

type BuildDependencies added in v0.47.0

type BuildDependencies struct {
	Helm      string `json:"helm,omitempty"`
	Kustomize string `json:"kustomize,omitempty"`
	Terraform string `json:"terraform,omitempty"`
}

type GoInfo added in v0.47.2

type GoInfo struct {
	Version  string `json:"version,omitempty"`
	Compiler string `json:"compiler,omitempty"`
	OS       string `json:"os,omitempty"`
	Arch     string `json:"arch,omitempty"`
}

Jump to

Keyboard shortcuts

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