version

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdVersion

func NewCmdVersion(w io.Writer) *cobra.Command

NewCmdVersion makes version command.

Types

type Version

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

Version represens kustomize version.

func GetVersion

func GetVersion() Version

GetVersion returns version.

func (Version) Print

func (v Version) Print(w io.Writer)

Print prints version.

Jump to

Keyboard shortcuts

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