version

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package version handles kubriX release tags (vX.Y.Z) and CHANGELOG.md sections.

Index

Constants

View Source
const MinSupported = "v7.0.0"

MinSupported is the oldest release the CLI bootstraps or upgrades to: its rendering mirrors install-platform.sh as of v7.0.0 (v6 also rendered docs/*.md.tmpl, v5 only selected values files).

Variables

This section is empty.

Functions

func BreakingChanges

func BreakingChanges(notes string) string

BreakingChanges extracts the "⚠ BREAKING CHANGES" subsections of a changelog excerpt, with their release headings.

func ChangelogBetween

func ChangelogBetween(changelog, from, to string) string

ChangelogBetween returns the CHANGELOG.md sections for versions in (from, to], newest first. to may be empty to include everything newer than from (e.g. for an upgrade to main).

func HasBreakingChanges

func HasBreakingChanges(notes string) bool

HasBreakingChanges reports whether a changelog excerpt contains a breaking-changes section.

func IsRelease

func IsRelease(ref string) bool

IsRelease reports whether ref is a kubriX release tag; anything else is treated as a branch.

func Normalize

func Normalize(v string) string

Normalize turns "7.0.0" (release-please manifest) into "v7.0.0".

func Releases

func Releases(tags []string) []string

Releases filters release tags and sorts them newest first.

func Supported

func Supported(r string) bool

Supported reports whether the CLI can bootstrap or upgrade to release r.

func UpgradeTargets

func UpgradeTargets(installed string, releases []string) []string

UpgradeTargets returns releases newer than installed, limited to the next major version, newest first.

Types

This section is empty.

Jump to

Keyboard shortcuts

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