package version
import "k8s.io/client-go/1.4/pkg/version"
Package version supplies version information collected at build time to kubernetes components.
Index ¶
- func MustParse(gitversion string) semver.Version
- func Parse(gitversion string) (semver.Version, error)
- type Info
Functions ¶
func MustParse ¶
func Parse ¶
Types ¶
type Info ¶
type Info struct { Major string `json:"major"` Minor string `json:"minor"` 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"` }
Info 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() Info
Get returns the overall codebase version. It's for detecting what code a binary was built from.
func (Info) String ¶
String returns info as a human-friendly version string.
Source Files ¶
base.go doc.go semver.go version.go
- Version
- v1.4.0
- Published
- Oct 17, 2016
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 3 minutes ago –
Tools for package owners.