Skip to content

Commit

Permalink
*: move "auth" to "internal/auth"
Browse files Browse the repository at this point in the history
  • Loading branch information
mitake committed Jan 29, 2018
1 parent ce0ad37 commit 83f93a1
Show file tree
Hide file tree
Showing 23 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion clientv3/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"fmt"
"strings"

"github.com/coreos/etcd/auth/authpb"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/internal/auth/authpb"

"google.golang.org/grpc"
)
Expand Down
2 changes: 1 addition & 1 deletion clientv3/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"testing"
"time"

"github.com/coreos/etcd/auth"
"github.com/coreos/etcd/integration"
"github.com/coreos/etcd/internal/auth"
"github.com/coreos/etcd/pkg/testutil"
"golang.org/x/crypto/bcrypt"
)
Expand Down
2 changes: 1 addition & 1 deletion embed/serve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"os"
"testing"

"github.com/coreos/etcd/auth"
"github.com/coreos/etcd/internal/auth"
)

// TestStartEtcdWrongToken ensures that StartEtcd with wrong configs returns with error.
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/api/v3rpc/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import (
"crypto/sha256"
"io"

"github.com/coreos/etcd/auth"
"github.com/coreos/etcd/etcdserver"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/internal/auth"
"github.com/coreos/etcd/internal/mvcc"
"github.com/coreos/etcd/internal/mvcc/backend"
"github.com/coreos/etcd/pkg/types"
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/api/v3rpc/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"context"
"strings"

"github.com/coreos/etcd/auth"
"github.com/coreos/etcd/etcdserver"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
"github.com/coreos/etcd/etcdserver/membership"
"github.com/coreos/etcd/internal/auth"
"github.com/coreos/etcd/internal/lease"
"github.com/coreos/etcd/internal/mvcc"

Expand Down
2 changes: 1 addition & 1 deletion etcdserver/api/v3rpc/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"sync"
"time"

"github.com/coreos/etcd/auth"
"github.com/coreos/etcd/etcdserver"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/internal/auth"
"github.com/coreos/etcd/internal/mvcc"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"sort"
"time"

"github.com/coreos/etcd/auth"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/internal/auth"
"github.com/coreos/etcd/internal/lease"
"github.com/coreos/etcd/internal/mvcc"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/apply_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package etcdserver
import (
"sync"

"github.com/coreos/etcd/auth"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/internal/auth"
"github.com/coreos/etcd/internal/lease"
"github.com/coreos/etcd/internal/mvcc"
)
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/etcdserverpb/rpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion etcdserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ import (
"sync/atomic"
"time"

"github.com/coreos/etcd/auth"
"github.com/coreos/etcd/etcdserver/api"
"github.com/coreos/etcd/etcdserver/api/v2http/httptypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/etcdserver/membership"
"github.com/coreos/etcd/etcdserver/stats"
"github.com/coreos/etcd/internal/alarm"
"github.com/coreos/etcd/internal/auth"
"github.com/coreos/etcd/internal/compactor"
"github.com/coreos/etcd/internal/discovery"
"github.com/coreos/etcd/internal/lease"
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/v3_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"encoding/binary"
"time"

"github.com/coreos/etcd/auth"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/etcdserver/membership"
"github.com/coreos/etcd/internal/auth"
"github.com/coreos/etcd/internal/lease"
"github.com/coreos/etcd/internal/lease/leasehttp"
"github.com/coreos/etcd/internal/mvcc"
Expand Down
2 changes: 1 addition & 1 deletion integration/v3_auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"testing"
"time"

"github.com/coreos/etcd/auth/authpb"
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/internal/auth/authpb"
"github.com/coreos/etcd/pkg/testutil"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package auth

import (
"github.com/coreos/etcd/auth/authpb"
"github.com/coreos/etcd/internal/auth/authpb"
"github.com/coreos/etcd/internal/mvcc/backend"
"github.com/coreos/etcd/pkg/adt"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package auth
import (
"testing"

"github.com/coreos/etcd/auth/authpb"
"github.com/coreos/etcd/internal/auth/authpb"
"github.com/coreos/etcd/pkg/adt"
)

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion auth/store.go → internal/auth/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"sync"
"sync/atomic"

"github.com/coreos/etcd/auth/authpb"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/internal/auth/authpb"
"github.com/coreos/etcd/internal/mvcc/backend"

"github.com/coreos/pkg/capnslog"
Expand Down
2 changes: 1 addition & 1 deletion auth/store_test.go → internal/auth/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"testing"
"time"

"github.com/coreos/etcd/auth/authpb"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/internal/auth/authpb"
"github.com/coreos/etcd/internal/mvcc/backend"

"golang.org/x/crypto/bcrypt"
Expand Down

0 comments on commit 83f93a1

Please sign in to comment.