hyperd
hyperd copied to clipboard
Revisit hyper client and api
The hyper client code should be separated from hyper CLI. And we should also add an optional gRPC api to improve performance.
- [x] Separate client code and api code #263
- [x] Prepare types for both current api and gRPC #279
- proto definition
- generate types.go
- fix usage
- verify in CI
- [ ] Clean up
client/api/
code, move CLI related function to CLI itself - [ ] Add ApiVersion to hyperd
- [ ] Make api more restful and return json object for all APIs
- This will change API, consider related projects
- [ ] Add optional gRPC api #296
- [x] POST, /vm/create #315
- [x] DELETE, /vm #315
- [x] GET, /pod/info #296
- [x] GET, /pod/stats
- [x] GET, /list #302
- [x] POST, /pod/create #318
- [x] POST, /pod/labels
- [x] POST, /pod/start #345
- [x] POST, /pod/stop
- [x] POST, /pod/kill
- [x] POST, /pod/pause
- [x] POST, /pod/unpause
- [x] DELETE, /pod #318
- [x] GET, /container/info #302
- [x] GET, /container/logs #324
- [x] POST, /container/create #335
- [x] POST, /container/start
- [x] POST, /container/stop
- [x] DELETE, /container
- [ ] POST, /container/rename
- [ ] POST, /container/commit
- [x] POST, /container/kill
- [x] POST, /exec
- [x] GET, /exitcode #339
- [x] POST, /attach #344
- [x] POST, /tty/resize ( will be replaced by
/container/$id/tty
and/exec/$id/tty
in near future) - [x] GET, /service/list
- [x] POST, /service/add
- [x] POST, /service/update
- [x] DELETE, /service
- [x] GET, /images/get #302
- [x] POST, /image/create
- [ ] POST, /image/load
- [x] POST, /image/push
- [ ] POST, /image/build
- [x] DELETE, /image
- [ ] GET, /_ping
- [x] GET, /info #342
- [x] GET, /version
- [ ] POST, /auth
I will take GET, /info
for practice.
stats
, labels
will be sent after start
I will take POST, /image/load POST, /auth POST, /image/build
@feiskyer Do we still need this issue for 0.8 and later release?
There are still some interfaces missing, e.g. image build, container commit and so on. And current http api is still not respect of restful.