kubernetesk8s.io/kubernetes/pkg/version/verflag Index | Files

package verflag

import "k8s.io/kubernetes/pkg/version/verflag"

Package verflag defines utility functions to handle command line flags related to version of Kubernetes.

Index

Constants

const (
	VersionFalse versionValue = 0
	VersionTrue  versionValue = 1
	VersionRaw   versionValue = 2
)

Functions

func PrintAndExitIfRequested

func PrintAndExitIfRequested()

PrintAndExitIfRequested will check if the -version flag was passed and, if so, print the version and exit.

func Version

func Version(name string, value versionValue, usage string) *versionValue

func VersionVar

func VersionVar(p *versionValue, name string, value versionValue, usage string)

Source Files

verflag.go

Version
v0.13.1-dev
Published
Mar 16, 2015
Platform
js/wasm
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.