{"action":"opened","number":1998,"pull_request":{"url":"https://api.github.com/repos/docker/swarmkit/pulls/1998","id":108644370,"html_url":"https://github.com/docker/swarmkit/pull/1998","diff_url":"https://github.com/docker/swarmkit/pull/1998.diff","patch_url":"https://github.com/docker/swarmkit/pull/1998.patch","issue_url":"https://api.github.com/repos/docker/swarmkit/issues/1998","number":1998,"state":"open","locked":false,"title":"[WIP] External store API","user":{"login":"aaronlehmann","id":10601430,"avatar_url":"https://avatars0.githubusercontent.com/u/10601430?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronlehmann","html_url":"https://github.com/aaronlehmann","followers_url":"https://api.github.com/users/aaronlehmann/followers","following_url":"https://api.github.com/users/aaronlehmann/following{/other_user}","gists_url":"https://api.github.com/users/aaronlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlehmann/subscriptions","organizations_url":"https://api.github.com/users/aaronlehmann/orgs","repos_url":"https://api.github.com/users/aaronlehmann/repos","events_url":"https://api.github.com/users/aaronlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlehmann/received_events","type":"User","site_admin":false},"body":"This adds a simple gRPC API for the swarmkit data store. Rather than supporting full atomic transactions, it supplies a simplified set of primitives meant to be more practically useful over RPC boundaries:\r\n\r\n- `GetObject`: Retrieve an object by ID\r\n- `FindObjects`: Retrieve a set of objects based on selectors\r\n- `CreateObject`: Add an object to the data store\r\n- `UpdateObjects`: Update the given objects atomically\r\n- `Watch`: Return a stream of new, updated, or removed objects matching the given selectors.\r\n\r\nEach of the getter/setter RPCs can be considered atomic, but there are no consistency guarantees provided in between different calls.\r\n\r\ncc @aluzzardi @dongluochen\r\n\r\nDEPENDS ON #1761","created_at":"2017-03-01T22:33:03Z","updated_at":"2017-03-01T22:33:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/docker/swarmkit/pulls/1998/commits","review_comments_url":"https://api.github.com/repos/docker/swarmkit/pulls/1998/comments","review_comment_url":"https://api.github.com/repos/docker/swarmkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/swarmkit/issues/1998/comments","statuses_url":"https://api.github.com/repos/docker/swarmkit/statuses/7c5c1f222daefa93ec386c4b392e42d8d4277dc3","head":{"label":"aaronlehmann:store-api","ref":"store-api","sha":"7c5c1f222daefa93ec386c4b392e42d8d4277dc3","user":{"login":"aaronlehmann","id":10601430,"avatar_url":"https://avatars0.githubusercontent.com/u/10601430?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronlehmann","html_url":"https://github.com/aaronlehmann","followers_url":"https://api.github.com/users/aaronlehmann/followers","following_url":"https://api.github.com/users/aaronlehmann/following{/other_user}","gists_url":"https://api.github.com/users/aaronlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlehmann/subscriptions","organizations_url":"https://api.github.com/users/aaronlehmann/orgs","repos_url":"https://api.github.com/users/aaronlehmann/repos","events_url":"https://api.github.com/users/aaronlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlehmann/received_events","type":"User","site_admin":false},"repo":{"id":61081831,"name":"swarmkit","full_name":"aaronlehmann/swarmkit","owner":{"login":"aaronlehmann","id":10601430,"avatar_url":"https://avatars0.githubusercontent.com/u/10601430?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronlehmann","html_url":"https://github.com/aaronlehmann","followers_url":"https://api.github.com/users/aaronlehmann/followers","following_url":"https://api.github.com/users/aaronlehmann/following{/other_user}","gists_url":"https://api.github.com/users/aaronlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlehmann/subscriptions","organizations_url":"https://api.github.com/users/aaronlehmann/orgs","repos_url":"https://api.github.com/users/aaronlehmann/repos","events_url":"https://api.github.com/users/aaronlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlehmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aaronlehmann/swarmkit","description":"A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.","fork":true,"url":"https://api.github.com/repos/aaronlehmann/swarmkit","forks_url":"https://api.github.com/repos/aaronlehmann/swarmkit/forks","keys_url":"https://api.github.com/repos/aaronlehmann/swarmkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aaronlehmann/swarmkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aaronlehmann/swarmkit/teams","hooks_url":"https://api.github.com/repos/aaronlehmann/swarmkit/hooks","issue_events_url":"https://api.github.com/repos/aaronlehmann/swarmkit/issues/events{/number}","events_url":"https://api.github.com/repos/aaronlehmann/swarmkit/events","assignees_url":"https://api.github.com/repos/aaronlehmann/swarmkit/assignees{/user}","branches_url":"https://api.github.com/repos/aaronlehmann/swarmkit/branches{/branch}","tags_url":"https://api.github.com/repos/aaronlehmann/swarmkit/tags","blobs_url":"https://api.github.com/repos/aaronlehmann/swarmkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aaronlehmann/swarmkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aaronlehmann/swarmkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/aaronlehmann/swarmkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aaronlehmann/swarmkit/statuses/{sha}","languages_url":"https://api.github.com/repos/aaronlehmann/swarmkit/languages","stargazers_url":"https://api.github.com/repos/aaronlehmann/swarmkit/stargazers","contributors_url":"https://api.github.com/repos/aaronlehmann/swarmkit/contributors","subscribers_url":"https://api.github.com/repos/aaronlehmann/swarmkit/subscribers","subscription_url":"https://api.github.com/repos/aaronlehmann/swarmkit/subscription","commits_url":"https://api.github.com/repos/aaronlehmann/swarmkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/aaronlehmann/swarmkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/aaronlehmann/swarmkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/aaronlehmann/swarmkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/aaronlehmann/swarmkit/contents/{+path}","compare_url":"https://api.github.com/repos/aaronlehmann/swarmkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aaronlehmann/swarmkit/merges","archive_url":"https://api.github.com/repos/aaronlehmann/swarmkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aaronlehmann/swarmkit/downloads","issues_url":"https://api.github.com/repos/aaronlehmann/swarmkit/issues{/number}","pulls_url":"https://api.github.com/repos/aaronlehmann/swarmkit/pulls{/number}","milestones_url":"https://api.github.com/repos/aaronlehmann/swarmkit/milestones{/number}","notifications_url":"https://api.github.com/repos/aaronlehmann/swarmkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aaronlehmann/swarmkit/labels{/name}","releases_url":"https://api.github.com/repos/aaronlehmann/swarmkit/releases{/id}","deployments_url":"https://api.github.com/repos/aaronlehmann/swarmkit/deployments","created_at":"2016-06-14T01:29:55Z","updated_at":"2016-06-14T01:29:56Z","pushed_at":"2017-03-01T22:27:26Z","git_url":"git://github.com/aaronlehmann/swarmkit.git","ssh_url":"git@github.com:aaronlehmann/swarmkit.git","clone_url":"https://github.com/aaronlehmann/swarmkit.git","svn_url":"https://github.com/aaronlehmann/swarmkit","homepage":"","size":13983,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"a52e9c8317c3ff4444c54932b28bff4cc1035e46","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars2.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":51556828,"name":"swarmkit","full_name":"docker/swarmkit","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars2.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/swarmkit","description":"A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.","fork":false,"url":"https://api.github.com/repos/docker/swarmkit","forks_url":"https://api.github.com/repos/docker/swarmkit/forks","keys_url":"https://api.github.com/repos/docker/swarmkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/swarmkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/swarmkit/teams","hooks_url":"https://api.github.com/repos/docker/swarmkit/hooks","issue_events_url":"https://api.github.com/repos/docker/swarmkit/issues/events{/number}","events_url":"https://api.github.com/repos/docker/swarmkit/events","assignees_url":"https://api.github.com/repos/docker/swarmkit/assignees{/user}","branches_url":"https://api.github.com/repos/docker/swarmkit/branches{/branch}","tags_url":"https://api.github.com/repos/docker/swarmkit/tags","blobs_url":"https://api.github.com/repos/docker/swarmkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/swarmkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/swarmkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/swarmkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/swarmkit/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/swarmkit/languages","stargazers_url":"https://api.github.com/repos/docker/swarmkit/stargazers","contributors_url":"https://api.github.com/repos/docker/swarmkit/contributors","subscribers_url":"https://api.github.com/repos/docker/swarmkit/subscribers","subscription_url":"https://api.github.com/repos/docker/swarmkit/subscription","commits_url":"https://api.github.com/repos/docker/swarmkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/swarmkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/swarmkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/swarmkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/swarmkit/contents/{+path}","compare_url":"https://api.github.com/repos/docker/swarmkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/swarmkit/merges","archive_url":"https://api.github.com/repos/docker/swarmkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/swarmkit/downloads","issues_url":"https://api.github.com/repos/docker/swarmkit/issues{/number}","pulls_url":"https://api.github.com/repos/docker/swarmkit/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/swarmkit/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/swarmkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/swarmkit/labels{/name}","releases_url":"https://api.github.com/repos/docker/swarmkit/releases{/id}","deployments_url":"https://api.github.com/repos/docker/swarmkit/deployments","created_at":"2016-02-12T00:02:15Z","updated_at":"2017-03-01T18:11:37Z","pushed_at":"2017-03-01T16:49:30Z","git_url":"git://github.com/docker/swarmkit.git","ssh_url":"git@github.com:docker/swarmkit.git","clone_url":"https://github.com/docker/swarmkit.git","svn_url":"https://github.com/docker/swarmkit","homepage":"","size":13709,"stargazers_count":1187,"watchers_count":1187,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":244,"mirror_url":null,"open_issues_count":183,"forks":244,"open_issues":183,"watchers":1187,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/swarmkit/pulls/1998"},"html":{"href":"https://github.com/docker/swarmkit/pull/1998"},"issue":{"href":"https://api.github.com/repos/docker/swarmkit/issues/1998"},"comments":{"href":"https://api.github.com/repos/docker/swarmkit/issues/1998/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/swarmkit/pulls/1998/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/swarmkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/swarmkit/pulls/1998/commits"},"statuses":{"href":"https://api.github.com/repos/docker/swarmkit/statuses/7c5c1f222daefa93ec386c4b392e42d8d4277dc3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":11081,"deletions":561,"changed_files":43}}
{"actor":{"display_login":"aaronlehmann"}}