Capsule v0.10.0 Capsule.Uploader behaviour View Source

Link to this section Summary

Link to this section Types

Specs

option() :: {atom(), any()}

Specs

storage() :: atom()

Link to this section Callbacks

Link to this callback

build_metadata(arg1, storage, list)

View Source

Specs

build_metadata(Capsule.Locator.t(), storage(), [option()]) ::
  Keyword.t() | map()
Link to this callback

build_options(any, storage, list)

View Source

Specs

build_options(any(), storage(), [option()]) :: [option()]
Link to this callback

store(any, storage, list)

View Source

Specs

store(any(), storage(), [option()]) ::
  {:ok, Capsule.Locator.t()} | {:error, any()}