Aliyun.Oss.Object.copy_object

You're seeing just the function copy_object, go back to Aliyun.Oss.Object module for more information.
Link to this function

copy_object(arg1, arg2, headers \\ %{})

Specs

copy_object({String.t(), String.t()}, {String.t(), String.t()}, map()) ::
  {:error, error()} | {:ok, Aliyun.Oss.Client.Response.t()}

CopyObject接口用于在存储空间(Bucket ) 内或同地域的Bucket之间拷贝文件(Object)。

Examples

iex> Aliyun.Oss.Object.copy_object({"source-bucket", "source-object"}, {"target-bucket", "target-object"})
{:ok, %Aliyun.Oss.Client.Response{
    data: %{
      "CopyObjectResult" => %{
        "ETag" => ""D2D50000000000000000000000000000"",
        "LastModified" => "2019-02-27T09:21:13.000Z"
      }
    },
    headers: [
      {"Server", "AliyunOSS"},
      {"Date", "Wed, 05 Dec 2018 02:34:57 GMT"},
      ...
    ]
  }
}