provenance

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provenance

type Provenance struct {
	// Version of the kustomize binary.
	Version string `json:"version"`
	// GitCommit is a git commit
	GitCommit string `json:"gitCommit"`
	// BuildDate is date of the build.
	BuildDate string `json:"buildDate"`
	// GoOs holds OS name.
	GoOs string `json:"goOs"`
	// GoArch holds architecture name.
	GoArch string `json:"goArch"`
}

Provenance holds information about the build of an executable.

func GetProvenance

func GetProvenance() Provenance

GetProvenance returns an instance of Provenance.

func (Provenance) Print

func (v Provenance) Print(w io.Writer, short bool)

Print prints provenance info.

Jump to

Keyboard shortcuts

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