{"action":"created","comment":{"url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/comments/67803746","id":67803746,"diff_hunk":"@@ -140,16 +140,27 @@ func (bucket Bucket) CopyObject(srcObjectKey, destObjectKey string, options ...O\n }\n \n //\n-// CopyObjectToBucket bucket间拷贝object。\n+// CopyObjectTo bucket间拷贝object。\n //\n+// srcBucketName  Copy的源Bucket。\n // srcObjectKey   Copy的源对象。\n // destBucket     Copy的目标Bucket。\n // destObjectKey  Copy的目标Object。\n // options        Copy选项，详见CopyObject的options。\n //\n // error  操作无错误为nil，非nil为错误信息。\n //\n-func (bucket Bucket) CopyObjectToBucket(srcObjectKey, destBucketName, destObjectKey string, options ...Option) (CopyObjectResult, error) {\n+func (bucket Bucket) CopyObjectTo(srcBucketName, srcObjectKey, destBucketName, destObjectKey string, options ...Option) (CopyObjectResult, error) {","path":"oss/bucket.go","position":16,"original_position":16,"commit_id":"da1a7cae5b5438579ca306655fc5bde00fd31fe5","original_commit_id":"7ebf86924c51ee3fb67a5cb5af50f6b6596e362e","user":{"login":"rockuw","id":1209779,"avatar_url":"https://avatars.githubusercontent.com/u/1209779?v=3","gravatar_id":"","url":"https://api.github.com/users/rockuw","html_url":"https://github.com/rockuw","followers_url":"https://api.github.com/users/rockuw/followers","following_url":"https://api.github.com/users/rockuw/following{/other_user}","gists_url":"https://api.github.com/users/rockuw/gists{/gist_id}","starred_url":"https://api.github.com/users/rockuw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rockuw/subscriptions","organizations_url":"https://api.github.com/users/rockuw/orgs","repos_url":"https://api.github.com/users/rockuw/repos","events_url":"https://api.github.com/users/rockuw/events{/privacy}","received_events_url":"https://api.github.com/users/rockuw/received_events","type":"User","site_admin":false},"body":"本来就是隐含的啊，因为Bucket是一个对象啊，那么你putObject是不是也要指定bucket name呢？","created_at":"2016-06-21T03:39:51Z","updated_at":"2016-06-21T03:39:51Z","html_url":"https://github.com/aliyun/aliyun-oss-go-sdk/pull/7#discussion_r67803746","pull_request_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/comments/67803746"},"html":{"href":"https://github.com/aliyun/aliyun-oss-go-sdk/pull/7#discussion_r67803746"},"pull_request":{"href":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/7","id":74218799,"html_url":"https://github.com/aliyun/aliyun-oss-go-sdk/pull/7","diff_url":"https://github.com/aliyun/aliyun-oss-go-sdk/pull/7.diff","patch_url":"https://github.com/aliyun/aliyun-oss-go-sdk/pull/7.patch","issue_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/7","number":7,"state":"open","locked":false,"title":"multicopy","user":{"login":"baiyubin","id":16008960,"avatar_url":"https://avatars.githubusercontent.com/u/16008960?v=3","gravatar_id":"","url":"https://api.github.com/users/baiyubin","html_url":"https://github.com/baiyubin","followers_url":"https://api.github.com/users/baiyubin/followers","following_url":"https://api.github.com/users/baiyubin/following{/other_user}","gists_url":"https://api.github.com/users/baiyubin/gists{/gist_id}","starred_url":"https://api.github.com/users/baiyubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baiyubin/subscriptions","organizations_url":"https://api.github.com/users/baiyubin/orgs","repos_url":"https://api.github.com/users/baiyubin/repos","events_url":"https://api.github.com/users/baiyubin/events{/privacy}","received_events_url":"https://api.github.com/users/baiyubin/received_events","type":"User","site_admin":false},"body":"增加：\r\n1. GetBucketInfo，见client.go；\r\n2. 分片复制，见multicopy.go；\r\n修复：\r\n3. ListObjectsResult的中object size用int改成int64，见type.go;\r\n4. 分片上传/下载出错时，启动的协程正常退出，见download.go、upload.go；\r\n5. 修改UploadPartCopy接口，添加参数srcBucketName，可以进行bucket间复制；\r\n6. 修改CopyObjectTo接口，添加参数srcBucketName，可以进行bucket间复制。","created_at":"2016-06-17T10:09:54Z","updated_at":"2016-06-21T03:39:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0dfcaed6d9e2c982ab6ba8aee561db552d525a53","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/7/commits","review_comments_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/7/comments","review_comment_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/7/comments","statuses_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/statuses/da1a7cae5b5438579ca306655fc5bde00fd31fe5","head":{"label":"aliyun:support_multicopy","ref":"support_multicopy","sha":"da1a7cae5b5438579ca306655fc5bde00fd31fe5","user":{"login":"aliyun","id":941070,"avatar_url":"https://avatars.githubusercontent.com/u/941070?v=3","gravatar_id":"","url":"https://api.github.com/users/aliyun","html_url":"https://github.com/aliyun","followers_url":"https://api.github.com/users/aliyun/followers","following_url":"https://api.github.com/users/aliyun/following{/other_user}","gists_url":"https://api.github.com/users/aliyun/gists{/gist_id}","starred_url":"https://api.github.com/users/aliyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliyun/subscriptions","organizations_url":"https://api.github.com/users/aliyun/orgs","repos_url":"https://api.github.com/users/aliyun/repos","events_url":"https://api.github.com/users/aliyun/events{/privacy}","received_events_url":"https://api.github.com/users/aliyun/received_events","type":"Organization","site_admin":false},"repo":{"id":48349152,"name":"aliyun-oss-go-sdk","full_name":"aliyun/aliyun-oss-go-sdk","owner":{"login":"aliyun","id":941070,"avatar_url":"https://avatars.githubusercontent.com/u/941070?v=3","gravatar_id":"","url":"https://api.github.com/users/aliyun","html_url":"https://github.com/aliyun","followers_url":"https://api.github.com/users/aliyun/followers","following_url":"https://api.github.com/users/aliyun/following{/other_user}","gists_url":"https://api.github.com/users/aliyun/gists{/gist_id}","starred_url":"https://api.github.com/users/aliyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliyun/subscriptions","organizations_url":"https://api.github.com/users/aliyun/orgs","repos_url":"https://api.github.com/users/aliyun/repos","events_url":"https://api.github.com/users/aliyun/events{/privacy}","received_events_url":"https://api.github.com/users/aliyun/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aliyun/aliyun-oss-go-sdk","description":"","fork":false,"url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk","forks_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/forks","keys_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/teams","hooks_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/hooks","issue_events_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/events","assignees_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/tags","blobs_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/languages","stargazers_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/stargazers","contributors_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/contributors","subscribers_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/subscribers","subscription_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/subscription","commits_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/merges","archive_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/downloads","issues_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/labels{/name}","releases_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/deployments","created_at":"2015-12-21T03:43:43Z","updated_at":"2016-06-20T10:34:40Z","pushed_at":"2016-06-21T03:07:33Z","git_url":"git://github.com/aliyun/aliyun-oss-go-sdk.git","ssh_url":"git@github.com:aliyun/aliyun-oss-go-sdk.git","clone_url":"https://github.com/aliyun/aliyun-oss-go-sdk.git","svn_url":"https://github.com/aliyun/aliyun-oss-go-sdk","homepage":null,"size":605,"stargazers_count":26,"watchers_count":26,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":26,"default_branch":"master"}},"base":{"label":"aliyun:master","ref":"master","sha":"c6b59ab8f04dbc715ff74f586e527eac2fd080a2","user":{"login":"aliyun","id":941070,"avatar_url":"https://avatars.githubusercontent.com/u/941070?v=3","gravatar_id":"","url":"https://api.github.com/users/aliyun","html_url":"https://github.com/aliyun","followers_url":"https://api.github.com/users/aliyun/followers","following_url":"https://api.github.com/users/aliyun/following{/other_user}","gists_url":"https://api.github.com/users/aliyun/gists{/gist_id}","starred_url":"https://api.github.com/users/aliyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliyun/subscriptions","organizations_url":"https://api.github.com/users/aliyun/orgs","repos_url":"https://api.github.com/users/aliyun/repos","events_url":"https://api.github.com/users/aliyun/events{/privacy}","received_events_url":"https://api.github.com/users/aliyun/received_events","type":"Organization","site_admin":false},"repo":{"id":48349152,"name":"aliyun-oss-go-sdk","full_name":"aliyun/aliyun-oss-go-sdk","owner":{"login":"aliyun","id":941070,"avatar_url":"https://avatars.githubusercontent.com/u/941070?v=3","gravatar_id":"","url":"https://api.github.com/users/aliyun","html_url":"https://github.com/aliyun","followers_url":"https://api.github.com/users/aliyun/followers","following_url":"https://api.github.com/users/aliyun/following{/other_user}","gists_url":"https://api.github.com/users/aliyun/gists{/gist_id}","starred_url":"https://api.github.com/users/aliyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliyun/subscriptions","organizations_url":"https://api.github.com/users/aliyun/orgs","repos_url":"https://api.github.com/users/aliyun/repos","events_url":"https://api.github.com/users/aliyun/events{/privacy}","received_events_url":"https://api.github.com/users/aliyun/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aliyun/aliyun-oss-go-sdk","description":"","fork":false,"url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk","forks_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/forks","keys_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/teams","hooks_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/hooks","issue_events_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/events","assignees_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/tags","blobs_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/languages","stargazers_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/stargazers","contributors_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/contributors","subscribers_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/subscribers","subscription_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/subscription","commits_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/merges","archive_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/downloads","issues_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/labels{/name}","releases_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/deployments","created_at":"2015-12-21T03:43:43Z","updated_at":"2016-06-20T10:34:40Z","pushed_at":"2016-06-21T03:07:33Z","git_url":"git://github.com/aliyun/aliyun-oss-go-sdk.git","ssh_url":"git@github.com:aliyun/aliyun-oss-go-sdk.git","clone_url":"https://github.com/aliyun/aliyun-oss-go-sdk.git","svn_url":"https://github.com/aliyun/aliyun-oss-go-sdk","homepage":null,"size":605,"stargazers_count":26,"watchers_count":26,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":1,"forks":6,"open_issues":1,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/7"},"html":{"href":"https://github.com/aliyun/aliyun-oss-go-sdk/pull/7"},"issue":{"href":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/7"},"comments":{"href":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/aliyun/aliyun-oss-go-sdk/statuses/da1a7cae5b5438579ca306655fc5bde00fd31fe5"}}}}
{"actor":{"display_login":"rockuw"}}