release

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package release looks the platform version up at runtime because the CLI releases on its own cadence.

Index

Constants

View Source
const (
	VersionsURL = "https://versions.miabi.io/v1/miabi/latest.json"

	APIEnv = "MIABI_RELEASE_API"
)
View Source
const ReasonSecurity = "security"

Variables

This section is empty.

Functions

func Latest

func Latest(ctx context.Context, userAgent string) (string, error)

Latest returns the newest stable platform version without a leading "v".

func Normalize

func Normalize(tag string) string

Normalize strips "v" only before a digit, so a tag like "vnext" is left alone.

Types

type Release added in v0.20.2

type Release struct {
	Version    string
	Reason     string
	ReleaseURL string
}

func LatestRelease added in v0.20.2

func LatestRelease(ctx context.Context, userAgent string) (Release, error)

LatestRelease skips prereleases so an unattended upgrade never lands on an RC; it sends only the user agent.

Jump to

Keyboard shortcuts

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