version

package module
v0.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FluxMinorForRepoMinor added in v0.14.0

func FluxMinorForRepoMinor(repoName string, repoMinor int) (int, error)

FluxMinorForRepoMinor computes the flux2 distribution minor version for the given repository minor version. This function also supports repoName="flux2" and repoMinor=<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 RepoMajor added in v0.14.0

func RepoMajor(repoName string) (int, error)

RepoMajor returns the major version for the given repository name.

func RepoMinorForFluxMinor added in v0.14.0

func RepoMinorForFluxMinor(repoName string, flux2Minor int) (int, error)

RepoMinorForFluxMinor computes the repository minor version for the given flux2 distribution minor version. This function also supports repoName="flux2".

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