Documentation
¶
Overview ¶
Package envcompat reads platform-neutral VEGA_* environment variables with a backward-compatible fallback to the legacy APEX_* names that govega shipped with first. The fallback exists so existing apexvega deployments and CI configs keep working; new products (galleyvega and future tenants) should set only the VEGA_* names.
The package logs a one-time deprecation warning per legacy name when the legacy form is the only one set, so operators see a clear migration path in their logs without log spam on every request.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get returns the value of name, where name is the modern platform- neutral env var (e.g. VEGA_TENANT_ID). It transparently falls back to the legacy APEX_-prefixed equivalent (e.g. APEX_TENANT_ID) when the new name is empty.
name must begin with "VEGA_" or Get panics — this is a programmer error in the caller, not a runtime configuration concern.
Types ¶
This section is empty.