Vaultx.Config.Builder (Vaultx v0.7.0)

View Source

Configuration builder for VaultX.

This module handles the construction of configuration from multiple sources:

  • Default values
  • Application environment
  • System environment variables
  • Runtime overrides

Design Principles

  • Layered Configuration: Multiple sources with clear precedence
  • Environment Awareness: Different defaults per environment
  • Type Safety: Proper type conversion and validation
  • Performance: Efficient configuration building

Summary

Functions

Builds the complete configuration from all sources.

Gets the default configuration for the current environment.

Functions

build()

@spec build() :: map()

Builds the complete configuration from all sources.

Configuration precedence (highest to lowest):

  1. Runtime overrides
  2. System environment variables
  3. Application environment
  4. Default values

get_defaults()

@spec get_defaults() :: map()

Gets the default configuration for the current environment.