Documentation
¶
Overview ¶
Package release resolves the newest published Miabi platform version.
The CLI releases on its own cadence — a CLI cut months ago still has to install today's Miabi — so the platform version cannot be baked into the binary. It is looked up when needed, and an operator can always state it outright with --version or --image instead.
Index ¶
Constants ¶
const ( // VersionsURL is the platform's entry on versions.miabi.io, written by Miabi's release workflow. VersionsURL = "https://versions.miabi.io/v1/miabi/latest.json" APIEnv = "MIABI_RELEASE_API" )
const ReasonSecurity = "security"
ReasonSecurity marks a release published to fix a vulnerability.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Release ¶ added in v0.20.2
Release is the newest stable platform release.
func LatestRelease ¶ added in v0.20.2
LatestRelease returns the newest stable platform release. Prereleases are never returned: an unattended `miabi upgrade` must not walk onto a release candidate.
userAgent identifies the caller honestly. The request says nothing else about the install: no id, no host, no license.