{"action":"created","comment":{"url":"https://api.github.com/repos/pravisankar/distribution/pulls/comments/26222193","id":26222193,"diff_hunk":"@@ -0,0 +1,148 @@\n+package openshift\n+\n+import (\n+\t\"crypto/tls\"\n+\t\"encoding/json\"\n+\t\"fmt\"\n+\t\"io/ioutil\"\n+\t\"net/http\"\n+\t\"strings\"\n+\n+\tctxu \"github.com/docker/distribution/context\"\n+\t\"github.com/docker/distribution/registry/auth\"\n+\t\"golang.org/x/net/context\"\n+\n+\tauthorizationapi \"github.com/openshift/origin/pkg/authorization/api\"\n+)\n+\n+type accessController struct {\n+\topenshiftAddr       string\n+\topenshiftApiVersion string\n+\tclient              *http.Client\n+}\n+\n+type openshiftToken struct {\n+\tnamespace   string\n+\timageName   string","path":"registry/auth/openshift/accessController.go","position":26,"original_position":26,"commit_id":"7068709c3d2eafdfaa4eeddb201efa5b096d08ef","original_commit_id":"7068709c3d2eafdfaa4eeddb201efa5b096d08ef","user":{"login":"ncdc","id":354,"avatar_url":"https://avatars.githubusercontent.com/u/354?v=3","gravatar_id":"","url":"https://api.github.com/users/ncdc","html_url":"https://github.com/ncdc","followers_url":"https://api.github.com/users/ncdc/followers","following_url":"https://api.github.com/users/ncdc/following{/other_user}","gists_url":"https://api.github.com/users/ncdc/gists{/gist_id}","starred_url":"https://api.github.com/users/ncdc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncdc/subscriptions","organizations_url":"https://api.github.com/users/ncdc/orgs","repos_url":"https://api.github.com/users/ncdc/repos","events_url":"https://api.github.com/users/ncdc/events{/privacy}","received_events_url":"https://api.github.com/users/ncdc/received_events","type":"User","site_admin":false},"body":"this is imageRepo, not imageName","created_at":"2015-03-11T15:28:01Z","updated_at":"2015-03-11T15:28:01Z","html_url":"https://github.com/pravisankar/distribution/pull/1#discussion_r26222193","pull_request_url":"https://api.github.com/repos/pravisankar/distribution/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/pravisankar/distribution/pulls/comments/26222193"},"html":{"href":"https://github.com/pravisankar/distribution/pull/1#discussion_r26222193"},"pull_request":{"href":"https://api.github.com/repos/pravisankar/distribution/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/pravisankar/distribution/pulls/1","id":30919085,"html_url":"https://github.com/pravisankar/distribution/pull/1","diff_url":"https://github.com/pravisankar/distribution/pull/1.diff","patch_url":"https://github.com/pravisankar/distribution/pull/1.patch","issue_url":"https://api.github.com/repos/pravisankar/distribution/issues/1","number":1,"state":"open","locked":false,"title":"WIP: OpenShift auth handler for V2 registry","user":{"login":"pravisankar","id":1258630,"avatar_url":"https://avatars.githubusercontent.com/u/1258630?v=3","gravatar_id":"","url":"https://api.github.com/users/pravisankar","html_url":"https://github.com/pravisankar","followers_url":"https://api.github.com/users/pravisankar/followers","following_url":"https://api.github.com/users/pravisankar/following{/other_user}","gists_url":"https://api.github.com/users/pravisankar/gists{/gist_id}","starred_url":"https://api.github.com/users/pravisankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravisankar/subscriptions","organizations_url":"https://api.github.com/users/pravisankar/orgs","repos_url":"https://api.github.com/users/pravisankar/repos","events_url":"https://api.github.com/users/pravisankar/events{/privacy}","received_events_url":"https://api.github.com/users/pravisankar/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-11T06:48:04Z","updated_at":"2015-03-11T15:28:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b0c53199bcde57bdab6a4ccca853256b5c09699","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pravisankar/distribution/pulls/1/commits","review_comments_url":"https://api.github.com/repos/pravisankar/distribution/pulls/1/comments","review_comment_url":"https://api.github.com/repos/pravisankar/distribution/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pravisankar/distribution/issues/1/comments","statuses_url":"https://api.github.com/repos/pravisankar/distribution/statuses/7068709c3d2eafdfaa4eeddb201efa5b096d08ef","head":{"label":"pravisankar:add-openshift-auth","ref":"add-openshift-auth","sha":"7068709c3d2eafdfaa4eeddb201efa5b096d08ef","user":{"login":"pravisankar","id":1258630,"avatar_url":"https://avatars.githubusercontent.com/u/1258630?v=3","gravatar_id":"","url":"https://api.github.com/users/pravisankar","html_url":"https://github.com/pravisankar","followers_url":"https://api.github.com/users/pravisankar/followers","following_url":"https://api.github.com/users/pravisankar/following{/other_user}","gists_url":"https://api.github.com/users/pravisankar/gists{/gist_id}","starred_url":"https://api.github.com/users/pravisankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravisankar/subscriptions","organizations_url":"https://api.github.com/users/pravisankar/orgs","repos_url":"https://api.github.com/users/pravisankar/repos","events_url":"https://api.github.com/users/pravisankar/events{/privacy}","received_events_url":"https://api.github.com/users/pravisankar/received_events","type":"User","site_admin":false},"repo":{"id":31689391,"name":"distribution","full_name":"pravisankar/distribution","owner":{"login":"pravisankar","id":1258630,"avatar_url":"https://avatars.githubusercontent.com/u/1258630?v=3","gravatar_id":"","url":"https://api.github.com/users/pravisankar","html_url":"https://github.com/pravisankar","followers_url":"https://api.github.com/users/pravisankar/followers","following_url":"https://api.github.com/users/pravisankar/following{/other_user}","gists_url":"https://api.github.com/users/pravisankar/gists{/gist_id}","starred_url":"https://api.github.com/users/pravisankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravisankar/subscriptions","organizations_url":"https://api.github.com/users/pravisankar/orgs","repos_url":"https://api.github.com/users/pravisankar/repos","events_url":"https://api.github.com/users/pravisankar/events{/privacy}","received_events_url":"https://api.github.com/users/pravisankar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pravisankar/distribution","description":"The Docker toolset to pack, ship, store, and deliver content","fork":true,"url":"https://api.github.com/repos/pravisankar/distribution","forks_url":"https://api.github.com/repos/pravisankar/distribution/forks","keys_url":"https://api.github.com/repos/pravisankar/distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pravisankar/distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pravisankar/distribution/teams","hooks_url":"https://api.github.com/repos/pravisankar/distribution/hooks","issue_events_url":"https://api.github.com/repos/pravisankar/distribution/issues/events{/number}","events_url":"https://api.github.com/repos/pravisankar/distribution/events","assignees_url":"https://api.github.com/repos/pravisankar/distribution/assignees{/user}","branches_url":"https://api.github.com/repos/pravisankar/distribution/branches{/branch}","tags_url":"https://api.github.com/repos/pravisankar/distribution/tags","blobs_url":"https://api.github.com/repos/pravisankar/distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pravisankar/distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pravisankar/distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/pravisankar/distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pravisankar/distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/pravisankar/distribution/languages","stargazers_url":"https://api.github.com/repos/pravisankar/distribution/stargazers","contributors_url":"https://api.github.com/repos/pravisankar/distribution/contributors","subscribers_url":"https://api.github.com/repos/pravisankar/distribution/subscribers","subscription_url":"https://api.github.com/repos/pravisankar/distribution/subscription","commits_url":"https://api.github.com/repos/pravisankar/distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/pravisankar/distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/pravisankar/distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/pravisankar/distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/pravisankar/distribution/contents/{+path}","compare_url":"https://api.github.com/repos/pravisankar/distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pravisankar/distribution/merges","archive_url":"https://api.github.com/repos/pravisankar/distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pravisankar/distribution/downloads","issues_url":"https://api.github.com/repos/pravisankar/distribution/issues{/number}","pulls_url":"https://api.github.com/repos/pravisankar/distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/pravisankar/distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/pravisankar/distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pravisankar/distribution/labels{/name}","releases_url":"https://api.github.com/repos/pravisankar/distribution/releases{/id}","created_at":"2015-03-05T01:28:14Z","updated_at":"2015-03-11T06:47:24Z","pushed_at":"2015-03-11T07:03:08Z","git_url":"git://github.com/pravisankar/distribution.git","ssh_url":"git@github.com:pravisankar/distribution.git","clone_url":"https://github.com/pravisankar/distribution.git","svn_url":"https://github.com/pravisankar/distribution","homepage":null,"size":1474,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"pravisankar:master","ref":"master","sha":"fb81ecb0fa0f08f5b22d1985e689ea9184aa35c4","user":{"login":"pravisankar","id":1258630,"avatar_url":"https://avatars.githubusercontent.com/u/1258630?v=3","gravatar_id":"","url":"https://api.github.com/users/pravisankar","html_url":"https://github.com/pravisankar","followers_url":"https://api.github.com/users/pravisankar/followers","following_url":"https://api.github.com/users/pravisankar/following{/other_user}","gists_url":"https://api.github.com/users/pravisankar/gists{/gist_id}","starred_url":"https://api.github.com/users/pravisankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravisankar/subscriptions","organizations_url":"https://api.github.com/users/pravisankar/orgs","repos_url":"https://api.github.com/users/pravisankar/repos","events_url":"https://api.github.com/users/pravisankar/events{/privacy}","received_events_url":"https://api.github.com/users/pravisankar/received_events","type":"User","site_admin":false},"repo":{"id":31689391,"name":"distribution","full_name":"pravisankar/distribution","owner":{"login":"pravisankar","id":1258630,"avatar_url":"https://avatars.githubusercontent.com/u/1258630?v=3","gravatar_id":"","url":"https://api.github.com/users/pravisankar","html_url":"https://github.com/pravisankar","followers_url":"https://api.github.com/users/pravisankar/followers","following_url":"https://api.github.com/users/pravisankar/following{/other_user}","gists_url":"https://api.github.com/users/pravisankar/gists{/gist_id}","starred_url":"https://api.github.com/users/pravisankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravisankar/subscriptions","organizations_url":"https://api.github.com/users/pravisankar/orgs","repos_url":"https://api.github.com/users/pravisankar/repos","events_url":"https://api.github.com/users/pravisankar/events{/privacy}","received_events_url":"https://api.github.com/users/pravisankar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pravisankar/distribution","description":"The Docker toolset to pack, ship, store, and deliver content","fork":true,"url":"https://api.github.com/repos/pravisankar/distribution","forks_url":"https://api.github.com/repos/pravisankar/distribution/forks","keys_url":"https://api.github.com/repos/pravisankar/distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pravisankar/distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pravisankar/distribution/teams","hooks_url":"https://api.github.com/repos/pravisankar/distribution/hooks","issue_events_url":"https://api.github.com/repos/pravisankar/distribution/issues/events{/number}","events_url":"https://api.github.com/repos/pravisankar/distribution/events","assignees_url":"https://api.github.com/repos/pravisankar/distribution/assignees{/user}","branches_url":"https://api.github.com/repos/pravisankar/distribution/branches{/branch}","tags_url":"https://api.github.com/repos/pravisankar/distribution/tags","blobs_url":"https://api.github.com/repos/pravisankar/distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pravisankar/distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pravisankar/distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/pravisankar/distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pravisankar/distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/pravisankar/distribution/languages","stargazers_url":"https://api.github.com/repos/pravisankar/distribution/stargazers","contributors_url":"https://api.github.com/repos/pravisankar/distribution/contributors","subscribers_url":"https://api.github.com/repos/pravisankar/distribution/subscribers","subscription_url":"https://api.github.com/repos/pravisankar/distribution/subscription","commits_url":"https://api.github.com/repos/pravisankar/distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/pravisankar/distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/pravisankar/distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/pravisankar/distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/pravisankar/distribution/contents/{+path}","compare_url":"https://api.github.com/repos/pravisankar/distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pravisankar/distribution/merges","archive_url":"https://api.github.com/repos/pravisankar/distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pravisankar/distribution/downloads","issues_url":"https://api.github.com/repos/pravisankar/distribution/issues{/number}","pulls_url":"https://api.github.com/repos/pravisankar/distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/pravisankar/distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/pravisankar/distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pravisankar/distribution/labels{/name}","releases_url":"https://api.github.com/repos/pravisankar/distribution/releases{/id}","created_at":"2015-03-05T01:28:14Z","updated_at":"2015-03-11T06:47:24Z","pushed_at":"2015-03-11T07:03:08Z","git_url":"git://github.com/pravisankar/distribution.git","ssh_url":"git@github.com:pravisankar/distribution.git","clone_url":"https://github.com/pravisankar/distribution.git","svn_url":"https://github.com/pravisankar/distribution","homepage":null,"size":1474,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pravisankar/distribution/pulls/1"},"html":{"href":"https://github.com/pravisankar/distribution/pull/1"},"issue":{"href":"https://api.github.com/repos/pravisankar/distribution/issues/1"},"comments":{"href":"https://api.github.com/repos/pravisankar/distribution/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/pravisankar/distribution/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/pravisankar/distribution/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pravisankar/distribution/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/pravisankar/distribution/statuses/7068709c3d2eafdfaa4eeddb201efa5b096d08ef"}}}}