Capsule v1.0.0 Capsule.Uploader behaviour View Source
Defines the behaviour for uploaders and provides a use macro for generating
default implementations.
Link to this section Summary
Functions
Generates default implementations of store/3, build_options/3, and build_metadata/3.
Link to this section Types
Specs
Specs
storage() :: atom()
Link to this section Functions
Link to this section Callbacks
Specs
build_metadata(Capsule.Locator.t(), storage(), [option()]) :: Keyword.t() | map()
Specs
Specs
store(any(), storage(), [option()]) :: {:ok, Capsule.Locator.t()} | {:error, any()}