{"action":"created","comment":{"url":"https://api.github.com/repos/projectatomic/skopeo/pulls/comments/62549503","id":62549503,"diff_hunk":"@@ -57,3 +58,30 @@ func parseImageDestination(c *cli.Context, name string) (types.ImageDestination,\n \t}\n \treturn nil, fmt.Errorf(\"Unrecognized image reference %s\", name)\n }\n+\n+func parseDockerImage(img, certPath string, tlsVerify bool) (types.Image, error) {\n+\ts, err := newDockerImageSource(img, certPath, tlsVerify)\n+\tif err != nil {\n+\t\treturn nil, err\n+\t}\n+\treturn &dockerImage{src: s}, nil\n+}","path":"utils.go","position":19,"original_position":19,"commit_id":"dbe1530ba713f00f3ccd9f4e733d3d0462bcec86","original_commit_id":"dbe1530ba713f00f3ccd9f4e733d3d0462bcec86","user":{"login":"mtrmac","id":7052838,"avatar_url":"https://avatars.githubusercontent.com/u/7052838?v=3","gravatar_id":"","url":"https://api.github.com/users/mtrmac","html_url":"https://github.com/mtrmac","followers_url":"https://api.github.com/users/mtrmac/followers","following_url":"https://api.github.com/users/mtrmac/following{/other_user}","gists_url":"https://api.github.com/users/mtrmac/gists{/gist_id}","starred_url":"https://api.github.com/users/mtrmac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtrmac/subscriptions","organizations_url":"https://api.github.com/users/mtrmac/orgs","repos_url":"https://api.github.com/users/mtrmac/repos","events_url":"https://api.github.com/users/mtrmac/events{/privacy}","received_events_url":"https://api.github.com/users/mtrmac/received_events","type":"User","site_admin":false},"body":"… and it has nothing to do with the CLI like the other functions in here.","created_at":"2016-05-09T18:35:23Z","updated_at":"2016-05-09T18:35:23Z","html_url":"https://github.com/projectatomic/skopeo/pull/49#discussion_r62549503","pull_request_url":"https://api.github.com/repos/projectatomic/skopeo/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/projectatomic/skopeo/pulls/comments/62549503"},"html":{"href":"https://github.com/projectatomic/skopeo/pull/49#discussion_r62549503"},"pull_request":{"href":"https://api.github.com/repos/projectatomic/skopeo/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/projectatomic/skopeo/pulls/49","id":69372849,"html_url":"https://github.com/projectatomic/skopeo/pull/49","diff_url":"https://github.com/projectatomic/skopeo/pull/49.diff","patch_url":"https://github.com/projectatomic/skopeo/pull/49.patch","issue_url":"https://api.github.com/repos/projectatomic/skopeo/issues/49","number":49,"state":"open","locked":false,"title":"*: split docker.go for future pkg creation","user":{"login":"runcom","id":849915,"avatar_url":"https://avatars.githubusercontent.com/u/849915?v=3","gravatar_id":"","url":"https://api.github.com/users/runcom","html_url":"https://github.com/runcom","followers_url":"https://api.github.com/users/runcom/followers","following_url":"https://api.github.com/users/runcom/following{/other_user}","gists_url":"https://api.github.com/users/runcom/gists{/gist_id}","starred_url":"https://api.github.com/users/runcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runcom/subscriptions","organizations_url":"https://api.github.com/users/runcom/orgs","repos_url":"https://api.github.com/users/runcom/repos","events_url":"https://api.github.com/users/runcom/events{/privacy}","received_events_url":"https://api.github.com/users/runcom/received_events","type":"User","site_admin":false},"body":"cc @mtrmac \r\n\r\nPTAL, this splits that ugly `docker.go` - I'll follow up with another PR to move to have a library for this whole docker push/pull but for now it's a lot better to have those files now\r\n\r\nSigned-off-by: Antonio Murdaca <runcom@redhat.com>","created_at":"2016-05-09T16:28:26Z","updated_at":"2016-05-09T18:35:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8dd490cfa5670636b492ee6ee07a021d34b473f0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/skopeo/pulls/49/commits","review_comments_url":"https://api.github.com/repos/projectatomic/skopeo/pulls/49/comments","review_comment_url":"https://api.github.com/repos/projectatomic/skopeo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/skopeo/issues/49/comments","statuses_url":"https://api.github.com/repos/projectatomic/skopeo/statuses/dbe1530ba713f00f3ccd9f4e733d3d0462bcec86","head":{"label":"projectatomic:split-docker","ref":"split-docker","sha":"dbe1530ba713f00f3ccd9f4e733d3d0462bcec86","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":53356367,"name":"skopeo","full_name":"projectatomic/skopeo","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/skopeo","description":"Work with remote images registries - retrieving information, images, signing content","fork":false,"url":"https://api.github.com/repos/projectatomic/skopeo","forks_url":"https://api.github.com/repos/projectatomic/skopeo/forks","keys_url":"https://api.github.com/repos/projectatomic/skopeo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/skopeo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/skopeo/teams","hooks_url":"https://api.github.com/repos/projectatomic/skopeo/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/skopeo/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/skopeo/events","assignees_url":"https://api.github.com/repos/projectatomic/skopeo/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/skopeo/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/skopeo/tags","blobs_url":"https://api.github.com/repos/projectatomic/skopeo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/skopeo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/skopeo/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/skopeo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/skopeo/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/skopeo/languages","stargazers_url":"https://api.github.com/repos/projectatomic/skopeo/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/skopeo/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/skopeo/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/skopeo/subscription","commits_url":"https://api.github.com/repos/projectatomic/skopeo/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/skopeo/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/skopeo/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/skopeo/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/skopeo/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/skopeo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/skopeo/merges","archive_url":"https://api.github.com/repos/projectatomic/skopeo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/skopeo/downloads","issues_url":"https://api.github.com/repos/projectatomic/skopeo/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/skopeo/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/skopeo/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/skopeo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/skopeo/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/skopeo/releases{/id}","deployments_url":"https://api.github.com/repos/projectatomic/skopeo/deployments","created_at":"2016-03-07T20:23:29Z","updated_at":"2016-05-09T18:25:28Z","pushed_at":"2016-05-09T17:00:50Z","git_url":"git://github.com/projectatomic/skopeo.git","ssh_url":"git@github.com:projectatomic/skopeo.git","clone_url":"https://github.com/projectatomic/skopeo.git","svn_url":"https://github.com/projectatomic/skopeo","homepage":"","size":1613,"stargazers_count":9,"watchers_count":9,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":10,"forks":5,"open_issues":10,"watchers":9,"default_branch":"master"}},"base":{"label":"projectatomic:master","ref":"master","sha":"9229d72a37d5ec588203ecaeaba1def3dfc6be2a","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":53356367,"name":"skopeo","full_name":"projectatomic/skopeo","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/skopeo","description":"Work with remote images registries - retrieving information, images, signing content","fork":false,"url":"https://api.github.com/repos/projectatomic/skopeo","forks_url":"https://api.github.com/repos/projectatomic/skopeo/forks","keys_url":"https://api.github.com/repos/projectatomic/skopeo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/skopeo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/skopeo/teams","hooks_url":"https://api.github.com/repos/projectatomic/skopeo/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/skopeo/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/skopeo/events","assignees_url":"https://api.github.com/repos/projectatomic/skopeo/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/skopeo/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/skopeo/tags","blobs_url":"https://api.github.com/repos/projectatomic/skopeo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/skopeo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/skopeo/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/skopeo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/skopeo/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/skopeo/languages","stargazers_url":"https://api.github.com/repos/projectatomic/skopeo/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/skopeo/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/skopeo/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/skopeo/subscription","commits_url":"https://api.github.com/repos/projectatomic/skopeo/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/skopeo/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/skopeo/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/skopeo/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/skopeo/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/skopeo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/skopeo/merges","archive_url":"https://api.github.com/repos/projectatomic/skopeo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/skopeo/downloads","issues_url":"https://api.github.com/repos/projectatomic/skopeo/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/skopeo/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/skopeo/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/skopeo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/skopeo/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/skopeo/releases{/id}","deployments_url":"https://api.github.com/repos/projectatomic/skopeo/deployments","created_at":"2016-03-07T20:23:29Z","updated_at":"2016-05-09T18:25:28Z","pushed_at":"2016-05-09T17:00:50Z","git_url":"git://github.com/projectatomic/skopeo.git","ssh_url":"git@github.com:projectatomic/skopeo.git","clone_url":"https://github.com/projectatomic/skopeo.git","svn_url":"https://github.com/projectatomic/skopeo","homepage":"","size":1613,"stargazers_count":9,"watchers_count":9,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":10,"forks":5,"open_issues":10,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/skopeo/pulls/49"},"html":{"href":"https://github.com/projectatomic/skopeo/pull/49"},"issue":{"href":"https://api.github.com/repos/projectatomic/skopeo/issues/49"},"comments":{"href":"https://api.github.com/repos/projectatomic/skopeo/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/skopeo/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/skopeo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/skopeo/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/skopeo/statuses/dbe1530ba713f00f3ccd9f4e733d3d0462bcec86"}}}}