View Source Eakins.Storage behaviour (eakins v0.0.1)
The storage interface for uploaded images
Link to this section Summary
Link to this section Types
@type image() :: Eakins.Image.Stored.t()
@type parent_schema() :: Ecto.Schema.schema()
Link to this section Callbacks
@callback delete(parent_schema(), image()) :: :ok | {:error, term()}
@callback delete_all() :: :ok | {:error, term()}
@callback exists?(parent_schema(), image()) :: boolean()
@callback store(parent_schema(), image()) :: {:ok, image()} | {:error, term()}