Documentation
¶
Overview ¶
Package envconfig resolves OPENSTORAGE_* settings. Presence, not a nonempty value, selects a name. The old CODESTORAGE_* names are not read: CheckLegacy refuses a process that still sets one without its replacement.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLegacy ¶ added in v0.17.0
func CheckLegacy() error
CheckLegacy fails when a CODESTORAGE_* variable is set and its OPENSTORAGE_* replacement is unset. The error names every such pair, sorted, and never includes a value. A legacy name next to its set replacement is ignored, so a fleet that still runs pre-0.15 binaries can keep both names. Do not call this in hook subprocesses: git relays hook stderr to the pushing client.
func First ¶
First returns the value of the first PRESENT name in an alias chain. An explicitly empty earlier name ends the scan instead of exposing a later alias.
func LookupEnv ¶
LookupEnv is os.LookupEnv, kept as the injectable reader for settings. Lookups never log: hooks and lazy runtime settings read it on every call.
Types ¶
This section is empty.