Skip to content

Commit

Permalink
upgrade v2 references (#420)
Browse files Browse the repository at this point in the history
* upgrade references to v2

* .

* .

* .
  • Loading branch information
brocwoodworthIBLX authored Mar 18, 2024
1 parent d407d80 commit 794d2b1
Show file tree
Hide file tree
Showing 12 changed files with 181 additions and 159 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ check-fmt:
test -z `go fmt ./...`

.gen-query:
docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO) $(GENTOOL_IMAGE) \
docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO)/v2 $(GENTOOL_IMAGE) \
--go_out=:. $(REPO)/query/collection_operators.proto

.gen-errdetails:
docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO) $(GENTOOL_IMAGE) \
docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO)/v2 $(GENTOOL_IMAGE) \
--go_out=:. $(REPO)/rpc/errdetails/error_details.proto

.gen-errfields:
docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO) $(GENTOOL_IMAGE) \
docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO)/v2 $(GENTOOL_IMAGE) \
--go_out=:. $(REPO)/rpc/errfields/error_fields.proto

.gen-servertestdata:
docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO) $(GENTOOL_IMAGE) \
--go_out=plugins=grpc:. --grpc-gateway_out=logtostderr=true:. $(REPO)/server/testdata/test.proto
docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO)/v2 $(GENTOOL_IMAGE) \
--go_out=. --go-grpc_out=. --grpc-gateway_out=logtostderr=true:. $(REPO)/v2/server/testdata/test.proto

.PHONY: gen
gen: .gen-query .gen-errdetails .gen-errfields
gen: .gen-query .gen-errdetails .gen-errfields .gen-servertestdata

.PHONY: mocks
mocks:
Expand Down
2 changes: 1 addition & 1 deletion gateway/internal/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package infoblox.test;

import "wrappers.proto";

option go_package = "github.com/infobloxopen/atlas-app-toolkit/gateway;gateway_test";
option go_package = "github.com/infobloxopen/atlas-app-toolkit/v2/gateway;gateway_test";

message User {
string name = 1;
Expand Down
10 changes: 5 additions & 5 deletions query/collection_operators.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 query/collection_operators.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package infoblox.api;

import "protoc-gen-openapiv2/options/annotations.proto";

option go_package = "github.com/infobloxopen/atlas-app-toolkit/query;query";
option go_package = "github.com/infobloxopen/atlas-app-toolkit/v2/query;query";

// SortCriteria represents sort criteria
message SortCriteria {
Expand Down
4 changes: 2 additions & 2 deletions rpc/errdetails/error_details.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 rpc/errdetails/error_details.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package atlas.rpc;

option go_package = "github.com/infobloxopen/atlas-app-toolkit/rpc/errdetails;errdetails";
option go_package = "github.com/infobloxopen/atlas-app-toolkit/v2/rpc/errdetails;errdetails";

// TargetInfo is a default representation of error details that conforms
// REST API Syntax Specification
Expand Down
4 changes: 2 additions & 2 deletions rpc/errfields/error_fields.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 rpc/resource/resource.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package atlas.rpc;

import "protoc-gen-openapiv2/options/annotations.proto";

option go_package = "github.com/infobloxopen/atlas-app-toolkit/rpc/resource;resource";
option go_package = "github.com/infobloxopen/atlas-app-toolkit/v2/rpc/resource;resource";

// A number of application services require a mechanism to
// encode the identity of a particular resource across applications.
Expand Down
Loading

0 comments on commit 794d2b1

Please sign in to comment.