ExSecrets.Providers.Behaviour behaviour (ex_secrets v0.4.0)

Copy Markdown View Source

Behaviour for providers.

Summary

Callbacks

Gets a secret from the provider.

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

Callbacks

get(t)

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

Gets a secret from the provider.

reset()

@callback reset() :: :ok

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

set(t, t)

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