compare

package
v1.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByDeprecationFunc

func ByDeprecationFunc(deprecation declcfg.Deprecation) func(a, b declcfg.Bundle) int

func ByVersionAndRelease added in v1.8.0

func ByVersionAndRelease(b1, b2 declcfg.Bundle) int

ByVersionAndRelease is a comparison function that compares bundles by version and release. Bundles with lower versions/releases are considered less than bundles with higher versions/releases.

func NewVersionRange added in v1.8.0

func NewVersionRange(versionRange string) (bsemver.Range, error)

NewVersionRange returns a function that tests whether a semver version is in the provided versionRange. The versionRange provided to this function can be any valid semver version string or any range constraint.

When the provided version range is a valid semver version then the returned function will match any version that matches the semver version, ignoring the build metadata of matched versions.

This function is intended to be used to parse the ClusterExtension.spec.source.catalog.version field. See the API documentation for more details on the supported syntax.

Types

This section is empty.

Jump to

Keyboard shortcuts

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