Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TEST_FLAGS ?= -v -race

PROTOS := pkg/api/schema/schema.proto pkg/api/outputs/outputs.proto pkg/api/version/version.proto
PROTO_URLS := https://raw.githubusercontent.com/falcosecurity/falco/master/userspace/falco/schema.proto https://raw.githubusercontent.com/falcosecurity/falco/master/userspace/falco/outputs.proto https://raw.githubusercontent.com/falcosecurity/falco/master/userspace/falco/version.proto
PROTO_SHAS := ad4e9d62717e82b9fb9ec30625d392fd66ced3e53eb73faea739c63063650ac3 5e3bdc564c4d38f7d70a8fe50e6022a733ed93197edff6b824a24c6a45fed6c3 c57a8a3f37a14ca8f33ce6d26156c9348e716029bca87bf9143807a68b1f31f5
PROTO_SHAS := ad4e9d62717e82b9fb9ec30625d392fd66ced3e53eb73faea739c63063650ac3 18fa7f7a4870ae0e0703c775fda41362aa654445893546d9b2d49f59dd487026 c57a8a3f37a14ca8f33ce6d26156c9348e716029bca87bf9143807a68b1f31f5

PROTO_DIRS := $(dir ${PROTOS})
PROTO_DIRS_INCLUDES := $(patsubst %/, -I %, ${PROTO_DIRS})
Expand All @@ -32,7 +32,7 @@ $(1):
@mkdir -p ${PROTO_DIRS}
@curl --silent -Lo $(1) $(2)
@echo $(3) $(1) | sha256sum -c
@${PROTOC} ${PROTO_DIRS_INCLUDES} $(1) --go_out=plugins=grpc,paths=source_relative:$(dir $(1))
@${PROTOC} ${PROTO_DIRS_INCLUDES} $(1) --go_out=paths=source_relative:$(dir $(1)) --go-grpc_out=paths=source_relative:$(dir $(1))
endef
$(foreach PROTO,$(PROTOS),\
$(eval $(call download_rule,$(PROTO),$(firstword $(PROTO_URLS)),$(firstword $(PROTO_SHAS))))\
Expand All @@ -50,7 +50,7 @@ MOCK_SYMBOLS := ServiceClient,Service_GetClient,Service_SubClient ServiceClient
define generate_mock
$(2)/$(3): $(1) protos
@mkdir -p $(2)
$(MOCKGEN) $(shell cat $(1) | sed -n -e 's/^option go_package = "\(.*\)";/\1/p') $(4) > $(2)/$(3)
$(MOCKGEN) $$(shell cat $(1) | sed -n -e 's/^option go_package = "\(.*\)";/\1/p') $(4) > $(2)/$(3)
endef
$(foreach PROTO,$(MOCK_PROTOS),\
$(eval $(call generate_mock,$(PROTO),$(dir $(PROTO))mocks,$(patsubst %.proto,%.go,$(notdir $(PROTO))),$(firstword $(MOCK_SYMBOLS))))\
Expand Down
17 changes: 8 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ module github.com/falcosecurity/client-go
go 1.12

require (
github.com/gogo/protobuf v1.3.1
github.com/golang/mock v1.4.3
github.com/golang/protobuf v1.4.1
github.com/stretchr/testify v1.5.1
golang.org/x/net v0.0.0-20200320220750-118fecf932d8 // indirect
golang.org/x/sys v0.0.0-20200321134203-328b4cd54aae // indirect
golang.org/x/text v0.3.2 // indirect
google.golang.org/grpc v1.28.0
google.golang.org/protobuf v1.25.0
github.com/gogo/protobuf v1.3.2
github.com/golang/mock v1.6.0
github.com/golang/protobuf v1.5.2
github.com/stretchr/testify v1.7.0
golang.org/x/text v0.3.7 // indirect
google.golang.org/grpc v1.40.0
google.golang.org/protobuf v1.27.1
rsc.io/quote/v3 v3.1.0 // indirect
)
87 changes: 87 additions & 0 deletions go.sum

Large diffs are not rendered by default.

225 changes: 26 additions & 199 deletions pkg/api/outputs/outputs.pb.go

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

Loading