-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat implement etcd client #27
Conversation
e5d9179
to
3917f9f
Compare
8381291
to
b92d9c1
Compare
2844246
to
bdc644d
Compare
bdc644d
to
518af95
Compare
The tests won't succed as an instance of ETCD should be launched on the computer. Shall I remove them ? |
Disable them for now, and open an issue to track that regression. Don't remove them please. |
254946c
to
041c154
Compare
Tests disabled for now and issue created : #42 Another problem is that the new version of |
9bd64c8
to
aff0ee7
Compare
@sameo PR is finnaly ready to be Merged 😄 |
aff0ee7
to
ce7351a
Compare
@sameo Have removed all |
ce7351a
to
8f2262b
Compare
8f2262b
to
836722a
Compare
Create a new internal_etcd interface witch contains all methods related to the ETCD client. Signed-off-by: GridexX <[email protected]>
836722a
to
32b27b9
Compare
Overall explanation of your work :
We implemented 6 methods for the ETCD_client :
PUT
: insert a couple key/valueGET
: find a value for one key*PATCH
: update a previously stored value associated with a keyDELETE
: remove a couple key/value storedGET_ALL
: return all stored valuesGET_ALL_WITH_PAGINATION
: return all value delimited within a range with PaginateRequest object and return them througt a PaginateResult :Structure
Service
Workload service contain all functions to interact with ETCD
Controller
Handle request , call service and return HTTP responses
ETCD
Store ETCD key, value like this : "uuid" => Workload (JSON)
Used libraries
etcd_client : an API for interfacing with etcd. It provides asynchronous client backed by tokio and tonic.