View Source Honu.Storage behaviour (Honu v0.3.2)
Link to this section Summary
Link to this section Types
Link to this section Callbacks
@callback delete(Honu.Attachments.Blob.t(), [option()]) :: :ok | {:error, String.t()}
@callback exists?(Honu.Attachments.Blob.t() | String.t(), [option()]) :: true | false
@callback put(Honu.Attachments.Blob.t(), [option()]) :: {:ok, Honu.Attachments.Blob.t()} | {:error, String.t()}
@callback read(Honu.Attachments.Blob.t(), [option()]) :: {:ok, binary()} | {:error, String.t()}