{"action":"created","comment":{"url":"https://api.github.com/repos/rook/rook/pulls/comments/118350547","pull_request_review_id":40134859,"id":118350547,"diff_hunk":"@@ -221,11 +220,47 @@ func (h *Handler) Listbuckets(w http.ResponseWriter, r *http.Request) {\n \tFormatJsonResponse(w, sortedBuckets)\n }\n \n-func handleConnectionLookupFailure(err error, action string, w http.ResponseWriter) {\n-\tlogger.Errorf(\"failed to get %s: %+v\", action, err)\n-\tif util.IsEtcdKeyNotFound(err) {\n-\t\tw.WriteHeader(http.StatusNotFound)\n-\t} else {\n+// GetBucket gets the bucket from the object store in this cluster.\n+// GET\n+// /objectstore/buckets/{USER_ID}\n+func (h *Handler) GetBucket(w http.ResponseWriter, r *http.Request) {\n+\tbucketName := mux.Vars(r)[\"bucketName\"]\n+\n+\tuser, rgwError, err := rgw.GetBucket(h.context, bucketName, h.config.ClusterHandler.GetClusterInfo)\n+\tif err != nil {\n+\t\tlogger.Errorf(\"Error getting bucket (%s): %+v\", bucketName, err)\n+\n+\t\tif rgwError == rgw.RGWErrorNotFound {\n+\t\t\tw.WriteHeader(http.StatusNotFound)\n+\t\t} else {\n+\t\t\tw.WriteHeader(http.StatusInternalServerError)\n+\t\t}\n+\t\treturn\n+\t}\n+\n+\tFormatJsonResponse(w, user)\n+}\n+\n+// DeleteBucket deletes the bucket in the object store in this cluster.\n+// DELETE\n+// /objectstore/buckets/{BUCKET_NAME}","path":"pkg/api/object.go","position":49,"original_position":49,"commit_id":"d3aec79e0078634ac9a99a9f4c3edeb00f1eb63d","original_commit_id":"d3aec79e0078634ac9a99a9f4c3edeb00f1eb63d","user":{"login":"thephred","id":110422,"avatar_url":"https://avatars1.githubusercontent.com/u/110422?v=3","gravatar_id":"","url":"https://api.github.com/users/thephred","html_url":"https://github.com/thephred","followers_url":"https://api.github.com/users/thephred/followers","following_url":"https://api.github.com/users/thephred/following{/other_user}","gists_url":"https://api.github.com/users/thephred/gists{/gist_id}","starred_url":"https://api.github.com/users/thephred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephred/subscriptions","organizations_url":"https://api.github.com/users/thephred/orgs","repos_url":"https://api.github.com/users/thephred/repos","events_url":"https://api.github.com/users/thephred/events{/privacy}","received_events_url":"https://api.github.com/users/thephred/received_events","type":"User","site_admin":false},"body":"anyone's buckets","created_at":"2017-05-24T20:01:40Z","updated_at":"2017-05-24T20:01:40Z","html_url":"https://github.com/rook/rook/pull/460#discussion_r118350547","pull_request_url":"https://api.github.com/repos/rook/rook/pulls/460","_links":{"self":{"href":"https://api.github.com/repos/rook/rook/pulls/comments/118350547"},"html":{"href":"https://github.com/rook/rook/pull/460#discussion_r118350547"},"pull_request":{"href":"https://api.github.com/repos/rook/rook/pulls/460"}}},"pull_request":{"url":"https://api.github.com/repos/rook/rook/pulls/460","id":109588486,"html_url":"https://github.com/rook/rook/pull/460","diff_url":"https://github.com/rook/rook/pull/460.diff","patch_url":"https://github.com/rook/rook/pull/460.patch","issue_url":"https://api.github.com/repos/rook/rook/issues/460","number":460,"state":"open","locked":false,"title":"api: Added more bucket ops to the api","user":{"login":"thephred","id":110422,"avatar_url":"https://avatars1.githubusercontent.com/u/110422?v=3","gravatar_id":"","url":"https://api.github.com/users/thephred","html_url":"https://github.com/thephred","followers_url":"https://api.github.com/users/thephred/followers","following_url":"https://api.github.com/users/thephred/following{/other_user}","gists_url":"https://api.github.com/users/thephred/gists{/gist_id}","starred_url":"https://api.github.com/users/thephred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephred/subscriptions","organizations_url":"https://api.github.com/users/thephred/orgs","repos_url":"https://api.github.com/users/thephred/repos","events_url":"https://api.github.com/users/thephred/events{/privacy}","received_events_url":"https://api.github.com/users/thephred/received_events","type":"User","site_admin":false},"body":"cli: Added a few more bucket ops to the cli","created_at":"2017-03-07T22:41:58Z","updated_at":"2017-05-24T20:01:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36430c0cb11982b25f3fbc0a625152b6c0ea9128","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rook/rook/pulls/460/commits","review_comments_url":"https://api.github.com/repos/rook/rook/pulls/460/comments","review_comment_url":"https://api.github.com/repos/rook/rook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rook/rook/issues/460/comments","statuses_url":"https://api.github.com/repos/rook/rook/statuses/d3aec79e0078634ac9a99a9f4c3edeb00f1eb63d","head":{"label":"thephred:add_bucket_ops","ref":"add_bucket_ops","sha":"d3aec79e0078634ac9a99a9f4c3edeb00f1eb63d","user":{"login":"thephred","id":110422,"avatar_url":"https://avatars1.githubusercontent.com/u/110422?v=3","gravatar_id":"","url":"https://api.github.com/users/thephred","html_url":"https://github.com/thephred","followers_url":"https://api.github.com/users/thephred/followers","following_url":"https://api.github.com/users/thephred/following{/other_user}","gists_url":"https://api.github.com/users/thephred/gists{/gist_id}","starred_url":"https://api.github.com/users/thephred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephred/subscriptions","organizations_url":"https://api.github.com/users/thephred/orgs","repos_url":"https://api.github.com/users/thephred/repos","events_url":"https://api.github.com/users/thephred/events{/privacy}","received_events_url":"https://api.github.com/users/thephred/received_events","type":"User","site_admin":false},"repo":{"id":73988481,"name":"rook","full_name":"thephred/rook","owner":{"login":"thephred","id":110422,"avatar_url":"https://avatars1.githubusercontent.com/u/110422?v=3","gravatar_id":"","url":"https://api.github.com/users/thephred","html_url":"https://github.com/thephred","followers_url":"https://api.github.com/users/thephred/followers","following_url":"https://api.github.com/users/thephred/following{/other_user}","gists_url":"https://api.github.com/users/thephred/gists{/gist_id}","starred_url":"https://api.github.com/users/thephred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thephred/subscriptions","organizations_url":"https://api.github.com/users/thephred/orgs","repos_url":"https://api.github.com/users/thephred/repos","events_url":"https://api.github.com/users/thephred/events{/privacy}","received_events_url":"https://api.github.com/users/thephred/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thephred/rook","description":"Open, Cloud Native, and Universal Distributed Storage","fork":true,"url":"https://api.github.com/repos/thephred/rook","forks_url":"https://api.github.com/repos/thephred/rook/forks","keys_url":"https://api.github.com/repos/thephred/rook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thephred/rook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thephred/rook/teams","hooks_url":"https://api.github.com/repos/thephred/rook/hooks","issue_events_url":"https://api.github.com/repos/thephred/rook/issues/events{/number}","events_url":"https://api.github.com/repos/thephred/rook/events","assignees_url":"https://api.github.com/repos/thephred/rook/assignees{/user}","branches_url":"https://api.github.com/repos/thephred/rook/branches{/branch}","tags_url":"https://api.github.com/repos/thephred/rook/tags","blobs_url":"https://api.github.com/repos/thephred/rook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thephred/rook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thephred/rook/git/refs{/sha}","trees_url":"https://api.github.com/repos/thephred/rook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thephred/rook/statuses/{sha}","languages_url":"https://api.github.com/repos/thephred/rook/languages","stargazers_url":"https://api.github.com/repos/thephred/rook/stargazers","contributors_url":"https://api.github.com/repos/thephred/rook/contributors","subscribers_url":"https://api.github.com/repos/thephred/rook/subscribers","subscription_url":"https://api.github.com/repos/thephred/rook/subscription","commits_url":"https://api.github.com/repos/thephred/rook/commits{/sha}","git_commits_url":"https://api.github.com/repos/thephred/rook/git/commits{/sha}","comments_url":"https://api.github.com/repos/thephred/rook/comments{/number}","issue_comment_url":"https://api.github.com/repos/thephred/rook/issues/comments{/number}","contents_url":"https://api.github.com/repos/thephred/rook/contents/{+path}","compare_url":"https://api.github.com/repos/thephred/rook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thephred/rook/merges","archive_url":"https://api.github.com/repos/thephred/rook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thephred/rook/downloads","issues_url":"https://api.github.com/repos/thephred/rook/issues{/number}","pulls_url":"https://api.github.com/repos/thephred/rook/pulls{/number}","milestones_url":"https://api.github.com/repos/thephred/rook/milestones{/number}","notifications_url":"https://api.github.com/repos/thephred/rook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thephred/rook/labels{/name}","releases_url":"https://api.github.com/repos/thephred/rook/releases{/id}","deployments_url":"https://api.github.com/repos/thephred/rook/deployments","created_at":"2016-11-17T03:56:01Z","updated_at":"2016-11-17T03:56:02Z","pushed_at":"2017-05-24T19:08:08Z","git_url":"git://github.com/thephred/rook.git","ssh_url":"git@github.com:thephred/rook.git","clone_url":"https://github.com/thephred/rook.git","svn_url":"https://github.com/thephred/rook","homepage":"https://rook.io","size":1844,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rook:master","ref":"master","sha":"606787449e8d5cdb89efe28ca4e4d8e1916920d1","user":{"login":"rook","id":22860722,"avatar_url":"https://avatars2.githubusercontent.com/u/22860722?v=3","gravatar_id":"","url":"https://api.github.com/users/rook","html_url":"https://github.com/rook","followers_url":"https://api.github.com/users/rook/followers","following_url":"https://api.github.com/users/rook/following{/other_user}","gists_url":"https://api.github.com/users/rook/gists{/gist_id}","starred_url":"https://api.github.com/users/rook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rook/subscriptions","organizations_url":"https://api.github.com/users/rook/orgs","repos_url":"https://api.github.com/users/rook/repos","events_url":"https://api.github.com/users/rook/events{/privacy}","received_events_url":"https://api.github.com/users/rook/received_events","type":"Organization","site_admin":false},"repo":{"id":62921553,"name":"rook","full_name":"rook/rook","owner":{"login":"rook","id":22860722,"avatar_url":"https://avatars2.githubusercontent.com/u/22860722?v=3","gravatar_id":"","url":"https://api.github.com/users/rook","html_url":"https://github.com/rook","followers_url":"https://api.github.com/users/rook/followers","following_url":"https://api.github.com/users/rook/following{/other_user}","gists_url":"https://api.github.com/users/rook/gists{/gist_id}","starred_url":"https://api.github.com/users/rook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rook/subscriptions","organizations_url":"https://api.github.com/users/rook/orgs","repos_url":"https://api.github.com/users/rook/repos","events_url":"https://api.github.com/users/rook/events{/privacy}","received_events_url":"https://api.github.com/users/rook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rook/rook","description":"Open, Cloud Native, and Universal Distributed Storage","fork":false,"url":"https://api.github.com/repos/rook/rook","forks_url":"https://api.github.com/repos/rook/rook/forks","keys_url":"https://api.github.com/repos/rook/rook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rook/rook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rook/rook/teams","hooks_url":"https://api.github.com/repos/rook/rook/hooks","issue_events_url":"https://api.github.com/repos/rook/rook/issues/events{/number}","events_url":"https://api.github.com/repos/rook/rook/events","assignees_url":"https://api.github.com/repos/rook/rook/assignees{/user}","branches_url":"https://api.github.com/repos/rook/rook/branches{/branch}","tags_url":"https://api.github.com/repos/rook/rook/tags","blobs_url":"https://api.github.com/repos/rook/rook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rook/rook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rook/rook/git/refs{/sha}","trees_url":"https://api.github.com/repos/rook/rook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rook/rook/statuses/{sha}","languages_url":"https://api.github.com/repos/rook/rook/languages","stargazers_url":"https://api.github.com/repos/rook/rook/stargazers","contributors_url":"https://api.github.com/repos/rook/rook/contributors","subscribers_url":"https://api.github.com/repos/rook/rook/subscribers","subscription_url":"https://api.github.com/repos/rook/rook/subscription","commits_url":"https://api.github.com/repos/rook/rook/commits{/sha}","git_commits_url":"https://api.github.com/repos/rook/rook/git/commits{/sha}","comments_url":"https://api.github.com/repos/rook/rook/comments{/number}","issue_comment_url":"https://api.github.com/repos/rook/rook/issues/comments{/number}","contents_url":"https://api.github.com/repos/rook/rook/contents/{+path}","compare_url":"https://api.github.com/repos/rook/rook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rook/rook/merges","archive_url":"https://api.github.com/repos/rook/rook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rook/rook/downloads","issues_url":"https://api.github.com/repos/rook/rook/issues{/number}","pulls_url":"https://api.github.com/repos/rook/rook/pulls{/number}","milestones_url":"https://api.github.com/repos/rook/rook/milestones{/number}","notifications_url":"https://api.github.com/repos/rook/rook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rook/rook/labels{/name}","releases_url":"https://api.github.com/repos/rook/rook/releases{/id}","deployments_url":"https://api.github.com/repos/rook/rook/deployments","created_at":"2016-07-08T22:45:05Z","updated_at":"2017-05-24T18:12:20Z","pushed_at":"2017-05-24T19:08:09Z","git_url":"git://github.com/rook/rook.git","ssh_url":"git@github.com:rook/rook.git","clone_url":"https://github.com/rook/rook.git","svn_url":"https://github.com/rook/rook","homepage":"https://rook.io","size":1906,"stargazers_count":1375,"watchers_count":1375,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":83,"mirror_url":null,"open_issues_count":132,"forks":83,"open_issues":132,"watchers":1375,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rook/rook/pulls/460"},"html":{"href":"https://github.com/rook/rook/pull/460"},"issue":{"href":"https://api.github.com/repos/rook/rook/issues/460"},"comments":{"href":"https://api.github.com/repos/rook/rook/issues/460/comments"},"review_comments":{"href":"https://api.github.com/repos/rook/rook/pulls/460/comments"},"review_comment":{"href":"https://api.github.com/repos/rook/rook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rook/rook/pulls/460/commits"},"statuses":{"href":"https://api.github.com/repos/rook/rook/statuses/d3aec79e0078634ac9a99a9f4c3edeb00f1eb63d"}}}}
{"actor":{"display_login":"thephred"}}