version

package
v0.19.1237 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string = "development"

Functions

func IsDev added in v0.19.1111

func IsDev() bool

IsDev reports whether this is a local build, which has no comparable version.

Types

type ControlPlane added in v0.19.1111

type ControlPlane struct {
	Version string `json:"version"`

	// oldest CLI the control plane will sync app configs for server-side
	ServerSideSyncMinCLI string `json:"server_side_sync_min_cli_version"`

	// pre-rename name for the field above, still emitted by older control planes
	LegacyRecommendedCLI string `json:"recommended_cli_version"`
}

ControlPlane is what a control plane reports about itself and the clients it expects.

func FetchControlPlane added in v0.19.1111

func FetchControlPlane(ctx context.Context, apiURL string) *ControlPlane

FetchControlPlane reads the control plane's /version. Callers treat a nil result as "no information" — this is only ever used to inform, never to block.

func (*ControlPlane) MinCLIForServerSideSync added in v0.19.1115

func (c *ControlPlane) MinCLIForServerSideSync() string

MinCLIForServerSideSync tolerates control planes that predate the rename.

type Service

type Service struct{}

func New

func New() *Service

func (*Service) Version

func (s *Service) Version(ctx context.Context, asJSON bool) error

Jump to

Keyboard shortcuts

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