version

package
v0.0.0-...-d691e2b Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintPretty

func PrintPretty(w io.Writer)

PrintPretty xxx

func PrintStruct

func PrintStruct(w io.Writer)

PrintStruct xxx

Types

type Version

type Version struct {
	GitVersion   string `json:"gitVersion"`
	GitCommit    string `json:"gitCommit"`
	GitTreeState string `json:"gitTreeState"`
	BuildDate    string `json:"buildDate"`
	GoVersion    string `json:"goVersion"`
	Compiler     string `json:"compiler"`
	Platform     string `json:"platform"`
}

Version contains versioning information. TODO: Add []string of api versions supported? It's still unclear how we'll want to distribute that information.

func Get

func Get() *Version

Get returns the overall codebase version. It's for detecting what code a binary was built from.

Directories

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

Jump to

Keyboard shortcuts

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