Depot.Adapter behaviour (Depot v0.5.2) View Source
Behaviour for how Depot
adapters work.
Link to this section Summary
Link to this section Types
Link to this section Callbacks
Specs
Specs
Specs
copy(config(), source :: path(), destination :: path(), write_opts()) :: :ok | {:error, term()}
Link to this callback
copy(source_config, source, destination_config, destination, write_opts)
View SourceSpecs
Specs
create_directory(config(), path(), write_opts()) :: :ok | {:error, term()}
Specs
Specs
delete_directory(config(), path(), directory_delete_opts()) :: :ok | {:error, term()}
Specs
Specs
Specs
move(config(), source :: path(), destination :: path(), write_opts()) :: :ok | {:error, term()}
Specs
Specs
read_stream(config(), path(), stream_opts()) :: {:ok, Enumerable.t()} | {:error, term()}
Specs
set_visibility(config(), path(), Depot.Visibility.t()) :: :ok | {:error, term()}
Specs
starts_processes() :: boolean()
Specs
visibility(config(), path()) :: {:ok, Depot.Visibility.t()} | {:error, term()}
Specs
write(config(), path(), contents :: iodata(), write_opts()) :: :ok | {:error, term()}
Specs
write_stream(config(), path(), stream_opts()) :: {:ok, Collectable.t()} | {:error, term()}