Upstream v2.0.4 Upstream.B2.LargeFile View Source

Public facing api for B2 LargeFile

Link to this section Summary

Link to this section Functions

Link to this function cancel(auth, file_id) View Source
cancel(Upstream.B2.Account.Authorization.t(), String.t()) ::
  {:ok | :error,
   %Upstream.B2.LargeFile.Cancel{
     account_id: term(),
     bucket_id: term(),
     file_id: term(),
     file_name: term()
   }
   | struct()}
Link to this function finish(auth, file_id, sha1_array) View Source
finish(Upstream.B2.Account.Authorization.t(), any(), any()) ::
  {:error, struct()} | {:ok, struct()}
Link to this function start(auth, file_name) View Source
start(Upstream.B2.Account.Authorization.t(), String.t()) ::
  {:ok | :error,
   %Upstream.B2.LargeFile.Start{
     account_id: term(),
     bucket_id: term(),
     content_type: term(),
     file_id: term(),
     file_info: term(),
     file_name: term(),
     upload_timestamp: term()
   }
   | struct()}

Upstream.B2.LargeFile.start/1 Starts the uploading of the large_file on b2

Link to this function start(auth, file_name, metadata) View Source
start(Upstream.B2.Account.Authorization.t(), any(), any()) ::
  {:error, struct()} | {:ok, struct()}
Link to this function unfinished(auth) View Source
unfinished(Upstream.B2.Account.Authorization.t()) ::
  {:error, struct()} | {:ok, struct()}