Elixir Keyring v0.1.2 Keyring View Source

A Simple Keyring to store your api keys.

Link to this section Summary

Functions

Add a key/value pair.

Examples

iex> Keyring.add("google", %{key: 'google_location_api', value: 'value'})
"[keys]"

Delete the key/value pair.

Examples

iex> Keyring.delete("google", %{key: 'google_location_api', value: 'value'})
"[keys]"

Pop the top key/value pair.

Examples

iex> Keyring.pop("google")
"%{key: 'google_location_api', value: 'value'}"

Show all key/value pairs.

Examples

iex> Keyring.show("google")
"[keys]"

Update key/value pair.

Examples

iex> Keyring.update("google", %{key: 'google_location_api', value: 'value'})
"[keys]"

Link to this section Functions

Add a key/value pair.

Examples

iex> Keyring.add("google", %{key: 'google_location_api', value: 'value'})
"[keys]"

Delete the key/value pair.

Examples

iex> Keyring.delete("google", %{key: 'google_location_api', value: 'value'})
"[keys]"

Pop the top key/value pair.

Examples

iex> Keyring.pop("google")
"%{key: 'google_location_api', value: 'value'}"

Show all key/value pairs.

Examples

iex> Keyring.show("google")
"[keys]"

Update key/value pair.

Examples

iex> Keyring.update("google", %{key: 'google_location_api', value: 'value'})
"[keys]"