{"action":"created","issue":{"url":"https://api.github.com/repos/hyperhq/runv/issues/213","repository_url":"https://api.github.com/repos/hyperhq/runv","labels_url":"https://api.github.com/repos/hyperhq/runv/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/hyperhq/runv/issues/213/comments","events_url":"https://api.github.com/repos/hyperhq/runv/issues/213/events","html_url":"https://github.com/hyperhq/runv/issues/213","id":154374513,"number":213,"title":"move the code of api between runv and hyperstart into hyperstart/api/json/","user":{"login":"laijs","id":125671,"avatar_url":"https://avatars.githubusercontent.com/u/125671?v=3","gravatar_id":"","url":"https://api.github.com/users/laijs","html_url":"https://github.com/laijs","followers_url":"https://api.github.com/users/laijs/followers","following_url":"https://api.github.com/users/laijs/following{/other_user}","gists_url":"https://api.github.com/users/laijs/gists{/gist_id}","starred_url":"https://api.github.com/users/laijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laijs/subscriptions","organizations_url":"https://api.github.com/users/laijs/orgs","repos_url":"https://api.github.com/users/laijs/repos","events_url":"https://api.github.com/users/laijs/events{/privacy}","received_events_url":"https://api.github.com/users/laijs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-12T00:52:01Z","updated_at":"2016-05-15T15:19:40Z","closed_at":null,"body":"the code of api between runv and hyperstart is spread everywhere\r\n- hypervisor/constants.go INIT_XXXX\r\n- hypervisor/events.go the structs sent into hyperstart\r\n- ttyMessage\r\n- WindowSize\r\n- (all structs sent into ctx.vm)\r\n- hypervisor/pod.go the structs VmXXXX\r\n- others ...\r\n\r\nafter they are moved, they will be referred via hyperstartapi.XXXXX\r\n```go\r\nimport hyperstartapi \"github.com/hyperhq/runv/hyperstart/api/json\"\r\n```\r\n\r\n@yaozengzeng\r\n"},"comment":{"url":"https://api.github.com/repos/hyperhq/runv/issues/comments/219291778","html_url":"https://github.com/hyperhq/runv/issues/213#issuecomment-219291778","issue_url":"https://api.github.com/repos/hyperhq/runv/issues/213","id":219291778,"user":{"login":"laijs","id":125671,"avatar_url":"https://avatars.githubusercontent.com/u/125671?v=3","gravatar_id":"","url":"https://api.github.com/users/laijs","html_url":"https://github.com/laijs","followers_url":"https://api.github.com/users/laijs/followers","following_url":"https://api.github.com/users/laijs/following{/other_user}","gists_url":"https://api.github.com/users/laijs/gists{/gist_id}","starred_url":"https://api.github.com/users/laijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laijs/subscriptions","organizations_url":"https://api.github.com/users/laijs/orgs","repos_url":"https://api.github.com/users/laijs/repos","events_url":"https://api.github.com/users/laijs/events{/privacy}","received_events_url":"https://api.github.com/users/laijs/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T15:19:40Z","updated_at":"2016-05-15T15:19:40Z","body":"the following code in `func (ctx *VmContext) setWindowSize(tag string, size *WindowSize)` also needs to be moved.\r\n```go\r\nmap[string]interface{}{\r\n\t\t\t\"seq\":    session,\r\n\t\t\t\"row\":    size.Row,\r\n\t\t\t\"column\": size.Column,\r\n\t\t}\r\n```"}}