This repository was archived by the owner on Feb 8, 2021. It is now read-only.
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
Revisit hyper client and api #278
Open
Description
The hyper client code should be separated from hyper CLI. And we should also add an optional gRPC api to improve performance.
- Separate client code and api code Separate client code and api code #263
- Prepare types for both current api and gRPC 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 Add initial gRPC server #296
- POST, /vm/create Add create/remove gRPC api for vm #315
- DELETE, /vm Add create/remove gRPC api for vm #315
- GET, /pod/info Add initial gRPC server #296
- GET, /pod/stats
- GET, /list Add gRPC APIs for ContainerInfo and List: #302
- POST, /pod/create Add gPRC api for pod create/remove #318
- POST, /pod/labels
- POST, /pod/start Add gRPC api for pod start #345
- POST, /pod/stop
- POST, /pod/kill
- POST, /pod/pause
- POST, /pod/unpause
- DELETE, /pod Add gPRC api for pod create/remove #318
- GET, /container/info Add gRPC APIs for ContainerInfo and List: #302
- GET, /container/logs Add gRPC api for container logs #324
- POST, /container/create Create container in specified Pod #335
- POST, /container/start
- POST, /container/stop
- DELETE, /container
- POST, /container/rename
- POST, /container/commit
- POST, /container/kill
- POST, /exec
- GET, /exitcode Add gRPC API for exitcode #339
- POST, /attach Add gRPC api for attach #344
- POST, /tty/resize ( will be replaced by
/container/$id/tty
and/exec/$id/tty
in near future) - GET, /service/list
- POST, /service/add
- POST, /service/update
- DELETE, /service
- GET, /images/get Add gRPC APIs for ContainerInfo and List: #302
- POST, /image/create
- POST, /image/load
- POST, /image/push
- POST, /image/build
- DELETE, /image
- GET, /_ping
- GET, /info add grpc info api #342
- GET, /version
- POST, /auth