ElixirBceSdk.Bos.Multipart (elixir_bce_sdk v0.2.1)

Multipart related api

Link to this section Summary

Link to this section Functions

Link to this function

abort_multipart_upload(bucket_name, key, upload_id)

Specs

abort_multipart_upload(String.t(), String.t(), String.t()) ::
  {:error, ElixirBceSdk.Client.Response.t()}
  | {:ok, ElixirBceSdk.Client.Response.t()}

Abort upload a part which is being uploading.

Link to this function

complete_multipart_upload(bucket_name, key, upload_id, part_list, options \\ %{})

Specs

complete_multipart_upload(String.t(), String.t(), String.t(), list(), map()) ::
  {:error, ElixirBceSdk.Client.Response.t()}
  | {:ok, ElixirBceSdk.Client.Response.t()}

After finish all the task, complete multi_upload_file.

Link to this function

initialize_multipart_upload(bucket_name, key, options \\ %{})

Specs

initialize_multipart_upload(String.t(), String.t(), map()) ::
  {:error, ElixirBceSdk.Client.Response.t()}
  | {:ok, ElixirBceSdk.Client.Response.t()}

Initialize multi_upload_file.

Link to this function

list_multipart_uploads(bucket_name, options \\ %{})

Specs

list_multipart_uploads(String.t(), map()) ::
  {:error, ElixirBceSdk.Client.Response.t()}
  | {:ok, ElixirBceSdk.Client.Response.t()}

List all Multipart upload task which haven't been ended.(Completed Init_MultiPartUpload but not completed Complete_MultiPartUpload or Abort_MultiPartUpload).

Link to this function

list_parts(bucket_name, key, upload_id, options \\ %{})

Specs

List all the parts that have been upload success.

Link to this function

upload_part(bucket_name, key, upload_id, part_number, part_size, data, options \\ %{})

Specs

Upload a part

Link to this function

upload_part_copy(source_bucket_name, source_key, target_bucket_name, target_key, upload_id, part_number, part_size, offset, options \\ %{})

Specs

upload_part_copy(
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  integer(),
  integer(),
  integer(),
  map()
) ::
  {:error, ElixirBceSdk.Client.Response.t()}
  | {:ok, ElixirBceSdk.Client.Response.t()}

Copy upload part.

Link to this function

upload_part_from_file(bucket_name, key, upload_id, part_number, part_size, file_name, offset \\ 0, options \\ %{})

Specs

upload_part_from_file(
  String.t(),
  String.t(),
  String.t(),
  integer(),
  integer(),
  String.t(),
  integer(),
  map()
) :: {:error, any()} | {:ok, ElixirBceSdk.Client.Response.t()}

Upload a part from file.