Skip to content

Commit

Permalink
*: Split etcd into 3 modules:
Browse files Browse the repository at this point in the history
      go.etcd.io/etcd/v3 - server
      go.etcd.io/etcd/c/v3 - client code
      go.etcd.io/etcd/integration/v3 - integration tests

This was discussed an community meeting on 2020/07/30. The goal is to
minimize number of dependencies that our network customers needs to
carry and clearly define packets that needs to stay backward compatible.

Main files moves into ./c
  Clients:
    ./{client,clientv3}
  API protos:
    ./etcdserver/api/membership/membershippb
    ./etcdserver/api/v3rpc/rpctypes
    ./auth/authpb
    ./mvcc/mvccpb
    ./etcdserver/etcdserverpb
  Integration tests:
    ./client{v3}/{integration,concurrency} -> ./integration/client{v3}/{integration,concurrency}

Tested using:
  PASSES="unit integration functional e2e" time ./test -v

  ./build

  (go build ./... && go test ./...)
  (cd c; go build ./... && go test ./...)
  (cd integration; go build ./... && go test ./...)

  ./scripts/genproto.sh

  make

  go mod tidy
  go mod vendor

Futher steps:
 - migrate etcdctl into (c) - client code. This requires spliting some
  admin functionalities that operate directly on etcd server files.
  • Loading branch information
ptabor committed Aug 7, 2020
1 parent 9d182c2 commit 9e2fcaf
Show file tree
Hide file tree
Showing 598 changed files with 2,303 additions and 1,787 deletions.
4 changes: 2 additions & 2 deletions Documentation/dev-guide/api_concurrency_reference_v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ The election service exposes client-side election facilities as a gRPC interface



##### message `Event` (mvcc/mvccpb/kv.proto)
##### message `Event` (c/mvcc/mvccpb/kv.proto)

| Field | Description | Type |
| ----- | ----------- | ---- |
Expand All @@ -153,7 +153,7 @@ The election service exposes client-side election facilities as a gRPC interface



##### message `KeyValue` (mvcc/mvccpb/kv.proto)
##### message `KeyValue` (c/mvcc/mvccpb/kv.proto)

| Field | Description | Type |
| ----- | ----------- | ---- |
Expand Down
Loading

0 comments on commit 9e2fcaf

Please sign in to comment.