Tao He
a00a06d5bd
Remove unused comment code.
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-10-11 17:19:46 +08:00
Tao He
3305a19d15
Drop the Interceptor-based implementation to be compatible with ealier version of gRPC (pre-0.17.0).
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-10-10 20:17:32 +08:00
Tao He
eb284103e0
Auto and watch functionalities on SyncClient.
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-10-10 20:17:32 +08:00
Tao He
0fb4f2887d
Implements etcd v3 authentication.
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-10-10 20:17:32 +08:00
Tao He
100eae97e9
Improve the etcd watcher to detect error when the connection lost.
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-09-30 00:32:00 +08:00
Tao He
611ab05de0
Move generated protobuf files to binary directory.
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-09-30 00:32:00 +08:00
Tao He
6eb725de0e
Add "limit" support on "ls" command.
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-09-30 00:32:00 +08:00
Tao He
60ffe62b26
Update accumulated changes.
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-09-30 00:32:00 +08:00
Tao He
bb33b76544
Optimize protobuf generation process in CMakeLists.txt.
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-09-30 00:32:00 +08:00
Tao He
72b215a513
Re-org v3 related files to make it a submodule.
2020-09-30 00:32:00 +08:00
Tao He
4e9d17c188
Update protobuf, implments lock, fixes watch and improves txn ( #1 )
2020-09-30 00:32:00 +08:00
Arches
0c52135bf8
Deleted junk files
...
Added #include <grpc/support/log.h> since this is where GPR_ASSERT is now defined.
2016-12-13 11:14:49 +01:00
Arches
a5d2140793
Updated logic for stripping of endpoint
2016-09-26 11:56:04 +02:00
Arches
e37cb46922
First commit
2016-08-29 16:14:57 +02:00
arches
60383a502c
Make mvccpb::KeyValue a member of etcdv3::keyValue instead of
...
inheriting from it.
2016-07-26 10:04:26 -04:00
arches
888946b589
Added new interface for leasegrant and leaseId in add, set, modify, modify_if
2016-07-13 07:56:43 -04:00
arches
ac54e84f6d
Use ttl
2016-07-13 07:20:15 -04:00
arches
82034a87db
Updated makefiles
2016-07-13 05:54:27 -04:00
arches
3c52636028
Implemented TTL and Lease
2016-07-13 05:09:42 -04:00
arches
dd798f5dfd
Updated rmdir. withPrefix value should be based on the argument pass
...
by the client
2016-07-08 10:30:43 -04:00
arches
77109d06e4
Updated access of V3Response
2016-07-08 10:00:15 -04:00
arches
6dfbe791a0
Added DeleteRangeResponse.
...
Refactor how value/values are filled up by parseResponse
2016-07-08 08:48:39 -04:00
arches
1e046d87a0
Use Actionv2::ActionParameters to pass arguments to AsyncActions.
2016-07-06 12:11:27 -04:00
arches
7d64447e76
Updates for Watcher
2016-07-05 05:22:11 -04:00
arches
174ea401b8
Added SyncClient class
2016-07-04 06:54:07 -04:00
arches
dd1d01519c
Fixed bug when only one key is returned during ls().
...
Instead of placing it in response::value it should be placed in
reponse::values
2016-07-01 10:17:41 -04:00
arches
a43de811f4
Refactor part1
2016-06-24 12:20:31 -04:00
arches
029f46df86
Removed mkdir
2016-06-22 04:34:26 -04:00
lampayan
366f10506c
cleanup
...
removed unused old methods send_get_request and send_del_request
removed unnecessary comments
2016-06-22 09:51:46 +02:00
arches
8ae3a250dd
Remove AsyncPutResponse, utils and grpcClient
2016-06-21 10:58:24 -04:00
arches
a24750cc40
Merge branch 'other_dev' of ssh://bud-git01.emea.nsn-net.net/etcd-cpp-apiv3 into other_dev
...
updated watch to return previous values
2016-06-21 10:45:50 -04:00
arches
bdfb481f69
Updated Watch so it can return previous values.
2016-06-21 10:45:43 -04:00
lampayan
618995c080
Merge remote-tracking branch 'origin/other_dev' into other_dev
...
# Conflicts:
# etcd/Client.hpp
# src/Client.cpp
2016-06-21 15:59:46 +02:00
lampayan
b086ee9d72
Refactored transaction initialization.
...
cleaned up and added comments for methods in transaction class
2016-06-21 15:52:19 +02:00
arches
63661d3889
Merge branch 'other_dev' of ssh://bud-git01.emea.nsn-net.net/etcd-cpp-apiv3 into other_dev
...
# Conflicts:
# src/CMakeLists.txt
2016-06-21 09:38:50 -04:00
arches
40c552725b
Merge branch 'other_dev' of ssh://bud-git01.emea.nsn-net.net/etcd-cpp-apiv3 into other_dev
...
# Conflicts:
# src/CMakeLists.txt
# src/Client.cpp
2016-06-21 09:34:22 -04:00
lampayan
fe5396e437
Refactored Client class to remove boilerplate code.
...
Responsibility of boilerplate work is transfered to its own class
(Transaction).
UT for watch are temporarily commented out as they are not supported yet
2016-06-21 15:33:11 +02:00
arches
b9eb2633d1
Added watch functionality
2016-06-21 09:19:26 -04:00
lampayan
01bf49bf2d
cleanup removing temporary classes AyncDelResponse AsyncModifyResponse
...
and V3BaseResponse
2016-06-21 10:54:13 +02:00
arches
87dc87abdb
Removed createResponse
2016-06-20 06:24:09 -04:00
arches
e84a1b0667
Update rm and modify functions. Use Txn for these functions.
2016-06-17 11:11:53 -04:00
arches
db2ce95328
Updates for merging
2016-06-16 07:52:29 -04:00
arches
e116c51948
added grpc and utils
2016-06-16 07:11:17 -04:00
arches
9239ad04e9
clean up
2016-06-16 07:00:53 -04:00
Arches
e5eafcf531
made prev_values a vector.
2016-06-16 06:29:49 -04:00
arches
88e5298f86
make templated create with shared_ptr arguement
...
with watch snippet(should be deleted next commit)
2016-06-16 06:29:49 -04:00
arches
eedbcd4b70
Added delete
2016-06-16 06:29:19 -04:00
arches
0d7b702430
Added implementation for ls
2016-06-16 06:28:46 -04:00
Arches
8825b43044
Use Txn
2016-06-16 06:25:33 -04:00
arches
b7500a17cb
Use Txn for add()
2016-06-16 06:21:17 -04:00
lampayan
a1293c770a
cleanup removing temporary classes.
2016-06-09 17:14:40 +02:00
lampayan
64a7f72fb9
cleanup removing temporary classes.
2016-06-09 17:12:13 +02:00
lampayan
c28d955b22
Complete implementation for modify with index and delete with index
...
functionalities. AsyncModifyResponse is needed because handling of
indeces are different between create and mod and delete, as per
requirements.
remaining TODOs:
1) Watch functionality
2016-06-09 16:57:25 +02:00
lampayan
6fb775218d
This is the complete implementation for delete functionalities.
...
Index is now also supported
notes/TODOs:
1) We should consider adding an algo for mod/update functions
to consider BOTH creation index and modify index
2) Watch functionality
2016-06-09 13:53:58 +02:00
lampayan
008693a276
merged branches for ease of update later on.
...
cleaned up rm, implemented rm_if methods!
updated tests
remaining todos:
rm and modif with indexes (find out where is X-ETCD-Index)
watch functionality
2016-06-09 11:21:42 +02:00
lampayan
2721e39e12
coexisting approaches with working UTs
2016-06-08 15:21:09 +02:00
lampayan
33be7c9092
Merge remote-tracking branch 'origin/maui' into other_dev
...
# Conflicts:
# etcd/Client.hpp
# etcd/Response.hpp
# proto/rpc.proto
# src/CMakeLists.txt
# src/Client.cpp
# src/Response.cpp
# tst/EtcdTest.cpp
2016-06-08 14:53:34 +02:00
lampayan
12789ad2d2
cleanup removing temporary classes
2016-06-08 11:29:09 +02:00
lampayan
43d6c8ae3c
cleanup removing temporary classes
2016-06-08 11:17:48 +02:00
lampayan
62d4984e71
Refactored and cleaned implementation for rm()
...
Unrelated tests are commented out firsts
temporary method, such as getV3, are done to be able to do the original UT replication.
2016-06-08 11:11:50 +02:00
arches
04f8cc71e5
implemented assigned client interface
2016-06-07 10:59:10 -04:00
lampayan
98e2b57ed4
Merge remote-tracking branch 'origin/other_dev' into lampayan
...
# Conflicts:
# etcd/Client.hpp
# proto/kv.proto
# src/Client.cpp
2016-06-07 15:41:12 +02:00
lampayan
2e858aa26b
preparation for merge
2016-06-07 15:37:09 +02:00
lampayan
261bf7deac
removed extra comments, before starting refactoring
2016-06-07 15:05:30 +02:00
lampayan
66f9be45ba
Crude DeleteV3, version 2 backward compatibility, implementation
2016-06-07 14:46:40 +02:00
arches
3f5ca746fc
Added AsyncPutResponse class
2016-06-06 10:26:56 -04:00
arches
273710aafe
Updates for GET and SET
2016-06-06 08:00:00 -04:00
lampayan
326693a95e
commit for merge
2016-06-02 13:36:58 +02:00
arches
6246968086
Update client::get to use grpc.
...
ParseResponse for AsyncRangeResponse is still stubbed
2016-06-01 10:15:34 -04:00
arches
c75548d9e3
Updated client::set() function to use grpc.
...
Parse response for PutRequest is still stubbed.
2016-06-01 08:07:09 -04:00
arches
b78da53aa3
Updated CMakeList to use protobuf and grpc++ libraries.
...
Updated client constructor to use gprc channels.
2016-06-01 04:50:42 -04:00
arches
3745c218fc
Updated CMakeLists file so we can do compilation
2016-05-31 07:23:56 -04:00
Arches
7d11a0a4ca
initial repository creation
2016-05-31 11:20:06 +02:00