View Source ExSecrets.Providers.Behaviour behaviour (ex_secrets v0.3.2)

Behaviour for providers.

Link to this section Summary

Callbacks

Gets a secret from the provider.

Resets the provider to default state. Clears cache and resets the provider.

Link to this section Callbacks

@callback get(String.t()) :: String.t()

Gets a secret from the provider.

@callback reset() :: :ok

Resets the provider to default state. Clears cache and resets the provider.

@callback set(String.t(), String.t()) :: {:ok, String.t()} | {:error, term()}