kubernetes.v0: gopkg.in/kubernetes/kubernetes.v0/pkg/version/verflag Index | Files

package verflag

import "gopkg.in/kubernetes/kubernetes.v0/pkg/version/verflag"

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

Index

Package Files

verflag.go

Constants

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

func PrintAndExitIfRequested Uses

func PrintAndExitIfRequested()

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

func Version Uses

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

func VersionVar Uses

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

Package verflag imports 5 packages (graph). Updated 2016-07-25. Refresh now. Tools for package owners.