Skip to content

Commit

Permalink
ZING-21742: Use JSON string for datasources (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
knightpp authored Jun 20, 2022
1 parent 6523d8c commit 3ba36fb
Show file tree
Hide file tree
Showing 68 changed files with 8,132 additions and 12,833 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ java/target
*.iml
.idea/

# vscode
.vscode/

# swap files
*.swp

Expand Down
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ endif
PROTOC_PARAMS := --proto_path=${GOPATH}/googleapis
LOCAL_USER_ID := $(shell id -u)
CONTAINER_DIR := /tmp/working
ZENKIT_BUILD_VERSION := 1.7.9
ZENKIT_BUILD_VERSION := 1.11.0
BUILD_IMG := zenoss/zenkit-build:$(ZENKIT_BUILD_VERSION)
DOCKER_NETWORK = host
DOCKER_PARAMS := --rm -v $(ROOTDIR):$(CONTAINER_DIR):rw \
-v $(ROOTDIR):/go/src/$(PACKAGE):rw \
-v $(ROOTDIR):/go/src/$(PACKAGE):rw \
-e LOCAL_USER_ID=$(LOCAL_USER_ID) \
--network $(DOCKER_NETWORK) \
--security-opt seccomp=unconfined \
-w /go/src/$(PACKAGE)

DOCKER_CMD := docker run -t $(DOCKER_PARAMS) $(BUILD_IMG)
Expand All @@ -72,7 +73,7 @@ PROJECTS := $(subst .env,,$(notdir $(wildcard $(PROJECTSDIR)/*.env)))
default: clean all_containerized

.PHONY: all
all: $(GO_FILES) $(GO_GW_FILES) mocks pybuild
all: $(GO_FILES) $(GO_GW_FILES) mocks tidy pybuild

.PHONY: all_containerized
all_containerized: package
Expand Down Expand Up @@ -104,12 +105,16 @@ $(GODIR)/%.pb.gw.go: $(PROTOFILES) $(GODIR)
--grpc-gateway_out=logtostderr=true:$(GO_SRC_DIR)

.PHONY: vendor
vendor: $(GO_FILES) $(GO_GW_FILES)
GO111MODULE=on $(GO) mod vendor
vendor:
$(GO) mod vendor

.PHONY: tidy
tidy:
$(GO) mod tidy

.PHONY: mocks
mocks: $(GO_FILES) $(GO_GW_FILES) $(GODIR) vendor
@$(GOMOCKERY) -all -inpkg -dir $(GODIR)
mocks: $(GO_FILES) $(GO_GW_FILES) $(GODIR) tidy vendor
@$(GOMOCKERY) --dir $(GODIR) --all --inpackage --with-expecter

.PHONY: $(PYTHONDIR)/%_pb2.py
$(PYTHONDIR)/%_pb2.py: $(PROTOFILES) $(PYTHONDIR)
Expand Down
17 changes: 12 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
module github.com/zenoss/zenoss-protobufs

go 1.14
go 1.17

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/golang/protobuf v1.5.2
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/stretchr/objx v0.1.1 // indirect
github.com/stretchr/testify v1.7.0
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 // indirect
google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106
google.golang.org/grpc v1.45.0
google.golang.org/protobuf v1.27.1
)

require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.1.0 // indirect
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 // indirect
golang.org/x/text v0.3.7 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XP
github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
Expand Down Expand Up @@ -51,9 +50,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
Expand Down
Loading

0 comments on commit 3ba36fb

Please sign in to comment.