version

package module
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 18

Documentation

Index

Constants

View Source
const BaselineFlux2Minor = 7

BaselineFlux2Minor is the baseline minor version of the flux2 distribution used for computing the minor versions of the controllers in that version. This is Flux v2.7 at the moment. When a new controller is added to the distribution, this baseline MUST be updated, as our release workflows depend on it. Flux v2.7 is, at the moment, the latest version where a controller was added to the distribution: source-watcher.

Variables

This section is empty.

Functions

func ControllerMajor added in v0.13.0

func ControllerMajor(controllerName string) (int, error)

ControllerMajor returns the major version for the given controller name.

func ControllerMinorForFluxMinor added in v0.13.0

func ControllerMinorForFluxMinor(controllerName string, flux2Minor int) (int, error)

ControllerMinorForFluxMinor computes the controller minor version for the given flux2 distribution minor version. This function also supports controllerName="flux2".

func FluxMinorForControllerMinor added in v0.13.0

func FluxMinorForControllerMinor(controllerName string, controllerMinor int) (int, error)

FluxMinorForControllerMinor computes the flux2 distribution minor version for the given controller minor version. This function also supports controllerName="flux2" and controllerMinor=<any minor version of flux2>.

func ParseVersion

func ParseVersion(v string) (*semver.Version, error)

ParseVersion parses a version string and returns a semver.Version object. The validation is looser than the official semver spec, allowing for a 'v' prefix and 0-prefixed numbers in the major, minor, and patch segments (e.g., v2025.02.03-rc.1 is considered valid).

func Sort added in v0.8.0

func Sort(c *semver.Constraints, vs []string) []string

Sort filters the given strings based on the provided semver range and sorts them in descending order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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