Initial cut for removing the old API.
Remove API reverse proxy server and google dependencies. Remove API config. Remove API client. Remove API GRPC server. Remove unused ImageCopy function. image.Duplicate is used. Update Makefile to avoid protobuf builds. Signed-off-by: Matt Hink <mhink@ciq.com>
This commit is contained in:
committed by
Jonathon Anderson
parent
edc0e151c3
commit
be73ac056a
20
Makefile
20
Makefile
@@ -236,25 +236,5 @@ dist: vendor
|
||||
lint: $(GOLANGCI_LINT)
|
||||
deadcode: $(GOLANG_DEADCODE)
|
||||
|
||||
protofiles = internal/pkg/api/routes/wwapiv1/routes.pb.go \
|
||||
internal/pkg/api/routes/wwapiv1/routes.pb.gw.go \
|
||||
internal/pkg/api/routes/wwapiv1/routes_grpc.pb.go
|
||||
.PHONY: proto
|
||||
proto: $(protofiles)
|
||||
|
||||
routes_proto = internal/pkg/api/routes/v1/routes.proto
|
||||
$(protofiles): $(routes_proto) $(PROTOC) $(PROTOC_GEN_GRPC_GATEWAY) $(PROTOC_GEN_GO) $(PROTOC_GEN_GO_GRPC)
|
||||
PATH=$(TOOLS_BIN):$(PATH) $(PROTOC) \
|
||||
-I /usr/include -I $(shell dirname $(routes_proto)) -I=. \
|
||||
--grpc-gateway_opt logtostderr=true \
|
||||
--go_out=. \
|
||||
--go-grpc_out=. \
|
||||
--grpc-gateway_out=. \
|
||||
routes.proto
|
||||
|
||||
.PHONY: cleanproto
|
||||
cleanproto:
|
||||
rm -f $(protofiles)
|
||||
|
||||
clean: cleanvendor
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user