Picasso.Datastore.Behaviour behaviour (picasso v0.1.0)

Link to this section Summary

Callbacks

Copies the file named filename from the datastore to /tmp/ and turns it's path.

Removes the file named filename from the datastore.

Stores the file at tmp_path as filename at the datastore.

Link to this section Callbacks

Specs

read(filename :: String.t()) :: {:error, atom()} | {:ok, String.t()}

Copies the file named filename from the datastore to /tmp/ and turns it's path.

Link to this callback

remove(filename)

Specs

remove(filename :: String.t()) :: {:error, atom()} | {:ok, String.t()}

Removes the file named filename from the datastore.

Link to this callback

store(tmp_path, filename)

Specs

store(tmp_path :: String.t(), filename :: String.t()) ::
  {:error, atom()} | {:ok, String.t()}

Stores the file at tmp_path as filename at the datastore.