semver

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(version string) Version

func ParseTolerant

func ParseTolerant(version string) Version

registryToSemver turns a "v10.2.x" input (version string coming from the kind-registry) into a semver-compatible version "10.2.0"

func (Version) Equal

func (v Version) Equal(other Version) bool

func (Version) LessThan

func (v Version) LessThan(other Version) bool

func (Version) LessThanEqual

func (v Version) LessThanEqual(other Version) bool

func (Version) MoreThan

func (v Version) MoreThan(other Version) bool

func (Version) MoreThanEqual

func (v Version) MoreThanEqual(other Version) bool

Jump to

Keyboard shortcuts

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