Upstream v2.1.4 Upstream.B2.Upload.File View Source

Upload Standard File

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %Upstream.B2.Upload.File{
  account_id: String.t(),
  action: String.t(),
  bucket_id: String.t(),
  content_length: integer(),
  content_sha1: String.t(),
  content_type: String.t(),
  file_id: String.t(),
  file_info: map(),
  file_name: String.t(),
  upload_timestamp: integer()
}

Link to this section Functions

Callback implementation for Upstream.B2.Base.body/1.

Link to this function call(auth, options \\ []) View Source
call(Upstream.B2.Account.Authorization.t() | nil, Keyword.t()) ::
  {:ok | :error,
   %Upstream.B2.Upload.File{
     account_id: term(),
     action: term(),
     bucket_id: term(),
     content_length: term(),
     content_sha1: term(),
     content_type: term(),
     file_id: term(),
     file_info: term(),
     file_name: term(),
     upload_timestamp: term()
   }
   | struct()}

Callback implementation for Upstream.B2.Base.header/2.

Link to this function url(auth, upload_url) View Source
url(any(), binary()) :: binary()

Callback implementation for Upstream.B2.Base.url/2.