libvault v0.1.4 Vault.HTTP

Module that ultimately creates, formats, and parses all http requests and responses for each vault API call.

Requests can take the following options a Keyword List.

options:

  • :query_params - List of query params for the request. Do not include query params on the path.
  • :body - The JSON body for the request.
  • :headers - List of headers for the request
  • :version - The vault api version - defaults to “v1”

Link to this section Summary

Functions

Make a DELETE request against the configured vault instance. See options above for configuration

Make a GET request against the configured vault instance. See options above for configuration

Make a HEAD request against the configured vault instance. See options above for configuration

Make a PATCH request against the configured vault instance. See options above for configuration

Make a POST request against the configured vault instance. See options above for configuration

Make a PUT request against the configured vault instance. See options above for configuration

Make an arbitrary request against the configured vault instance. See options above for configuration

Link to this section Types

Link to this type body()
body() :: map() | [term()]
Link to this type headers()
headers() :: [{String.t(), String.t()}]
Link to this type path()
path() :: String.t()
Link to this type query_params()
query_params() :: [{String.t(), String.t()}]
Link to this type version()
version() :: String.t()

Link to this section Functions

Link to this function delete(client, path, options \\ [])

Make a DELETE request against the configured vault instance. See options above for configuration.

Link to this function get(client, path, options \\ [])

Make a GET request against the configured vault instance. See options above for configuration.

Link to this function head(client, path, options \\ [])

Make a HEAD request against the configured vault instance. See options above for configuration.

Link to this function patch(client, path, options \\ [])

Make a PATCH request against the configured vault instance. See options above for configuration.

Link to this function post(client, path, options \\ [])

Make a POST request against the configured vault instance. See options above for configuration.

Link to this function put(client, path, options \\ [])

Make a PUT request against the configured vault instance. See options above for configuration.

Link to this function request(vault, method, path, options)

Make an arbitrary request against the configured vault instance. See options above for configuration.