ElixirBceSdk.Bos.Object (elixir_bce_sdk v0.2.1)
Object related operations
Link to this section Summary
Functions
Put an appendable object to BOS or add content to an appendable object.
Create an appendable object and put content of string to the object or add content of string to an appendable object.
Copy one object to another object.
Delete Multiple Objects.
Delete Object
Delete object acl.
Get an authorization url with expire time
Get object of bucket.
Get object acl.
Get object as string
Get mete of object
Get object to file
Put object to BOS.
Put object and put content of file to the object.
Create object and put content of string to the object.
Set object acl by body.
Set object acl by headers.
Link to this section Functions
append_object(bucket_name, key, data, offset, content_md5, content_length, options \\ %{})
Specs
append_object( String.t(), String.t(), binary(), integer(), String.t(), integer(), map() ) :: ElixirBceSdk.Client.Response.t()
Put an appendable object to BOS or add content to an appendable object.
append_object_from_string(bucket_name, key, data, options \\ %{})
Specs
append_object_from_string(String.t(), String.t(), binary(), map()) :: ElixirBceSdk.Client.Response.t()
Create an appendable object and put content of string to the object or add content of string to an appendable object.
copy_object(source_bucket_name, source_key, target_bucket_name, target_key, options \\ %{})
Specs
copy_object(String.t(), String.t(), String.t(), String.t(), map()) :: ElixirBceSdk.Client.Response.t()
Copy one object to another object.
delete_multiple_objects(bucket_name, key_list)
Specs
delete_multiple_objects(String.t(), list()) :: ElixirBceSdk.Client.Response.t()
Delete Multiple Objects.
delete_object(bucket_name, key)
Specs
delete_object(String.t(), String.t()) :: ElixirBceSdk.Client.Response.t()
Delete Object
delete_object_acl(bucket_name, key)
Specs
delete_object_acl(String.t(), String.t()) :: ElixirBceSdk.Client.Response.t()
Delete object acl.
generate_pre_signed_url(bucket_name, key, opts \\ %{})
Specs
Get an authorization url with expire time
get_object(bucket_name, key, range \\ nil, save_path \\ nil, return_body \\ true)
Specs
get_object(String.t(), String.t(), any(), atom(), boolean()) :: {:error, ElixirBceSdk.Client.Response.t()} | {:ok, ElixirBceSdk.Client.Response.t()}
Get object of bucket.
get_object_acl(bucket_name, key)
Specs
get_object_acl(String.t(), String.t()) :: ElixirBceSdk.Client.Response.t()
Get object acl.
get_object_as_string(bucket_name, key, range \\ nil)
Specs
get_object_as_string(String.t(), String.t(), any()) :: {:error, ElixirBceSdk.Client.Response.t()} | {:ok, ElixirBceSdk.Client.Response.t() | String.t()}
Get object as string
get_object_meta_data(bucket_name, key)
Specs
get_object_meta_data(String.t(), String.t()) :: {:error, ElixirBceSdk.Client.Response.t()} | {:ok, ElixirBceSdk.Client.Response.t()}
Get mete of object
get_object_to_file(bucket_name, key, save_path, range \\ nil)
Specs
get_object_to_file(String.t(), String.t(), any(), any()) :: {:error, ElixirBceSdk.Client.Response.t()} | {:ok, ElixirBceSdk.Client.Response.t() | {:ok, String.t()}}
Get object to file
put_object(bucket_name, key, data, content_md5, content_length, options)
Specs
put_object(String.t(), String.t(), binary(), String.t(), integer(), map()) :: {:error, ElixirBceSdk.Client.Response.t()} | {:ok, ElixirBceSdk.Client.Response.t()}
Put object to BOS.
put_object_from_file(bucket_name, key, file_name, options \\ %{})
Specs
put_object_from_file(String.t(), String.t(), String.t(), map()) :: {:error, any()} | {:ok, ElixirBceSdk.Client.Response.t()}
Put object and put content of file to the object.
put_object_from_string(bucket_name, key, data, options \\ %{})
Specs
put_object_from_string(String.t(), String.t(), binary(), map()) :: {:error, ElixirBceSdk.Client.Response.t()} | {:ok, ElixirBceSdk.Client.Response.t()}
Create object and put content of string to the object.
set_object_acl(bucket_name, key, acl)
Specs
set_object_acl(String.t(), String.t(), list()) :: ElixirBceSdk.Client.Response.t()
Set object acl by body.
set_object_canned_acl(bucket_name, key, canned_acl)
Specs
set_object_canned_acl(String.t(), String.t(), map()) :: ElixirBceSdk.Client.Response.t()
Set object acl by headers.