View Source Vault.HTTP (libvault v0.2.4)

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

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

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

Link to this section Functions

Link to this function

delete(client, path, options \\ [])

View Source

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

Link to this function

get(client, path, options \\ [])

View Source

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

Link to this function

head(client, path, options \\ [])

View Source

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

Link to this function

patch(client, path, options \\ [])

View Source

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

Link to this function

post(client, path, options \\ [])

View Source

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

Link to this function

put(client, path, options \\ [])

View Source

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

Link to this function

request(vault, method, path, options)

View Source

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