go.mod: use go.etcd.io/etcd/v3 versioning

This change makes the etcd package compatible with the existing Go
ecosystem for module versioning.

Used this tool to update package imports:
  https://github.com/KSubedi/gomove
This commit is contained in:
Brandon Philips
2020-04-26 21:03:37 +00:00
parent 262c939805
commit 96cce208c2
558 changed files with 1475 additions and 1434 deletions

View File

@@ -20,7 +20,7 @@ import (
"strings"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
func NewAuthCommands() cli.Command {

View File

@@ -23,15 +23,15 @@ import (
"regexp"
"time"
"go.etcd.io/etcd/etcdserver/api/membership"
"go.etcd.io/etcd/etcdserver/api/snap"
"go.etcd.io/etcd/etcdserver/etcdserverpb"
"go.etcd.io/etcd/pkg/fileutil"
"go.etcd.io/etcd/pkg/idutil"
"go.etcd.io/etcd/pkg/pbutil"
"go.etcd.io/etcd/raft/raftpb"
"go.etcd.io/etcd/wal"
"go.etcd.io/etcd/wal/walpb"
"go.etcd.io/etcd/v3/etcdserver/api/membership"
"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/idutil"
"go.etcd.io/etcd/v3/pkg/pbutil"
"go.etcd.io/etcd/v3/raft/raftpb"
"go.etcd.io/etcd/v3/wal"
"go.etcd.io/etcd/v3/wal/walpb"
"github.com/urfave/cli"
bolt "go.etcd.io/bbolt"

View File

@@ -24,7 +24,7 @@ import (
"os/signal"
"time"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
"github.com/urfave/cli"
)

View File

@@ -20,7 +20,7 @@ import (
"os"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
const (

View File

@@ -22,7 +22,7 @@ import (
"os/exec"
"os/signal"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
"github.com/urfave/cli"
)

View File

@@ -19,7 +19,7 @@ import (
"fmt"
"os"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
// printResponseKey only supports to print key correctly.

View File

@@ -20,7 +20,7 @@ import (
"os"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
// NewGetCommand returns the CLI command for "get".

View File

@@ -18,7 +18,7 @@ import (
"fmt"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
func NewLsCommand() cli.Command {

View File

@@ -20,7 +20,7 @@ import (
"time"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
// NewMakeCommand returns the CLI command for "mk".

View File

@@ -19,7 +19,7 @@ import (
"time"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
// NewMakeDirCommand returns the CLI command for "mkdir".

View File

@@ -18,7 +18,7 @@ import (
"errors"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
// NewRemoveCommand returns the CLI command for "rm".

View File

@@ -18,7 +18,7 @@ import (
"errors"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
// NewRemoveDirCommand returns the CLI command for "rmdir".

View File

@@ -21,8 +21,8 @@ import (
"strings"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/pkg/pathutil"
"go.etcd.io/etcd/v3/client"
"go.etcd.io/etcd/v3/pkg/pathutil"
)
func NewRoleCommands() cli.Command {

View File

@@ -20,7 +20,7 @@ import (
"time"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
// NewSetCommand returns the CLI command for "set".

View File

@@ -16,7 +16,7 @@ package command
import (
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
// NewSetDirCommand returns the CLI command for "setDir".

View File

@@ -20,7 +20,7 @@ import (
"time"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
// NewUpdateCommand returns the CLI command for "update".

View File

@@ -19,7 +19,7 @@ import (
"time"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
// NewUpdateDirCommand returns the CLI command for "updatedir".

View File

@@ -21,7 +21,7 @@ import (
"github.com/bgentry/speakeasy"
"github.com/urfave/cli"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
)
func NewUserCommands() cli.Command {

View File

@@ -28,8 +28,8 @@ import (
"syscall"
"time"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/pkg/transport"
"go.etcd.io/etcd/v3/client"
"go.etcd.io/etcd/v3/pkg/transport"
"github.com/bgentry/speakeasy"
"github.com/urfave/cli"

View File

@@ -21,7 +21,7 @@ import (
"os"
"os/signal"
"go.etcd.io/etcd/client"
"go.etcd.io/etcd/v3/client"
"github.com/urfave/cli"
)

View File

@@ -20,8 +20,8 @@ import (
"os"
"time"
"go.etcd.io/etcd/etcdctl/ctlv2/command"
"go.etcd.io/etcd/version"
"go.etcd.io/etcd/v3/etcdctl/ctlv2/command"
"go.etcd.io/etcd/v3/version"
"github.com/urfave/cli"
)