apidefaults

package
v0.5.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: PostgreSQL Imports: 1 Imported by: 0

Documentation

Overview

Package apidefaults owns platform-level API defaults: the pgEdge Starfleet base URL and its resolution rule (flag > profile > default). It lives on the platform side of the layering line so that internal/cli can print effective URLs without importing any module. The starfleet module's conn package consumes it and re-exports the names its command trees use.

Index

Constants

View Source
const StarfleetAPIURL = "https://api.pgedge.com"

StarfleetAPIURL is the default pgEdge Starfleet API base URL, used when neither the active profile nor --api-url supplies one.

Variables

This section is empty.

Functions

func ResolveStarfleetAPIURL

func ResolveStarfleetAPIURL(ap *config.StarfleetProfile,
	flagAPIURL string) string

ResolveStarfleetAPIURL applies the base-URL precedence used across every Starfleet module: active-profile value, then the default, then the --api-url flag (highest).

Types

This section is empty.

Jump to

Keyboard shortcuts

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