versions

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HighestConstrainedVersion

func HighestConstrainedVersion(versions []string, config v1alpha1.VersionSelection) (string, error)

func HighestConstrainedVersionWithAdditionalConstraints

func HighestConstrainedVersionWithAdditionalConstraints(versions []string, config v1alpha1.VersionSelection, additionalConstraints []ConstraintCallback) (string, error)

Types

type ConstraintCallback

type ConstraintCallback struct {
	Constraint func(string) bool
	Name       string
}

type SemverWrap

type SemverWrap struct {
	semver.Version
	Original string
}

func NewRelaxedSemver

func NewRelaxedSemver(version string) (SemverWrap, error)

func NewSemver

func NewSemver(version string) (SemverWrap, error)

type Semvers

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

func NewRelaxedSemversNoErr

func NewRelaxedSemversNoErr(versions []string) Semvers

func (Semvers) All

func (v Semvers) All() []string

func (Semvers) Filter

func (v Semvers) Filter(f func(string) bool) Semvers

func (Semvers) FilterConstraints

func (v Semvers) FilterConstraints(constraintList string) (Semvers, error)

func (Semvers) FilterPrereleases

func (v Semvers) FilterPrereleases(prereleases *v1alpha1.VersionSelectionSemverPrereleases) Semvers

func (Semvers) Highest

func (v Semvers) Highest() (string, bool)

func (Semvers) Len

func (v Semvers) Len() int

func (Semvers) Sorted

func (v Semvers) Sorted() Semvers

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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