Documentation ¶
Index ¶
- type Version
- func (v *Version) Compare(v2 *Version) int
- func (v *Version) Equal(v2 *Version) bool
- func (v *Version) GreaterThan(v2 *Version) bool
- func (v *Version) LessThan(v2 *Version) bool
- func (v *Version) SameMajor(v2 *Version) bool
- func (v *Version) SameMinor(v2 *Version) bool
- func (v *Version) SamePatch(v2 *Version) bool
- func (v *Version) SamePrerelease(v2 *Version) bool
- func (v *Version) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
func KubeVersionToValidSemver ¶ added in v0.12.1
func KubeVersionToValidSemver(kubeVersion v1alpha1.KubernetesVersion) (*Version, error)
KubeVersionToValidSemver converts kube version to semver for comparisons.
func (*Version) GreaterThan ¶ added in v0.6.1
func (*Version) SamePrerelease ¶
Click to show internal directories.
Click to hide internal directories.