View Source IVCU.Storage behaviour (IVCU v0.1.1)
Interface module for file storage.
Warning
Usually you don't need to implement storage yourself as there already exists
IVCU.Storage.Local
helper. That's the reason this module is marked as "internal".
Link to this section Summary
Link to this section Callbacks
Specs
delete(IVCU.File.t()) :: :ok | {:error, term()}
Delete the file from the storage.
Specs
put(IVCU.File.t()) :: :ok | {:error, term()}
Put the file to the storages.
Specs
url(IVCU.File.t()) :: String.t()
Return url with which one can access the file in the storage.