scarab v0.1.1 Scarab.Backend behaviour

Summary

Callbacks

delete(hash, config)
delete(hash :: binary, config :: map) :: :ok | {:error, term}
get(hash, config)
get(hash :: binary, config :: map) ::
  {:ok, contents :: binary} |
  {:error, term}
link(from, to, config)
link(from :: binary, to :: binary, config :: map) ::
  :ok |
  {:error, term}
put(hash, content, config)
put(hash :: binary, content :: binary, config :: map) ::
  :ok |
  {:error, term}