ElixirBceSdk.Bos.Multipart (elixir_bce_sdk v0.2.1)
Multipart related api
Link to this section Summary
Functions
Abort upload a part which is being uploading.
After finish all the task, complete multi_upload_file.
Initialize multi_upload_file.
List all Multipart upload task which haven't been ended.(Completed Init_MultiPartUpload but not completed Complete_MultiPartUpload or Abort_MultiPartUpload).
List all the parts that have been upload success.
Upload a part
Copy upload part.
Link to this section Functions
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.
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.
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.
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).
list_parts(bucket_name, key, upload_id, options \\ %{})
Specs
list_parts(String.t(), String.t(), String.t(), map()) :: {:error, ElixirBceSdk.Client.Response.t()} | {:ok, ElixirBceSdk.Client.Response.t()}
List all the parts that have been upload success.
upload_part(bucket_name, key, upload_id, part_number, part_size, data, options \\ %{})
Specs
upload_part( String.t(), String.t(), String.t(), integer(), integer(), binary(), map() ) :: {:error, ElixirBceSdk.Client.Response.t()} | {:ok, ElixirBceSdk.Client.Response.t()}
Upload a part
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.
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.