Tao He
3cbfb51269
Implements the timeout feature to the etcd client.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-05-22 22:45:50 +08:00
Tao He
8da8946409
Refactor the implementation of sync-client and async-client.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-05-22 21:42:06 +08:00
Tao He
bd4ec37ff4
Use int64_t for etcd revisions/indexes.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-04-21 18:52:34 +08:00
Tao He
680e8ad5c6
Replace Tabs in sources and README with spaces.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-04-08 20:49:56 +08:00
Tao He
56c7189f92
Revisit the watcher's reconnect functionality.
...
Address #73 , #76 , #117 and #118 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-04-08 19:55:31 +08:00
Tao He
9a2afd4e81
Revert "Update Watcher re-connection sample."
...
This reverts commit 23394ab9bb .
2022-04-08 19:55:31 +08:00
Tao He
767f0b1c65
Test against centos latest. ( #121 )
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-03-30 09:22:18 +08:00
David Pastor
23394ab9bb
Update Watcher re-connection sample.
2022-03-29 19:39:04 +08:00
Tao He
345380a83a
Allow specifying the auth token TTL when auth with password. ( #109 )
...
* Allow specifying the auth token TTL when auth with password.
* Fixes.
Resolves #107 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-22 14:30:45 +08:00
Tao He
0d672ffa1c
Accept an `grpc::ChannelArguments` argument in client's constructors. ( #104 )
...
* Accept an `grpc::ChannelArguments` argument in client's constructors.
Resolves #103 .
* Backwards compatibility with Ubuntu 18.04.
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-11-09 00:31:59 +08:00
Tao He
a949dec288
Add an optional `target_name_override` to support multiple-endpoints with SSL. ( #89 )
...
Resolves #87 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-09-24 02:41:46 +08:00
Tao He
cda80854eb
Implements "v3election.proto" APIs. ( #84 )
...
Resolves #81 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-09-16 00:46:21 +08:00
Tao He
116b49b784
Lint source code, improve the quality and readability. ( #82 )
...
* Lint the source first, prepare for implementing #81 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-09-15 14:59:55 +08:00
Tao He
891dc7bedf
Revisit docs about how could we "reconnect" when failure.
...
See also:
https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3/issues/73#issuecomment-888150328
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-07-28 17:57:33 +08:00
Yue
2338a83fd5
Add a brief doc and sample code describing how a watcher can re-connect to etcd server after disconnected. ( #76 )
2021-07-15 23:55:01 +08:00
Tao He
0dc89e4c1e
Add openssl/libssl-dev to requirements.
...
Resolves #71 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-07-01 18:00:26 +08:00
Tao He
b3a193c75e
Fixes several typos in REAEMD.
...
Fixes #63 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-06-01 17:27:20 +08:00
Tao He
46f36dac6d
Fixes a typo in example code in README.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-05-28 14:34:08 +08:00
Tao He
9e77fdb2ee
Fixes lock, and the underlying keepalive implmentation. ( #60 )
...
* Fixes lock, and the underlying keepalive implmentation.
The previous implementation is buggy when a lot of locks happen at the same time,
as the cpprestsdk's threadpool use a fixed number of thread for posix platform:
https://github.com/microsoft/cpprestsdk/blob/master/Release/src/pplx/threadpool.cpp#L198
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-05-21 18:05:35 +08:00
Nils Carlson
ad2da0ac7e
Change KeepAlive lease expiry to throw std::out_of_range ( #55 )
...
Update documentation to show different exceptions used by KeepAlive as well.
2021-04-08 10:18:26 +08:00
Tao He
62a846d798
Handling (or checking) possible failure in lease's KeepAlive. ( #53 )
...
* Handling (or checking) possible failure in lease's KeepAlive.
* Add documentation.
* Enhance documentations.
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-04-02 17:15:27 +08:00
Ruoyun Huang
c18092c576
Update README.md ( #47 )
...
Fix a minor mistake in installation instruction.
2021-02-17 23:17:34 +08:00
Tao He
7aa851420c
Fixes README.md.
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2021-02-07 09:32:23 +08:00
Tao He
03baacf9ea
Support secure transport and certificate-based authentication. ( #42 )
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2021-02-07 01:35:37 +08:00
Ashish Billore
dfcd8073e6
Update README.md to add the "git clone" part for build & install process ( #38 )
...
Added details needed to build the project (git clone) and install the project (make install).
2021-02-01 21:16:37 +08:00
Tao He
bcf5313eab
Continue work for #36 , add instructions about how to install deependencies.
2021-01-31 15:24:23 +08:00
Ashish Billore
cd3e30b492
Update README.md
...
Detailed build and install instructions.
2021-01-31 15:14:04 +08:00
Tao He
692840cb58
Support ubuntu 18.04 (boost-1.65), and test it in CI.
2021-01-30 14:43:16 +08:00
Tao He
66c111b5ca
Test the library on more platforms with more versions of etcd.
...
Squashed commit of the following:
commit 7d15f8f5f9b477f606dbe034f26c37a894eb5b46
Author: Tao He <linzhu.ht@alibaba-inc.com>
Date: Thu Jan 28 10:47:55 2021 +0800
Add a bit more about how to enable authentication on etcd v3.2.x and v3.3.x.
Fixes #33 .
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
commit 9e84e27d480930133d2f2380bed44cb187ff1656
Author: Tao He <sighingnow@gmail.com>
Date: Sun Jan 17 20:59:12 2021 +0800
Tweak LD_LIBRARY_PATH, to include /usr/local/lib.
Signed-off-by: Tao He <sighingnow@gmail.com>
commit c3b913c3c33606caa6ff326639a791e55565da3f
Author: Tao He <linzhu.ht@alibaba-inc.com>
Date: Sat Dec 26 15:27:54 2020 +0800
Test on various versions of Ubuntu and Mac, with different versions of ETCD.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2021-01-28 13:07:34 +08:00
Tao He
cd6e85dacf
Fixes README.md in #32 .
...
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2021-01-27 20:53:43 +08:00
Tao He
6962030db8
Implements "KeepAlive" feature, and enhance "lock" with a lease.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-01-10 23:39:50 +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
65271bb92d
Enhance tests and improve documents about about build & install.
...
Should fixes #2 , #4 .
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
2020-10-01 01:47:43 +08:00
Gergely Csatari
ac9cce8815
Add license refrence to README.md ( #15 )
2020-09-30 00:31:17 +08:00
Arches
be7b029bd2
Updated readme forat
2016-12-13 15:20:16 +01:00
Arches
b081afa286
Updated formatting
2016-12-13 15:17:07 +01:00
Arches
1bf2caf5e3
Updated readme format
2016-12-13 15:10:21 +01:00
Arches
f995eaa673
updated readme
2016-12-13 15:08:18 +01:00
Arches
19061bd9e1
updated readme
2016-08-29 16:00:51 +02:00
arches
7758842ada
updated readme
2016-08-29 09:51:46 -04:00
arches
16936603b5
Fixed how leaseid can be fetched.
2016-07-13 08:30:34 -04:00
arches
d9b18e6b7e
Mentioned leasegrant() and Watcher()
...
Also updated rmdir().
2016-07-13 08:23:28 -04:00
arches
f4e8406f7c
Merge branch 'other_dev' of gitlabe1.ext.net.nokia.com:tas/etcd-cpp-apiv3 into other_dev
...
# Conflicts:
# README.md
2016-07-04 05:43:36 -04:00
Arches
fa1a396e8a
Updated readme to indicate correct etcd version to use
2016-07-04 10:32:31 +02:00
Arches
d016f2b5d5
Update readme. Add description on what compatible etcd version
...
to use with this cpp client.
2016-07-04 10:30:05 +02:00
arches
9538f63ab9
Mentioned compatible etcd version for this client.
2016-07-01 10:21:38 -04:00
Arches
00565282ff
Updated readme. Add compatible etcd version
2016-06-30 15:07:51 +02:00
Arches
0cb5bd762a
Mentioned path for protofiles in etcd
...
Mentioned that etcdv3 cpp client does not make use
of etcdv3 indefinite watch functionality.
2016-06-24 10:41:05 +02:00
lampayan
7fec39739b
updated README for watch
2016-06-24 10:23:22 +02:00
Arches
8a55c6e49a
Update rmdir description.
2016-06-23 17:32:22 +02:00