Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string = "development"
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.