Buckets.Bucket behaviour (buckets v0.1.0)

Summary

Types

@type scope() :: binary() | %{id: binary()}

Callbacks

Link to this callback

delete(filename, scope, t)

@callback delete(filename :: String.t(), scope(), Keyword.t()) :: :ok
Link to this callback

get(filename, scope, t)

@callback get(filename :: String.t(), scope(), Keyword.t()) :: {:ok, binary()}
Link to this callback

put(t, scope, t)

@callback put(Buckets.Upload.t(), scope(), Keyword.t()) ::
  {:ok, Buckets.Object.t()} | {:error, term()}
Link to this callback

url(filename, scope, t)

@callback url(filename :: String.t(), scope(), Keyword.t()) ::
  {:ok, Buckets.SignedURL.t()}