Skip to content

Commit

Permalink
Move registry/server/names to pkg/names (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
timburks authored Feb 3, 2023
1 parent 5697a52 commit 27fed94
Show file tree
Hide file tree
Showing 91 changed files with 72 additions and 72 deletions.
2 changes: 1 addition & 1 deletion cmd/registry/cmd/annotate/annotate.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"github.com/apigee/registry/gapic"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/spf13/cobra"
"google.golang.org/genproto/protobuf/field_mask"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/apply/apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (

"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/connection/grpctest"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry"
"github.com/apigee/registry/server/registry/names"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/check/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/apigee/registry/cmd/registry/cmd/check/lint"
"github.com/apigee/registry/cmd/registry/cmd/check/rules"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/server/registry/names"
"github.com/apigee/registry/pkg/names"
"github.com/spf13/cobra"
"gopkg.in/yaml.v3"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/check/lint/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"github.com/apigee/registry/cmd/registry/cmd/check/tree"
"github.com/apigee/registry/cmd/registry/core"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
)

type contextKey int
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/check/lint/checker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"testing"

"github.com/apigee/registry/pkg/connection/grpctest"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry"
"github.com/apigee/registry/server/registry/names"
"github.com/apigee/registry/server/registry/test/seeder"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/check/rules/rule1000/rule1000.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (

"github.com/apigee/registry/cmd/registry/cmd/check/lint"
"github.com/apigee/registry/cmd/registry/types"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"google.golang.org/protobuf/proto"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/check/rules/rule1001/rule1001.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"strings"

"github.com/apigee/registry/cmd/registry/cmd/check/lint"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"google.golang.org/protobuf/proto"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/check/rules/rule101/rule101.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"strings"

"github.com/apigee/registry/cmd/registry/cmd/check/lint"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
)

var ruleNum = 101
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/check/rules/rule102/rule102.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"strings"

"github.com/apigee/registry/cmd/registry/cmd/check/lint"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
)

var ruleNum = 102
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/check/rules/rule104/rule104.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"strings"

"github.com/apigee/registry/cmd/registry/cmd/check/lint"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
)

var ruleNum = 104
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/check/rules/rule106/rule106.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"strings"

"github.com/apigee/registry/cmd/registry/cmd/check/lint"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
)

var ruleNum = 106
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/check/tree/tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"context"

"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
)

// HandlerSet should return an appropriate Handler for each
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/compute/complexity/complexity.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"github.com/apigee/registry/cmd/registry/types"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/spf13/cobra"
"google.golang.org/protobuf/proto"

Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/compute/complexity/complexity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (

"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/connection/grpctest"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry"
"github.com/apigee/registry/server/registry/names"
metrics "github.com/google/gnostic/metrics"
"github.com/google/go-cmp/cmp"
"google.golang.org/grpc/codes"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/compute/conformance/conformance.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"github.com/apigee/registry/cmd/registry/types"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/spf13/cobra"
"google.golang.org/protobuf/proto"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/compute/lint/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"github.com/apigee/registry/cmd/registry/types"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/spf13/cobra"
"google.golang.org/protobuf/proto"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/compute/lintstats/lintstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"github.com/apigee/registry/gapic"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/spf13/cobra"
"google.golang.org/protobuf/proto"

Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/compute/vocabulary/vocabulary.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"github.com/apigee/registry/cmd/registry/types"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/google/gnostic/metrics/vocabulary"
"github.com/spf13/cobra"
"google.golang.org/protobuf/proto"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/diff/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"github.com/apigee/registry/cmd/registry/core"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/hexops/gotextdiff"
"github.com/hexops/gotextdiff/myers"
"github.com/hexops/gotextdiff/span"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/export/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
"github.com/apigee/registry/cmd/registry/core"
"github.com/apigee/registry/cmd/registry/patch"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/label/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"github.com/apigee/registry/gapic"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/spf13/cobra"
"google.golang.org/genproto/protobuf/field_mask"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/resolve/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"github.com/apigee/registry/cmd/registry/core"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/google/uuid"
"github.com/spf13/cobra"
"google.golang.org/protobuf/proto"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/resolve/resolve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"github.com/apigee/registry/cmd/registry/cmd/apply"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/connection/grpctest"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry"
"github.com/apigee/registry/server/registry/names"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"google.golang.org/api/iterator"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/upload/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"github.com/apigee/registry/cmd/registry/types"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/spf13/cobra"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/cmd/vocabulary/vocabulary.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"github.com/apigee/registry/cmd/registry/types"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/spf13/cobra"
"google.golang.org/protobuf/proto"

Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/conformance/conformance-task.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"github.com/apigee/registry/cmd/registry/types"
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"google.golang.org/protobuf/proto"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/controller/controller-timestamp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing"
"time"

"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/apigee/registry/server/registry/test/seeder"
"github.com/google/go-cmp/cmp"
"google.golang.org/protobuf/types/known/durationpb"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"github.com/apigee/registry/gapic"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/connection/grpctest"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry"
"github.com/apigee/registry/server/registry/names"
"github.com/apigee/registry/server/registry/test/seeder"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/controller/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/apigee/registry/cmd/registry/patterns"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
)

type listingClient interface {
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/patch/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/models"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/patch/artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"github.com/apigee/registry/gapic"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/models"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/patch/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"github.com/apigee/registry/gapic"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/models"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"gopkg.in/yaml.v3"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/patch/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (

"github.com/apigee/registry/cmd/registry/core"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/google/go-cmp/cmp"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/patch/patch_lists_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"testing"

"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/patch/patch_project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"testing"

"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"github.com/google/go-cmp/cmp"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/patch/patch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
"github.com/apigee/registry/cmd/registry/core"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/connection/grpctest"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry"
"github.com/apigee/registry/server/registry/names"
"github.com/apigee/registry/server/registry/test/seeder"
metrics "github.com/google/gnostic/metrics"
"github.com/google/go-cmp/cmp"
Expand Down
2 changes: 1 addition & 1 deletion cmd/registry/patch/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"github.com/apigee/registry/log"
"github.com/apigee/registry/pkg/connection"
"github.com/apigee/registry/pkg/models"
"github.com/apigee/registry/pkg/names"
"github.com/apigee/registry/pkg/visitor"
"github.com/apigee/registry/rpc"
"github.com/apigee/registry/server/registry/names"
"google.golang.org/grpc/metadata"
"gopkg.in/yaml.v3"
)
Expand Down
Loading

0 comments on commit 27fed94

Please sign in to comment.