Capsule v0.10.0 Capsule.Storage behaviour View Source
Link to this section Summary
Link to this section Types
Specs
locator_id() :: String.t()
Specs
Link to this section Callbacks
Specs
delete(locator_id()) :: :ok | {:error, String.t()}
Specs
delete(locator_id(), [option()]) :: :ok | {:error, String.t()}
Specs
put(Capsule.Upload.t()) :: {:ok, locator_id()} | {:error, String.t()}
Specs
put(Capsule.Upload.t(), [option()]) :: {:ok, locator_id()} | {:error, String.t()}
Specs
read(locator_id()) :: {:ok, binary()} | {:error, String.t()}
Specs
read(locator_id(), [option()]) :: {:ok, binary()} | {:error, String.t()}