View Source Vault.Engine.Adapter behaviour (libvault v0.2.4)

Adapter specificication for Vault Secret Engines

Link to this section Summary

Link to this section Types

@type data() :: term()
@type errors() :: list()
@type options() :: list()
@type path() :: String.t()
@type response() :: {:ok, data()} | {:error, errors()}
@type token() :: String.t()
@type value() :: term()
@type vault() :: Vault.t()

Link to this section Callbacks

Link to this callback

delete(vault, path, options)

View Source
@callback delete(vault(), path(), options()) :: response()
Link to this callback

list(vault, path, options)

View Source
@callback list(vault(), path(), options()) :: response()
Link to this callback

read(vault, path, options)

View Source
@callback read(vault(), path(), options()) :: response()
Link to this callback

write(vault, path, value, options)

View Source
@callback write(vault(), path(), value(), options()) :: response()