ExtConfigProvider v1.0.0 ExtConfigProvider.MergeStrategy.Path View Source

Strategy to merge the retrieved secrets into a specific key in the config

Link to this section Summary

Functions

Merge the retrieved parameter into a specific configuration key

Link to this section Functions

Link to this function

apply(secret, existing_config, opts)

View Source
apply(any(), keyword(), keyword()) :: keyword()

Merge the retrieved parameter into a specific configuration key

Example

iex> existing_config = [toplevel: ["Example.Repo": 1, b: 2]] iex> new_config = "some value" iex> key = [:toplevel, :"Example.Repo"] iex> ExtConfigProvider.MergeStrategy.Path.apply(new_config, existing_config, config_path: key) [toplevel: ["Example.Repo": "some value", b: 2]]