provenance

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 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,omitempty"`
	// GitCommit is a git commit
	GitCommit string `json:"gitCommit,omitempty"`
	// BuildDate is date of the build.
	BuildDate string `json:"buildDate,omitempty"`
	// GoOs holds OS name.
	GoOs string `json:"goOs,omitempty"`
	// GoArch holds architecture name.
	GoArch string `json:"goArch,omitempty"`
}

Provenance holds information about the build of an executable.

func GetProvenance

func GetProvenance() Provenance

GetProvenance returns an instance of Provenance.

func (Provenance) Full added in v0.2.0

func (v Provenance) Full() string

Full returns the full provenance stamp.

func (Provenance) Semver added in v0.6.6

func (v Provenance) Semver() string

Semver returns the semantic version of kustomize. kustomize version is set in format "kustomize/vX.X.X" in every release. X.X.X is a semver. If the version string is not in this format, return the original version string

func (Provenance) Short added in v0.2.0

func (v Provenance) Short() string

Short returns the shortened provenance stamp.

Jump to

Keyboard shortcuts

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