Raxol.Cloud.Config (Raxol v0.3.0)

View Source

Configuration management for Raxol cloud integrations.

Provides centralized configuration management with validation, dynamic updates, and multiple source support.

Summary

Functions

Gets the current configuration.

Gets the default configuration value for a key.

Initializes the configuration system.

Reloads configuration from all sources.

Gets the current status of the configuration system.

Updates the configuration with new values.

Functions

get(opts \\ [])

Gets the current configuration.

Options

  • :section - Specific configuration section to get
  • :flatten - Whether to flatten nested maps

get_default(key)

Gets the default configuration value for a key.

init(opts \\ [])

Initializes the configuration system.

Options

  • :sources - List of configuration sources [:env, :file]
  • :environment - Environment to use (:development, :test, :production)
  • :config_file - Path to configuration file
  • :auto_apply - Whether to automatically apply configuration

reload(opts \\ [])

Reloads configuration from all sources.

Options

  • :sources - List of sources to reload from
  • :apply - Whether to apply the reloaded configuration

status()

Gets the current status of the configuration system.

update(new_config, opts \\ [])

Updates the configuration with new values.

Options

  • :section - Section to update
  • :validate - Whether to validate the configuration
  • :persist - Whether to persist changes
  • :apply - Whether to apply changes