Documentation
¶
Overview ¶
Package apidefaults owns platform-level API defaults: the pgEdge Starfleet base URL and its resolution rule (flag > profile > default). It sits outside the modules so internal/cli can print effective URLs without importing one; starfleet's conn package re-exports it.
Index ¶
Constants ¶
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.
Types ¶
type Auth0App ¶
type Auth0App struct {
// Domain is the custom Auth0 domain the /authorize and
// /oauth/token endpoints live on.
Domain string
Audience string
// ClientID is the native app's public client ID. Empty means
// browser sign-in is not available for this API yet.
ClientID string
}
Auth0App is the public Auth0 configuration browser sign-in uses for one pgEdge Starfleet API.