{"action":"created","comment":{"url":"https://api.github.com/repos/docker/distribution/pulls/comments/36114248","id":36114248,"diff_hunk":"@@ -74,6 +75,7 @@ func (factory *s3DriverFactory) Create(parameters map[string]interface{}) (stora\n type driver struct {\n \tS3            *s3.S3\n \tBucket        *s3.Bucket\n+\tHead          bool","path":"registry/storage/driver/s3/s3.go","position":12,"original_position":12,"commit_id":"1b801d802ef555597f3944ac3c4894812a534033","original_commit_id":"1b801d802ef555597f3944ac3c4894812a534033","user":{"login":"stevvooe","id":120601,"avatar_url":"https://avatars.githubusercontent.com/u/120601?v=3","gravatar_id":"","url":"https://api.github.com/users/stevvooe","html_url":"https://github.com/stevvooe","followers_url":"https://api.github.com/users/stevvooe/followers","following_url":"https://api.github.com/users/stevvooe/following{/other_user}","gists_url":"https://api.github.com/users/stevvooe/gists{/gist_id}","starred_url":"https://api.github.com/users/stevvooe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevvooe/subscriptions","organizations_url":"https://api.github.com/users/stevvooe/orgs","repos_url":"https://api.github.com/users/stevvooe/repos","events_url":"https://api.github.com/users/stevvooe/events{/privacy}","received_events_url":"https://api.github.com/users/stevvooe/received_events","type":"User","site_admin":false},"body":"`SupportsHead` or `HeadSupported`.","created_at":"2015-08-03T18:21:48Z","updated_at":"2015-08-03T18:21:48Z","html_url":"https://github.com/docker/distribution/pull/808#discussion_r36114248","pull_request_url":"https://api.github.com/repos/docker/distribution/pulls/808","_links":{"self":{"href":"https://api.github.com/repos/docker/distribution/pulls/comments/36114248"},"html":{"href":"https://github.com/docker/distribution/pull/808#discussion_r36114248"},"pull_request":{"href":"https://api.github.com/repos/docker/distribution/pulls/808"}}},"pull_request":{"url":"https://api.github.com/repos/docker/distribution/pulls/808","id":41411160,"html_url":"https://github.com/docker/distribution/pull/808","diff_url":"https://github.com/docker/distribution/pull/808.diff","patch_url":"https://github.com/docker/distribution/pull/808.patch","issue_url":"https://api.github.com/repos/docker/distribution/issues/808","number":808,"state":"open","locked":false,"title":"Added generic S3 compatible APIs support","user":{"login":"lorieri","id":1039009,"avatar_url":"https://avatars.githubusercontent.com/u/1039009?v=3","gravatar_id":"","url":"https://api.github.com/users/lorieri","html_url":"https://github.com/lorieri","followers_url":"https://api.github.com/users/lorieri/followers","following_url":"https://api.github.com/users/lorieri/following{/other_user}","gists_url":"https://api.github.com/users/lorieri/gists{/gist_id}","starred_url":"https://api.github.com/users/lorieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorieri/subscriptions","organizations_url":"https://api.github.com/users/lorieri/orgs","repos_url":"https://api.github.com/users/lorieri/repos","events_url":"https://api.github.com/users/lorieri/events{/privacy}","received_events_url":"https://api.github.com/users/lorieri/received_events","type":"User","site_admin":false},"body":"Support for Ceph Rados Gateway (not librados) and perhaps Riak CS.\r\n\r\nExtra configurations:\r\n\r\n* regionendpoint: api url\r\n* regionsupportshead: old RadosGw versions does not support HEAD for object info\r\n\r\nRequirements:\r\n\r\n* region must be set as **generic**\r\n\r\nHow I tested it:\r\n\r\n```\r\ndocker run -d -p 5000:5000 -e \"REGISTRY_STORAGE=s3\" \\\r\n-e \"REGISTRY_STORAGE_S3_REGION=generic\" \\\r\n-e \"REGISTRY_STORAGE_S3_REGIONENDPOINT=http://myradosgw.mydomain.com\" \\\r\n-e \"REGISTRY_STORAGE_S3_BUCKET=registry\" \\\r\n-e \"REGISTRY_STORAGE_S3_ACCESSKEY=XXXXXXX\" \\\r\n-e \"REGISTRY_STORAGE_S3_SECRETKEY=XXXXXXX\" \\\r\n-e \"REGISTRY_STORAGE_S3_SECURE=false\" \\\r\n-e \"REGISTRY_STORAGE_S3_ENCRYPT=false\" \\\r\n-e \"REGISTRY_STORAGE_S3_REGIONSUPPORTSHEAD=false\" \\\r\ntest-registry\r\n```","created_at":"2015-08-02T02:16:14Z","updated_at":"2015-08-03T18:21:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2254d8d9bcd17c0064110da1868cdee95504b97","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/distribution/pulls/808/commits","review_comments_url":"https://api.github.com/repos/docker/distribution/pulls/808/comments","review_comment_url":"https://api.github.com/repos/docker/distribution/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/distribution/issues/808/comments","statuses_url":"https://api.github.com/repos/docker/distribution/statuses/1b801d802ef555597f3944ac3c4894812a534033","head":{"label":"lorieri:radosgw","ref":"radosgw","sha":"1b801d802ef555597f3944ac3c4894812a534033","user":{"login":"lorieri","id":1039009,"avatar_url":"https://avatars.githubusercontent.com/u/1039009?v=3","gravatar_id":"","url":"https://api.github.com/users/lorieri","html_url":"https://github.com/lorieri","followers_url":"https://api.github.com/users/lorieri/followers","following_url":"https://api.github.com/users/lorieri/following{/other_user}","gists_url":"https://api.github.com/users/lorieri/gists{/gist_id}","starred_url":"https://api.github.com/users/lorieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorieri/subscriptions","organizations_url":"https://api.github.com/users/lorieri/orgs","repos_url":"https://api.github.com/users/lorieri/repos","events_url":"https://api.github.com/users/lorieri/events{/privacy}","received_events_url":"https://api.github.com/users/lorieri/received_events","type":"User","site_admin":false},"repo":{"id":40057056,"name":"distribution","full_name":"lorieri/distribution","owner":{"login":"lorieri","id":1039009,"avatar_url":"https://avatars.githubusercontent.com/u/1039009?v=3","gravatar_id":"","url":"https://api.github.com/users/lorieri","html_url":"https://github.com/lorieri","followers_url":"https://api.github.com/users/lorieri/followers","following_url":"https://api.github.com/users/lorieri/following{/other_user}","gists_url":"https://api.github.com/users/lorieri/gists{/gist_id}","starred_url":"https://api.github.com/users/lorieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorieri/subscriptions","organizations_url":"https://api.github.com/users/lorieri/orgs","repos_url":"https://api.github.com/users/lorieri/repos","events_url":"https://api.github.com/users/lorieri/events{/privacy}","received_events_url":"https://api.github.com/users/lorieri/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lorieri/distribution","description":"The Docker toolset to pack, ship, store, and deliver content","fork":true,"url":"https://api.github.com/repos/lorieri/distribution","forks_url":"https://api.github.com/repos/lorieri/distribution/forks","keys_url":"https://api.github.com/repos/lorieri/distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lorieri/distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lorieri/distribution/teams","hooks_url":"https://api.github.com/repos/lorieri/distribution/hooks","issue_events_url":"https://api.github.com/repos/lorieri/distribution/issues/events{/number}","events_url":"https://api.github.com/repos/lorieri/distribution/events","assignees_url":"https://api.github.com/repos/lorieri/distribution/assignees{/user}","branches_url":"https://api.github.com/repos/lorieri/distribution/branches{/branch}","tags_url":"https://api.github.com/repos/lorieri/distribution/tags","blobs_url":"https://api.github.com/repos/lorieri/distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lorieri/distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lorieri/distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/lorieri/distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lorieri/distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/lorieri/distribution/languages","stargazers_url":"https://api.github.com/repos/lorieri/distribution/stargazers","contributors_url":"https://api.github.com/repos/lorieri/distribution/contributors","subscribers_url":"https://api.github.com/repos/lorieri/distribution/subscribers","subscription_url":"https://api.github.com/repos/lorieri/distribution/subscription","commits_url":"https://api.github.com/repos/lorieri/distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/lorieri/distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/lorieri/distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/lorieri/distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/lorieri/distribution/contents/{+path}","compare_url":"https://api.github.com/repos/lorieri/distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lorieri/distribution/merges","archive_url":"https://api.github.com/repos/lorieri/distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lorieri/distribution/downloads","issues_url":"https://api.github.com/repos/lorieri/distribution/issues{/number}","pulls_url":"https://api.github.com/repos/lorieri/distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/lorieri/distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/lorieri/distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lorieri/distribution/labels{/name}","releases_url":"https://api.github.com/repos/lorieri/distribution/releases{/id}","created_at":"2015-08-01T19:02:39Z","updated_at":"2015-08-01T19:02:40Z","pushed_at":"2015-08-02T02:51:14Z","git_url":"git://github.com/lorieri/distribution.git","ssh_url":"git@github.com:lorieri/distribution.git","clone_url":"https://github.com/lorieri/distribution.git","svn_url":"https://github.com/lorieri/distribution","homepage":null,"size":12322,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"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":"docker:master","ref":"master","sha":"0b3b55e723b5362f68c449a37ac8cff1327c1478","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":28366058,"name":"distribution","full_name":"docker/distribution","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/distribution","description":"The Docker toolset to pack, ship, store, and deliver content","fork":false,"url":"https://api.github.com/repos/docker/distribution","forks_url":"https://api.github.com/repos/docker/distribution/forks","keys_url":"https://api.github.com/repos/docker/distribution/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/distribution/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/distribution/teams","hooks_url":"https://api.github.com/repos/docker/distribution/hooks","issue_events_url":"https://api.github.com/repos/docker/distribution/issues/events{/number}","events_url":"https://api.github.com/repos/docker/distribution/events","assignees_url":"https://api.github.com/repos/docker/distribution/assignees{/user}","branches_url":"https://api.github.com/repos/docker/distribution/branches{/branch}","tags_url":"https://api.github.com/repos/docker/distribution/tags","blobs_url":"https://api.github.com/repos/docker/distribution/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/distribution/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/distribution/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/distribution/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/distribution/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/distribution/languages","stargazers_url":"https://api.github.com/repos/docker/distribution/stargazers","contributors_url":"https://api.github.com/repos/docker/distribution/contributors","subscribers_url":"https://api.github.com/repos/docker/distribution/subscribers","subscription_url":"https://api.github.com/repos/docker/distribution/subscription","commits_url":"https://api.github.com/repos/docker/distribution/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/distribution/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/distribution/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/distribution/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/distribution/contents/{+path}","compare_url":"https://api.github.com/repos/docker/distribution/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/distribution/merges","archive_url":"https://api.github.com/repos/docker/distribution/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/distribution/downloads","issues_url":"https://api.github.com/repos/docker/distribution/issues{/number}","pulls_url":"https://api.github.com/repos/docker/distribution/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/distribution/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/distribution/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/distribution/labels{/name}","releases_url":"https://api.github.com/repos/docker/distribution/releases{/id}","created_at":"2014-12-22T23:49:26Z","updated_at":"2015-08-03T15:43:16Z","pushed_at":"2015-08-03T17:09:14Z","git_url":"git://github.com/docker/distribution.git","ssh_url":"git@github.com:docker/distribution.git","clone_url":"https://github.com/docker/distribution.git","svn_url":"https://github.com/docker/distribution","homepage":null,"size":12322,"stargazers_count":810,"watchers_count":810,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":310,"mirror_url":null,"open_issues_count":114,"forks":310,"open_issues":114,"watchers":810,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/distribution/pulls/808"},"html":{"href":"https://github.com/docker/distribution/pull/808"},"issue":{"href":"https://api.github.com/repos/docker/distribution/issues/808"},"comments":{"href":"https://api.github.com/repos/docker/distribution/issues/808/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/distribution/pulls/808/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/distribution/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/distribution/pulls/808/commits"},"statuses":{"href":"https://api.github.com/repos/docker/distribution/statuses/1b801d802ef555597f3944ac3c4894812a534033"}}}}