*: Update references to code moved to the api/ dir.
Follow up to file-moves done in the previous commit. The commit contains purely mechanical consequences of execution (apart of scripts/genproto.sh): % find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/etcdserver/api/v3rpc/rpctypes|v3/api/v3rpc/rpctypes|g' % find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/version|v3/api/version|g' % find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/mvcc/mvccpb|v3/api/mvccpb|g' % find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/etcdserver/etcdserverpb|v3/api/etcdserverpb|g' % find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/etcdserver/api/membership/membershippb|v3/api/membershippb|g' % find ./ -name '*.go' | xargs sed --follow-symlinks -i 's|v3/auth/authpb|v3/api/authpb|g' % find ./ -name '*.proto' -o -name '*.md' | xargs -L 1 sed --follow-symlinks -i 's|/mvcc/mvccpb/kv.proto|/api/mvccpb/kv.proto|g' % find ./ -name '*.proto' -o -name '*.md' | xargs -L 1 sed --follow-symlinks -i 's|/auth/authpb/auth.proto|/api/authpb/auth.proto|g' % find ./ -name '*.proto' -o -name '*.md' | xargs -L 1 sed --follow-symlinks -i 's|/etcdserver/api/membership/membershippb/membership.proto|/api/membershippb/membership.proto|g' I also modified manually paths in scripts/genproto.sh. % go fmt ./...release-3.5
parent
2edb08642c
commit
28f2b07623
|
@ -475,9 +475,9 @@ message LeaseKeepAliveResponse {
|
||||||
* TTL - the new time-to-live, in seconds, that the lease has remaining.
|
* TTL - the new time-to-live, in seconds, that the lease has remaining.
|
||||||
|
|
||||||
[elections]: https://github.com/etcd-io/etcd/blob/master/clientv3/concurrency/election.go
|
[elections]: https://github.com/etcd-io/etcd/blob/master/clientv3/concurrency/election.go
|
||||||
[kv-proto]: https://github.com/etcd-io/etcd/blob/master/mvcc/mvccpb/kv.proto
|
[kv-proto]: https://github.com/etcd-io/etcd/blob/master/api/mvccpb/kv.proto
|
||||||
[grpc-api]: ../dev-guide/api_reference_v3.md
|
[grpc-api]: ../dev-guide/api_reference_v3.md
|
||||||
[grpc-service]: https://github.com/etcd-io/etcd/blob/master/etcdserver/etcdserverpb/rpc.proto
|
[grpc-service]: https://github.com/etcd-io/etcd/blob/master/api/etcdserverpb/rpc.proto
|
||||||
[locks]: https://github.com/etcd-io/etcd/blob/master/clientv3/concurrency/mutex.go
|
[locks]: https://github.com/etcd-io/etcd/blob/master/clientv3/concurrency/mutex.go
|
||||||
[mvcc]: https://en.wikipedia.org/wiki/Multiversion_concurrency_control
|
[mvcc]: https://en.wikipedia.org/wiki/Multiversion_concurrency_control
|
||||||
[stm]: https://github.com/etcd-io/etcd/blob/master/clientv3/concurrency/stm.go
|
[stm]: https://github.com/etcd-io/etcd/blob/master/clientv3/concurrency/stm.go
|
||||||
|
|
|
@ -209,5 +209,5 @@ WatchResponse {
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
[api-protobuf]: https://github.com/etcd-io/etcd/blob/master/etcdserver/etcdserverpb/rpc.proto
|
[api-protobuf]: https://github.com/etcd-io/etcd/blob/master/api/etcdserverpb/rpc.proto
|
||||||
[kv-protobuf]: https://github.com/etcd-io/etcd/blob/master/mvcc/mvccpb/kv.proto
|
[kv-protobuf]: https://github.com/etcd-io/etcd/blob/master/api/mvccpb/kv.proto
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||||
// source: etcdserver/etcdserverpb/rpc.proto
|
// source: client/api/etcdserverpb/rpc.proto
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Package etcdserverpb is a reverse proxy.
|
Package etcdserverpb is a reverse proxy.
|
||||||
|
@ -9,7 +9,7 @@ It translates gRPC into RESTful JSON APIs.
|
||||||
package gw
|
package gw
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
"go.etcd.io/etcd/v3/api/etcdserverpb"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ package etcdserverpb;
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
import "etcdserver.proto";
|
import "etcdserver.proto";
|
||||||
import "rpc.proto";
|
import "rpc.proto";
|
||||||
import "etcd/etcdserver/api/membership/membershippb/membership.proto";
|
import "etcd/api/membershippb/membership.proto";
|
||||||
|
|
||||||
option (gogoproto.marshaler_all) = true;
|
option (gogoproto.marshaler_all) = true;
|
||||||
option (gogoproto.sizer_all) = true;
|
option (gogoproto.sizer_all) = true;
|
||||||
|
|
|
@ -17,7 +17,7 @@ package etcdserverpb_test
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestInvalidGoYypeIntPanic tests conditions that caused
|
// TestInvalidGoYypeIntPanic tests conditions that caused
|
||||||
|
|
|
@ -2,8 +2,8 @@ syntax = "proto3";
|
||||||
package etcdserverpb;
|
package etcdserverpb;
|
||||||
|
|
||||||
import "gogoproto/gogo.proto";
|
import "gogoproto/gogo.proto";
|
||||||
import "etcd/mvcc/mvccpb/kv.proto";
|
import "etcd/api/mvccpb/kv.proto";
|
||||||
import "etcd/auth/authpb/auth.proto";
|
import "etcd/api/authpb/auth.proto";
|
||||||
|
|
||||||
// for grpc-gateway
|
// for grpc-gateway
|
||||||
import "google/api/annotations.proto";
|
import "google/api/annotations.proto";
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
package auth
|
package auth
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.etcd.io/etcd/v3/auth/authpb"
|
"go.etcd.io/etcd/api/v3/authpb"
|
||||||
"go.etcd.io/etcd/v3/mvcc/backend"
|
"go.etcd.io/etcd/v3/mvcc/backend"
|
||||||
"go.etcd.io/etcd/v3/pkg/adt"
|
"go.etcd.io/etcd/v3/pkg/adt"
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ package auth
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/auth/authpb"
|
"go.etcd.io/etcd/api/v3/authpb"
|
||||||
"go.etcd.io/etcd/v3/pkg/adt"
|
"go.etcd.io/etcd/v3/pkg/adt"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
|
@ -26,10 +26,10 @@ import (
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/auth/authpb"
|
"go.etcd.io/etcd/api/v3/authpb"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/cindex"
|
"go.etcd.io/etcd/v3/etcdserver/cindex"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/mvcc/backend"
|
"go.etcd.io/etcd/v3/mvcc/backend"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
|
@ -25,9 +25,9 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/auth/authpb"
|
"go.etcd.io/etcd/api/v3/authpb"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/mvcc/backend"
|
"go.etcd.io/etcd/v3/mvcc/backend"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
|
@ -29,7 +29,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/version"
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -29,8 +29,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type actionAssertingHTTPClient struct {
|
type actionAssertingHTTPClient struct {
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/auth/authpb"
|
"go.etcd.io/etcd/api/v3/authpb"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -21,9 +21,9 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/clientv3/balancer/picker"
|
"go.etcd.io/etcd/v3/clientv3/balancer/picker"
|
||||||
"go.etcd.io/etcd/v3/clientv3/balancer/resolver/endpoint"
|
"go.etcd.io/etcd/v3/clientv3/balancer/resolver/endpoint"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/mock/mockserver"
|
"go.etcd.io/etcd/v3/pkg/mock/mockserver"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
|
@ -26,11 +26,11 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3/balancer"
|
"go.etcd.io/etcd/v3/clientv3/balancer"
|
||||||
"go.etcd.io/etcd/v3/clientv3/balancer/picker"
|
"go.etcd.io/etcd/v3/clientv3/balancer/picker"
|
||||||
"go.etcd.io/etcd/v3/clientv3/balancer/resolver/endpoint"
|
"go.etcd.io/etcd/v3/clientv3/balancer/resolver/endpoint"
|
||||||
"go.etcd.io/etcd/v3/clientv3/credentials"
|
"go.etcd.io/etcd/v3/clientv3/credentials"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/logutil"
|
"go.etcd.io/etcd/v3/pkg/logutil"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
|
@ -21,7 +21,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
|
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
|
@ -17,7 +17,7 @@ package clientv3
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
|
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
package clientv3
|
package clientv3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CompactOp represents a compact operation.
|
// CompactOp represents a compact operation.
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
"go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCompactOp(t *testing.T) {
|
func TestCompactOp(t *testing.T) {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
package clientv3
|
package clientv3
|
||||||
|
|
||||||
import (
|
import (
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CompareTarget int
|
type CompareTarget int
|
||||||
|
|
|
@ -19,9 +19,9 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -18,9 +18,9 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func waitDelete(ctx context.Context, client *v3.Client, key string, rev int64) error {
|
func waitDelete(ctx context.Context, client *v3.Client, key string, rev int64) error {
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ErrLocked is returned by TryLock when Mutex is already locked by another session.
|
// ErrLocked is returned by TryLock when Mutex is already locked by another session.
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
grpccredentials "google.golang.org/grpc/credentials"
|
grpccredentials "google.golang.org/grpc/credentials"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -17,8 +17,8 @@ package clientv3
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/version"
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"google.golang.org/grpc/metadata"
|
"google.golang.org/grpc/metadata"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/version"
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"google.golang.org/grpc/metadata"
|
"google.golang.org/grpc/metadata"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleKV_put() {
|
func ExampleKV_put() {
|
||||||
|
|
|
@ -21,8 +21,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
|
@ -21,8 +21,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/transport"
|
"go.etcd.io/etcd/v3/pkg/transport"
|
||||||
|
|
|
@ -25,12 +25,12 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
|
|
|
@ -23,9 +23,9 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/clientv3/concurrency"
|
"go.etcd.io/etcd/v3/clientv3/concurrency"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
)
|
)
|
||||||
|
|
|
@ -28,8 +28,8 @@ import (
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/lease"
|
"go.etcd.io/etcd/v3/lease"
|
||||||
"go.etcd.io/etcd/v3/mvcc"
|
"go.etcd.io/etcd/v3/mvcc"
|
||||||
|
|
|
@ -22,9 +22,9 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
"go.etcd.io/etcd/v3/clientv3/mirror"
|
"go.etcd.io/etcd/v3/clientv3/mirror"
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -19,10 +19,10 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/clientv3/namespace"
|
"go.etcd.io/etcd/v3/clientv3/namespace"
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -22,9 +22,9 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
)
|
)
|
||||||
|
|
|
@ -21,8 +21,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
|
|
||||||
|
|
|
@ -20,9 +20,9 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/embed"
|
"go.etcd.io/etcd/v3/embed"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
|
@ -24,13 +24,13 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
mvccpb "go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc"
|
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/integration"
|
"go.etcd.io/etcd/v3/integration"
|
||||||
mvccpb "go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"google.golang.org/grpc/metadata"
|
"google.golang.org/grpc/metadata"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,7 +17,7 @@ package clientv3
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
|
@ -20,9 +20,9 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
v3pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
v3pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const revokeBackoff = 2 * time.Second
|
const revokeBackoff = 2 * time.Second
|
||||||
|
|
|
@ -20,11 +20,11 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/clientv3/concurrency"
|
"go.etcd.io/etcd/v3/clientv3/concurrency"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
|
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
"google.golang.org/grpc/status"
|
"google.golang.org/grpc/status"
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
v3pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
v3pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type txnLeasing struct {
|
type txnLeasing struct {
|
||||||
|
|
|
@ -17,8 +17,8 @@ package leasing
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
||||||
|
v3pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
v3pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func compareInt64(a, b int64) int {
|
func compareInt64(a, b int64) int {
|
||||||
|
|
|
@ -19,7 +19,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,9 +17,9 @@ package namespace
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type kvPrefix struct {
|
type kvPrefix struct {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
package clientv3
|
package clientv3
|
||||||
|
|
||||||
import pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
import pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
|
||||||
type opType int
|
type opType int
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestOpWithSort tests if WithSort(ASCEND, KEY) and WithLimit are specified,
|
// TestOpWithSort tests if WithSort(ASCEND, KEY) and WithLimit are specified,
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type mockKV struct {
|
type mockKV struct {
|
||||||
|
|
|
@ -17,8 +17,8 @@ package clientv3
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
|
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
|
|
|
@ -23,7 +23,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
|
|
|
@ -30,13 +30,13 @@ import (
|
||||||
|
|
||||||
"github.com/dustin/go-humanize"
|
"github.com/dustin/go-humanize"
|
||||||
bolt "go.etcd.io/bbolt"
|
bolt "go.etcd.io/bbolt"
|
||||||
|
"go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver"
|
"go.etcd.io/etcd/v3/etcdserver"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/membership"
|
"go.etcd.io/etcd/v3/etcdserver/api/membership"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/snap"
|
"go.etcd.io/etcd/v3/etcdserver/api/snap"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v2store"
|
"go.etcd.io/etcd/v3/etcdserver/api/v2store"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/cindex"
|
"go.etcd.io/etcd/v3/etcdserver/cindex"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/lease"
|
"go.etcd.io/etcd/v3/lease"
|
||||||
"go.etcd.io/etcd/v3/mvcc"
|
"go.etcd.io/etcd/v3/mvcc"
|
||||||
"go.etcd.io/etcd/v3/mvcc/backend"
|
"go.etcd.io/etcd/v3/mvcc/backend"
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
)
|
)
|
||||||
|
|
|
@ -21,9 +21,9 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
v3rpc "go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
v3rpc "go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
|
|
|
@ -17,7 +17,7 @@ package clientv3
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestEvent(t *testing.T) {
|
func TestEvent(t *testing.T) {
|
||||||
|
|
|
@ -17,8 +17,8 @@ package recipe
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Barrier creates a key in etcd to block processes, then deletes the key to
|
// Barrier creates a key in etcd to block processes, then deletes the key to
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
|
spb "go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
spb "go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -17,9 +17,9 @@ package recipe
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/clientv3/concurrency"
|
"go.etcd.io/etcd/v3/clientv3/concurrency"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// DoubleBarrier blocks processes on Enter until an expected count enters, then
|
// DoubleBarrier blocks processes on Enter until an expected count enters, then
|
||||||
|
|
|
@ -18,8 +18,8 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// PriorityQueue implements a multi-reader, multi-writer distributed queue.
|
// PriorityQueue implements a multi-reader, multi-writer distributed queue.
|
||||||
|
|
|
@ -17,8 +17,8 @@ package recipe
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Queue implements a multi-reader, multi-writer distributed queue.
|
// Queue implements a multi-reader, multi-writer distributed queue.
|
||||||
|
|
|
@ -17,9 +17,9 @@ package recipe
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/clientv3/concurrency"
|
"go.etcd.io/etcd/v3/clientv3/concurrency"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type RWMutex struct {
|
type RWMutex struct {
|
||||||
|
|
|
@ -17,8 +17,8 @@ package recipe
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// WaitEvents waits on a key until it observes the given events and returns the final one.
|
// WaitEvents waits on a key until it observes the given events and returns the final one.
|
||||||
|
|
|
@ -29,6 +29,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/etcdserver"
|
"go.etcd.io/etcd/v3/etcdserver"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/etcdhttp"
|
"go.etcd.io/etcd/v3/etcdserver/api/etcdhttp"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/rafthttp"
|
"go.etcd.io/etcd/v3/etcdserver/api/rafthttp"
|
||||||
|
@ -40,7 +41,6 @@ import (
|
||||||
runtimeutil "go.etcd.io/etcd/v3/pkg/runtime"
|
runtimeutil "go.etcd.io/etcd/v3/pkg/runtime"
|
||||||
"go.etcd.io/etcd/v3/pkg/transport"
|
"go.etcd.io/etcd/v3/pkg/transport"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
|
grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
|
||||||
"github.com/soheilhy/cmux"
|
"github.com/soheilhy/cmux"
|
||||||
|
|
|
@ -23,6 +23,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
etcdservergw "go.etcd.io/etcd/api/v3/etcdserverpb/gw"
|
||||||
"go.etcd.io/etcd/v3/clientv3/credentials"
|
"go.etcd.io/etcd/v3/clientv3/credentials"
|
||||||
"go.etcd.io/etcd/v3/etcdserver"
|
"go.etcd.io/etcd/v3/etcdserver"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3client"
|
"go.etcd.io/etcd/v3/etcdserver/api/v3client"
|
||||||
|
@ -33,7 +34,6 @@ import (
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3lock/v3lockpb"
|
"go.etcd.io/etcd/v3/etcdserver/api/v3lock/v3lockpb"
|
||||||
v3lockgw "go.etcd.io/etcd/v3/etcdserver/api/v3lock/v3lockpb/gw"
|
v3lockgw "go.etcd.io/etcd/v3/etcdserver/api/v3lock/v3lockpb/gw"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc"
|
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc"
|
||||||
etcdservergw "go.etcd.io/etcd/v3/etcdserver/etcdserverpb/gw"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/debugutil"
|
"go.etcd.io/etcd/v3/pkg/debugutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/httputil"
|
"go.etcd.io/etcd/v3/pkg/httputil"
|
||||||
"go.etcd.io/etcd/v3/pkg/transport"
|
"go.etcd.io/etcd/v3/pkg/transport"
|
||||||
|
|
|
@ -1682,6 +1682,6 @@ backward compatibility for `JSON` format and the format in non-interactive mode.
|
||||||
[etcd]: https://github.com/coreos/etcd
|
[etcd]: https://github.com/coreos/etcd
|
||||||
[READMEv2]: READMEv2.md
|
[READMEv2]: READMEv2.md
|
||||||
[v2key]: ../store/node_extern.go#L28-L37
|
[v2key]: ../store/node_extern.go#L28-L37
|
||||||
[v3key]: ../mvcc/mvccpb/kv.proto#L12-L29
|
[v3key]: ../api/mvccpb/kv.proto#L12-L29
|
||||||
[etcdrpc]: ../etcdserver/etcdserverpb/rpc.proto
|
[etcdrpc]: ../api/etcdserverpb/rpc.proto
|
||||||
[storagerpc]: ../mvcc/mvccpb/kv.proto
|
[storagerpc]: ../api/mvccpb/kv.proto
|
||||||
|
|
|
@ -23,9 +23,9 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/membership"
|
"go.etcd.io/etcd/v3/etcdserver/api/membership"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/snap"
|
"go.etcd.io/etcd/v3/etcdserver/api/snap"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/fileutil"
|
"go.etcd.io/etcd/v3/pkg/fileutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/idutil"
|
"go.etcd.io/etcd/v3/pkg/idutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/pbutil"
|
"go.etcd.io/etcd/v3/pkg/pbutil"
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/etcdctl/ctlv2/command"
|
"go.etcd.io/etcd/v3/etcdctl/ctlv2/command"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
|
@ -18,7 +18,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewAuthCommand returns the cobra command for "auth".
|
// NewAuthCommand returns the cobra command for "auth".
|
||||||
|
|
|
@ -20,8 +20,8 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/flags"
|
"go.etcd.io/etcd/v3/pkg/flags"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
|
@ -23,10 +23,10 @@ import (
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/clientv3/mirror"
|
"go.etcd.io/etcd/v3/clientv3/mirror"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3rpc/rpctypes"
|
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
|
@ -24,6 +24,8 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
"go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
"go.etcd.io/etcd/v3/client"
|
"go.etcd.io/etcd/v3/client"
|
||||||
"go.etcd.io/etcd/v3/etcdserver"
|
"go.etcd.io/etcd/v3/etcdserver"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api"
|
"go.etcd.io/etcd/v3/etcdserver/api"
|
||||||
|
@ -31,10 +33,8 @@ import (
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/snap"
|
"go.etcd.io/etcd/v3/etcdserver/api/snap"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v2error"
|
"go.etcd.io/etcd/v3/etcdserver/api/v2error"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v2store"
|
"go.etcd.io/etcd/v3/etcdserver/api/v2store"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/mvcc"
|
"go.etcd.io/etcd/v3/mvcc"
|
||||||
"go.etcd.io/etcd/v3/mvcc/backend"
|
"go.etcd.io/etcd/v3/mvcc/backend"
|
||||||
"go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/pbutil"
|
"go.etcd.io/etcd/v3/pkg/pbutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
"go.etcd.io/etcd/v3/raft/raftpb"
|
"go.etcd.io/etcd/v3/raft/raftpb"
|
||||||
|
|
|
@ -19,9 +19,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/clientv3/snapshot"
|
"go.etcd.io/etcd/v3/clientv3/snapshot"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
|
|
||||||
"github.com/dustin/go-humanize"
|
"github.com/dustin/go-humanize"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,10 +17,10 @@ package command
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
spb "go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/clientv3/snapshot"
|
"go.etcd.io/etcd/v3/clientv3/snapshot"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
spb "go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type fieldsPrinter struct{ printer }
|
type fieldsPrinter struct{ printer }
|
||||||
|
|
|
@ -18,9 +18,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
|
mvccpb "go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
mvccpb "go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type pbPrinter struct{ printer }
|
type pbPrinter struct{ printer }
|
||||||
|
|
|
@ -19,9 +19,9 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/clientv3/snapshot"
|
"go.etcd.io/etcd/v3/clientv3/snapshot"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
|
@ -25,8 +25,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/mvccpb"
|
||||||
v3 "go.etcd.io/etcd/v3/clientv3"
|
v3 "go.etcd.io/etcd/v3/clientv3"
|
||||||
pb "go.etcd.io/etcd/v3/mvcc/mvccpb"
|
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
|
@ -17,7 +17,7 @@ package command
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/version"
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
|
@ -25,7 +25,7 @@ import (
|
||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/version"
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
|
|
|
@ -24,10 +24,10 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/embed"
|
"go.etcd.io/etcd/v3/embed"
|
||||||
"go.etcd.io/etcd/v3/pkg/flags"
|
"go.etcd.io/etcd/v3/pkg/flags"
|
||||||
"go.etcd.io/etcd/v3/pkg/logutil"
|
"go.etcd.io/etcd/v3/pkg/logutil"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"sigs.k8s.io/yaml"
|
"sigs.k8s.io/yaml"
|
||||||
|
|
|
@ -29,6 +29,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/clientv3"
|
"go.etcd.io/etcd/v3/clientv3"
|
||||||
"go.etcd.io/etcd/v3/clientv3/leasing"
|
"go.etcd.io/etcd/v3/clientv3/leasing"
|
||||||
"go.etcd.io/etcd/v3/clientv3/namespace"
|
"go.etcd.io/etcd/v3/clientv3/namespace"
|
||||||
|
@ -36,7 +37,6 @@ import (
|
||||||
"go.etcd.io/etcd/v3/embed"
|
"go.etcd.io/etcd/v3/embed"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3election/v3electionpb"
|
"go.etcd.io/etcd/v3/etcdserver/api/v3election/v3electionpb"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v3lock/v3lockpb"
|
"go.etcd.io/etcd/v3/etcdserver/api/v3lock/v3lockpb"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/debugutil"
|
"go.etcd.io/etcd/v3/pkg/debugutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/logutil"
|
"go.etcd.io/etcd/v3/pkg/logutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/transport"
|
"go.etcd.io/etcd/v3/pkg/transport"
|
||||||
|
|
|
@ -17,8 +17,8 @@ package api
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/membership"
|
"go.etcd.io/etcd/v3/etcdserver/api/membership"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/coreos/go-semver/semver"
|
"github.com/coreos/go-semver/semver"
|
||||||
|
|
|
@ -20,11 +20,11 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/etcdserver"
|
"go.etcd.io/etcd/v3/etcdserver"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api"
|
"go.etcd.io/etcd/v3/etcdserver/api"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v2error"
|
"go.etcd.io/etcd/v3/etcdserver/api/v2error"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v2http/httptypes"
|
"go.etcd.io/etcd/v3/etcdserver/api/v2http/httptypes"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,8 @@ import (
|
||||||
|
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
|
"go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/etcdserver"
|
"go.etcd.io/etcd/v3/etcdserver"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/raft"
|
"go.etcd.io/etcd/v3/raft"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
|
|
@ -29,10 +29,10 @@ import (
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/coreos/go-semver/semver"
|
"github.com/coreos/go-semver/semver"
|
||||||
|
pb "go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api"
|
"go.etcd.io/etcd/v3/etcdserver/api"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/membership"
|
"go.etcd.io/etcd/v3/etcdserver/api/membership"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/rafthttp"
|
"go.etcd.io/etcd/v3/etcdserver/api/rafthttp"
|
||||||
pb "go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,7 +20,7 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"go.etcd.io/etcd/v3/version"
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestServeVersion(t *testing.T) {
|
func TestServeVersion(t *testing.T) {
|
||||||
|
|
|
@ -27,13 +27,13 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v2store"
|
"go.etcd.io/etcd/v3/etcdserver/api/v2store"
|
||||||
"go.etcd.io/etcd/v3/mvcc/backend"
|
"go.etcd.io/etcd/v3/mvcc/backend"
|
||||||
"go.etcd.io/etcd/v3/pkg/netutil"
|
"go.etcd.io/etcd/v3/pkg/netutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
"go.etcd.io/etcd/v3/raft"
|
"go.etcd.io/etcd/v3/raft"
|
||||||
"go.etcd.io/etcd/v3/raft/raftpb"
|
"go.etcd.io/etcd/v3/raft/raftpb"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"github.com/coreos/go-semver/semver"
|
"github.com/coreos/go-semver/semver"
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
|
|
|
@ -16,7 +16,7 @@ package membership
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/coreos/go-semver/semver"
|
"github.com/coreos/go-semver/semver"
|
||||||
"go.etcd.io/etcd/v3/version"
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/coreos/go-semver/semver"
|
"github.com/coreos/go-semver/semver"
|
||||||
"go.etcd.io/etcd/v3/version"
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -24,11 +24,11 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/snap"
|
"go.etcd.io/etcd/v3/etcdserver/api/snap"
|
||||||
pioutil "go.etcd.io/etcd/v3/pkg/ioutil"
|
pioutil "go.etcd.io/etcd/v3/pkg/ioutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
"go.etcd.io/etcd/v3/raft/raftpb"
|
"go.etcd.io/etcd/v3/raft/raftpb"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
humanize "github.com/dustin/go-humanize"
|
humanize "github.com/dustin/go-humanize"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
|
@ -26,11 +26,11 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/snap"
|
"go.etcd.io/etcd/v3/etcdserver/api/snap"
|
||||||
"go.etcd.io/etcd/v3/pkg/pbutil"
|
"go.etcd.io/etcd/v3/pkg/pbutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
"go.etcd.io/etcd/v3/raft/raftpb"
|
"go.etcd.io/etcd/v3/raft/raftpb"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
|
|
@ -24,11 +24,11 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
stats "go.etcd.io/etcd/v3/etcdserver/api/v2stats"
|
stats "go.etcd.io/etcd/v3/etcdserver/api/v2stats"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
"go.etcd.io/etcd/v3/raft/raftpb"
|
"go.etcd.io/etcd/v3/raft/raftpb"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
|
|
@ -25,12 +25,12 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
stats "go.etcd.io/etcd/v3/etcdserver/api/v2stats"
|
stats "go.etcd.io/etcd/v3/etcdserver/api/v2stats"
|
||||||
"go.etcd.io/etcd/v3/pkg/httputil"
|
"go.etcd.io/etcd/v3/pkg/httputil"
|
||||||
"go.etcd.io/etcd/v3/pkg/transport"
|
"go.etcd.io/etcd/v3/pkg/transport"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
"go.etcd.io/etcd/v3/raft/raftpb"
|
"go.etcd.io/etcd/v3/raft/raftpb"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"github.com/coreos/go-semver/semver"
|
"github.com/coreos/go-semver/semver"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
|
@ -26,11 +26,11 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
stats "go.etcd.io/etcd/v3/etcdserver/api/v2stats"
|
stats "go.etcd.io/etcd/v3/etcdserver/api/v2stats"
|
||||||
"go.etcd.io/etcd/v3/pkg/testutil"
|
"go.etcd.io/etcd/v3/pkg/testutil"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
"go.etcd.io/etcd/v3/raft/raftpb"
|
"go.etcd.io/etcd/v3/raft/raftpb"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"github.com/coreos/go-semver/semver"
|
"github.com/coreos/go-semver/semver"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
|
@ -23,9 +23,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/pkg/transport"
|
"go.etcd.io/etcd/v3/pkg/transport"
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"github.com/coreos/go-semver/semver"
|
"github.com/coreos/go-semver/semver"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
|
@ -22,8 +22,8 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/version"
|
||||||
"go.etcd.io/etcd/v3/raft/raftpb"
|
"go.etcd.io/etcd/v3/raft/raftpb"
|
||||||
"go.etcd.io/etcd/v3/version"
|
|
||||||
|
|
||||||
"github.com/coreos/go-semver/semver"
|
"github.com/coreos/go-semver/semver"
|
||||||
)
|
)
|
||||||
|
|
|
@ -26,9 +26,9 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/etcdserver"
|
"go.etcd.io/etcd/v3/etcdserver"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v2error"
|
"go.etcd.io/etcd/v3/etcdserver/api/v2error"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
"go.etcd.io/etcd/v3/pkg/types"
|
"go.etcd.io/etcd/v3/pkg/types"
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
|
@ -19,9 +19,9 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
|
"go.etcd.io/etcd/api/v3/etcdserverpb"
|
||||||
"go.etcd.io/etcd/v3/etcdserver"
|
"go.etcd.io/etcd/v3/etcdserver"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/api/v2error"
|
"go.etcd.io/etcd/v3/etcdserver/api/v2error"
|
||||||
"go.etcd.io/etcd/v3/etcdserver/etcdserverpb"
|
|
||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
)
|
)
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue