package version
import "k8s.io/apimachinery/pkg/version"
Package version supplies the type for version information collected at build time.
Index ¶
Functions ¶
func CompareKubeAwareVersionStrings ¶
CompareKubeAwareVersionStrings compares two kube-like version strings. Kube-like version strings are starting with a v, followed by a major version, optional "alpha" or "beta" strings followed by a minor version (e.g. v1, v2beta1). Versions will be sorted based on GA/alpha/beta first and then major and minor versions. e.g. v2, v1, v1beta2, v1beta1, v1alpha1.
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 (Info) String ¶
String returns info as a human-friendly version string.
Source Files ¶
doc.go helpers.go types.go
- Version
- v0.18.17-rc.0
- Published
- Nov 5, 2020
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 3 hours ago –
Tools for package owners.