envcompat

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 4 Imported by: 0

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

func Get(name string) string

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.

Jump to

Keyboard shortcuts

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