Raxol.Cloud.Config (Raxol v0.5.0)

View Source

Configuration management for Raxol cloud integrations.

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

Summary

Functions

cancel_backup()

cancel_sync()

clear_backup_error()

clear_backup_log()

clear_backup_stats()

clear_sync_error()

clear_sync_log()

clear_sync_stats()

default_config()

get(opts \\ [])

Gets the current configuration.

Options

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

get_backup_error()

get_backup_log()

get_backup_progress()

get_backup_stats()

get_backup_status()

get_config()

get_default(key)

Gets the default configuration value for a key.

get_sync_error()

get_sync_log()

get_sync_progress()

get_sync_stats()

get_sync_status()

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

reset_config()

set_config(config)

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

update_config(updates)