Elixir Keyring v0.1.3 Keyring View Source
A Keyring Module to Store Your API Keys.
Link to this section Summary
Functions
Add a key to the keyring server.
Examples
iex> Keyring.add("google", %{key: 'google_location_api', value: 'value'})
":ok"
Delete the key/value pair.
Examples
iex> Keyring.delete("google", %{key: 'google_location_api', value: 'value'})
"[keys]"
Pop a key to the keyring server.
Examples
iex> Keyring.pop(google", %{key: 'google_location_api', value: 'value'})
"%{key: 'google_location_api', value: 'value'}"
Start the keyring server.
Examples
iex> Keyring.start("google")
":ok"
Stop the keyring server.
Examples
iex> Keyring.stop("google")
":ok"
Pop a key to the keyring server.
Examples
iex> Keyring.update("google", %{key: 'google_location_api', value: 'value'})
"[keys]"
Link to this section Functions
Add a key to the keyring server.
Examples
iex> Keyring.add("google", %{key: 'google_location_api', value: 'value'})
":ok"
Delete the key/value pair.
Examples
iex> Keyring.delete("google", %{key: 'google_location_api', value: 'value'})
"[keys]"
Pop a key to the keyring server.
Examples
iex> Keyring.pop(google", %{key: 'google_location_api', value: 'value'})
"%{key: 'google_location_api', value: 'value'}"