semver

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Major, Minor, Patch       uint64
	Prerelease, Buildmetadata string
}

func KubeVersionToValidSemver added in v0.12.1

func KubeVersionToValidSemver(kubeVersion v1alpha1.KubernetesVersion) (*Version, error)

KubeVersionToValidSemver converts kube version to semver for comparisons.

func New

func New(version string) (*Version, error)

func (*Version) Compare added in v0.6.1

func (v *Version) Compare(v2 *Version) int

func (*Version) Equal

func (v *Version) Equal(v2 *Version) bool

func (*Version) GreaterThan added in v0.6.1

func (v *Version) GreaterThan(v2 *Version) bool

func (*Version) LessThan added in v0.6.1

func (v *Version) LessThan(v2 *Version) bool

func (*Version) SameMajor

func (v *Version) SameMajor(v2 *Version) bool

func (*Version) SameMinor

func (v *Version) SameMinor(v2 *Version) bool

func (*Version) SamePatch

func (v *Version) SamePatch(v2 *Version) bool

func (*Version) SamePrerelease

func (v *Version) SamePrerelease(v2 *Version) bool

func (*Version) String added in v0.6.1

func (v *Version) String() string

Jump to

Keyboard shortcuts

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