{"action":"created","comment":{"url":"https://api.github.com/repos/vmware/docker-machine/pulls/comments/56731335","id":56731335,"diff_hunk":"@@ -9,14 +9,36 @@ package photoncontroller\n \n import (\n \t\"fmt\"\n+\t\"time\"\n+\t\"net\"\n \n \t\"github.com/docker/machine/libmachine/drivers\"\n \t\"github.com/docker/machine/libmachine/mcnflag\"\n \t\"github.com/docker/machine/libmachine/state\"\n+\t\"github.com/vmware/photon-controller-go-sdk/photon\"\n+)\n+\n+const (\n+\tdriverName = \"photoncontroller\"\n+\tdefaultEndpoint = \"http://10.118.97.200:9000\"\n+\tdefaultAuthEndpoint = \"10.146.64.236\"\n+\tdefaultSSHUser = \"root\"\n+\tdefaultSSHKeyPath = \"~/.ssh/id_rsa\"","path":"drivers/photoncontroller/photoncontroller.go","position":18,"original_position":18,"commit_id":"c3aab58119b0ce61639b1783db6925d65b2e5963","original_commit_id":"c3aab58119b0ce61639b1783db6925d65b2e5963","user":{"login":"faijaz","id":16199319,"avatar_url":"https://avatars.githubusercontent.com/u/16199319?v=3","gravatar_id":"","url":"https://api.github.com/users/faijaz","html_url":"https://github.com/faijaz","followers_url":"https://api.github.com/users/faijaz/followers","following_url":"https://api.github.com/users/faijaz/following{/other_user}","gists_url":"https://api.github.com/users/faijaz/gists{/gist_id}","starred_url":"https://api.github.com/users/faijaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faijaz/subscriptions","organizations_url":"https://api.github.com/users/faijaz/orgs","repos_url":"https://api.github.com/users/faijaz/repos","events_url":"https://api.github.com/users/faijaz/events{/privacy}","received_events_url":"https://api.github.com/users/faijaz/received_events","type":"User","site_admin":false},"body":"Not actually. But I didn't want to make it specific to my user. I have changed it now to some generic path. ","created_at":"2016-03-18T22:31:06Z","updated_at":"2016-03-18T22:31:06Z","html_url":"https://github.com/vmware/docker-machine/pull/3#discussion_r56731335","pull_request_url":"https://api.github.com/repos/vmware/docker-machine/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/vmware/docker-machine/pulls/comments/56731335"},"html":{"href":"https://github.com/vmware/docker-machine/pull/3#discussion_r56731335"},"pull_request":{"href":"https://api.github.com/repos/vmware/docker-machine/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/vmware/docker-machine/pulls/3","id":63135916,"html_url":"https://github.com/vmware/docker-machine/pull/3","diff_url":"https://github.com/vmware/docker-machine/pull/3.diff","patch_url":"https://github.com/vmware/docker-machine/pull/3.patch","issue_url":"https://api.github.com/repos/vmware/docker-machine/issues/3","number":3,"state":"open","locked":false,"title":"Photon Controller Driver v1.0: Added functionality for create docker-machine with ssh enabled.","user":{"login":"faijaz","id":16199319,"avatar_url":"https://avatars.githubusercontent.com/u/16199319?v=3","gravatar_id":"","url":"https://api.github.com/users/faijaz","html_url":"https://github.com/faijaz","followers_url":"https://api.github.com/users/faijaz/followers","following_url":"https://api.github.com/users/faijaz/following{/other_user}","gists_url":"https://api.github.com/users/faijaz/gists{/gist_id}","starred_url":"https://api.github.com/users/faijaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faijaz/subscriptions","organizations_url":"https://api.github.com/users/faijaz/orgs","repos_url":"https://api.github.com/users/faijaz/repos","events_url":"https://api.github.com/users/faijaz/events{/privacy}","received_events_url":"https://api.github.com/users/faijaz/received_events","type":"User","site_admin":false},"body":"1) Driver create functionality is implemented for Docker-Machine to run on Photon Controller.\r\n2) Added Photon OS provisioner to make Photon OS as one of the options compatible for docker.","created_at":"2016-03-16T21:06:32Z","updated_at":"2016-03-18T22:31:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a196dfe170a66bd4d7d12f6044cf6402969be40d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vmware/docker-machine/pulls/3/commits","review_comments_url":"https://api.github.com/repos/vmware/docker-machine/pulls/3/comments","review_comment_url":"https://api.github.com/repos/vmware/docker-machine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vmware/docker-machine/issues/3/comments","statuses_url":"https://api.github.com/repos/vmware/docker-machine/statuses/c3aab58119b0ce61639b1783db6925d65b2e5963","head":{"label":"faijaz:master","ref":"master","sha":"c3aab58119b0ce61639b1783db6925d65b2e5963","user":{"login":"faijaz","id":16199319,"avatar_url":"https://avatars.githubusercontent.com/u/16199319?v=3","gravatar_id":"","url":"https://api.github.com/users/faijaz","html_url":"https://github.com/faijaz","followers_url":"https://api.github.com/users/faijaz/followers","following_url":"https://api.github.com/users/faijaz/following{/other_user}","gists_url":"https://api.github.com/users/faijaz/gists{/gist_id}","starred_url":"https://api.github.com/users/faijaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faijaz/subscriptions","organizations_url":"https://api.github.com/users/faijaz/orgs","repos_url":"https://api.github.com/users/faijaz/repos","events_url":"https://api.github.com/users/faijaz/events{/privacy}","received_events_url":"https://api.github.com/users/faijaz/received_events","type":"User","site_admin":false},"repo":{"id":52562586,"name":"docker-machine","full_name":"faijaz/docker-machine","owner":{"login":"faijaz","id":16199319,"avatar_url":"https://avatars.githubusercontent.com/u/16199319?v=3","gravatar_id":"","url":"https://api.github.com/users/faijaz","html_url":"https://github.com/faijaz","followers_url":"https://api.github.com/users/faijaz/followers","following_url":"https://api.github.com/users/faijaz/following{/other_user}","gists_url":"https://api.github.com/users/faijaz/gists{/gist_id}","starred_url":"https://api.github.com/users/faijaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faijaz/subscriptions","organizations_url":"https://api.github.com/users/faijaz/orgs","repos_url":"https://api.github.com/users/faijaz/repos","events_url":"https://api.github.com/users/faijaz/events{/privacy}","received_events_url":"https://api.github.com/users/faijaz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/faijaz/docker-machine","description":"Machine management for a container-centric world","fork":true,"url":"https://api.github.com/repos/faijaz/docker-machine","forks_url":"https://api.github.com/repos/faijaz/docker-machine/forks","keys_url":"https://api.github.com/repos/faijaz/docker-machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/faijaz/docker-machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/faijaz/docker-machine/teams","hooks_url":"https://api.github.com/repos/faijaz/docker-machine/hooks","issue_events_url":"https://api.github.com/repos/faijaz/docker-machine/issues/events{/number}","events_url":"https://api.github.com/repos/faijaz/docker-machine/events","assignees_url":"https://api.github.com/repos/faijaz/docker-machine/assignees{/user}","branches_url":"https://api.github.com/repos/faijaz/docker-machine/branches{/branch}","tags_url":"https://api.github.com/repos/faijaz/docker-machine/tags","blobs_url":"https://api.github.com/repos/faijaz/docker-machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/faijaz/docker-machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/faijaz/docker-machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/faijaz/docker-machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/faijaz/docker-machine/statuses/{sha}","languages_url":"https://api.github.com/repos/faijaz/docker-machine/languages","stargazers_url":"https://api.github.com/repos/faijaz/docker-machine/stargazers","contributors_url":"https://api.github.com/repos/faijaz/docker-machine/contributors","subscribers_url":"https://api.github.com/repos/faijaz/docker-machine/subscribers","subscription_url":"https://api.github.com/repos/faijaz/docker-machine/subscription","commits_url":"https://api.github.com/repos/faijaz/docker-machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/faijaz/docker-machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/faijaz/docker-machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/faijaz/docker-machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/faijaz/docker-machine/contents/{+path}","compare_url":"https://api.github.com/repos/faijaz/docker-machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/faijaz/docker-machine/merges","archive_url":"https://api.github.com/repos/faijaz/docker-machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/faijaz/docker-machine/downloads","issues_url":"https://api.github.com/repos/faijaz/docker-machine/issues{/number}","pulls_url":"https://api.github.com/repos/faijaz/docker-machine/pulls{/number}","milestones_url":"https://api.github.com/repos/faijaz/docker-machine/milestones{/number}","notifications_url":"https://api.github.com/repos/faijaz/docker-machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/faijaz/docker-machine/labels{/name}","releases_url":"https://api.github.com/repos/faijaz/docker-machine/releases{/id}","deployments_url":"https://api.github.com/repos/faijaz/docker-machine/deployments","created_at":"2016-02-25T22:52:23Z","updated_at":"2016-03-06T08:59:53Z","pushed_at":"2016-03-16T00:41:21Z","git_url":"git://github.com/faijaz/docker-machine.git","ssh_url":"git@github.com:faijaz/docker-machine.git","clone_url":"https://github.com/faijaz/docker-machine.git","svn_url":"https://github.com/faijaz/docker-machine","homepage":"https://docs.docker.com/machine/","size":14839,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"vmware:master","ref":"master","sha":"b090f30f28bd4b32536dd6a715b8d657e3527c62","user":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"repo":{"id":52486030,"name":"docker-machine","full_name":"vmware/docker-machine","owner":{"login":"vmware","id":473334,"avatar_url":"https://avatars.githubusercontent.com/u/473334?v=3","gravatar_id":"","url":"https://api.github.com/users/vmware","html_url":"https://github.com/vmware","followers_url":"https://api.github.com/users/vmware/followers","following_url":"https://api.github.com/users/vmware/following{/other_user}","gists_url":"https://api.github.com/users/vmware/gists{/gist_id}","starred_url":"https://api.github.com/users/vmware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmware/subscriptions","organizations_url":"https://api.github.com/users/vmware/orgs","repos_url":"https://api.github.com/users/vmware/repos","events_url":"https://api.github.com/users/vmware/events{/privacy}","received_events_url":"https://api.github.com/users/vmware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vmware/docker-machine","description":"Machine management for a container-centric world","fork":true,"url":"https://api.github.com/repos/vmware/docker-machine","forks_url":"https://api.github.com/repos/vmware/docker-machine/forks","keys_url":"https://api.github.com/repos/vmware/docker-machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vmware/docker-machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vmware/docker-machine/teams","hooks_url":"https://api.github.com/repos/vmware/docker-machine/hooks","issue_events_url":"https://api.github.com/repos/vmware/docker-machine/issues/events{/number}","events_url":"https://api.github.com/repos/vmware/docker-machine/events","assignees_url":"https://api.github.com/repos/vmware/docker-machine/assignees{/user}","branches_url":"https://api.github.com/repos/vmware/docker-machine/branches{/branch}","tags_url":"https://api.github.com/repos/vmware/docker-machine/tags","blobs_url":"https://api.github.com/repos/vmware/docker-machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vmware/docker-machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vmware/docker-machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/vmware/docker-machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vmware/docker-machine/statuses/{sha}","languages_url":"https://api.github.com/repos/vmware/docker-machine/languages","stargazers_url":"https://api.github.com/repos/vmware/docker-machine/stargazers","contributors_url":"https://api.github.com/repos/vmware/docker-machine/contributors","subscribers_url":"https://api.github.com/repos/vmware/docker-machine/subscribers","subscription_url":"https://api.github.com/repos/vmware/docker-machine/subscription","commits_url":"https://api.github.com/repos/vmware/docker-machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/vmware/docker-machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/vmware/docker-machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/vmware/docker-machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/vmware/docker-machine/contents/{+path}","compare_url":"https://api.github.com/repos/vmware/docker-machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vmware/docker-machine/merges","archive_url":"https://api.github.com/repos/vmware/docker-machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vmware/docker-machine/downloads","issues_url":"https://api.github.com/repos/vmware/docker-machine/issues{/number}","pulls_url":"https://api.github.com/repos/vmware/docker-machine/pulls{/number}","milestones_url":"https://api.github.com/repos/vmware/docker-machine/milestones{/number}","notifications_url":"https://api.github.com/repos/vmware/docker-machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vmware/docker-machine/labels{/name}","releases_url":"https://api.github.com/repos/vmware/docker-machine/releases{/id}","deployments_url":"https://api.github.com/repos/vmware/docker-machine/deployments","created_at":"2016-02-25T01:01:55Z","updated_at":"2016-02-25T23:34:30Z","pushed_at":"2016-03-16T21:06:34Z","git_url":"git://github.com/vmware/docker-machine.git","ssh_url":"git@github.com:vmware/docker-machine.git","clone_url":"https://github.com/vmware/docker-machine.git","svn_url":"https://github.com/vmware/docker-machine","homepage":"https://docs.docker.com/machine/","size":14813,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vmware/docker-machine/pulls/3"},"html":{"href":"https://github.com/vmware/docker-machine/pull/3"},"issue":{"href":"https://api.github.com/repos/vmware/docker-machine/issues/3"},"comments":{"href":"https://api.github.com/repos/vmware/docker-machine/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/vmware/docker-machine/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/vmware/docker-machine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vmware/docker-machine/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/vmware/docker-machine/statuses/c3aab58119b0ce61639b1783db6925d65b2e5963"}}}}