Skip to content

Commit

Permalink
Change watch rules to sync rules
Browse files Browse the repository at this point in the history
  • Loading branch information
curtis-fugue committed Oct 3, 2019
1 parent a1bbd49 commit 9c3a1ad
Show file tree
Hide file tree
Showing 26 changed files with 2,032 additions and 85 deletions.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -10,6 +10,7 @@ SWAGGER_URL=https://api.riskmanager.fugue.co/v0/swagger
SOURCES=$(shell find . -name '*.go')
GOPATH?=$(shell go env GOPATH)
UPDATE_ENV_SRC=$(shell find models -name "update_environment_input.go")
UPDATE_RULE_SRC=$(shell find models -name "update_custom_rule_input.go")

$(BINARY): $(SOURCES)
$(GO) build $(LD_FLAGS) -v -o fugue
Expand All @@ -35,6 +36,7 @@ gen: $(SWAGGER)
sed -i "" "s/BaselineID string/BaselineID *string/g" $(UPDATE_ENV_SRC)
sed -i "" "s/Remediation bool/Remediation *bool/g" $(UPDATE_ENV_SRC)
sed -i "" "s/ScanScheduleEnabled bool/ScanScheduleEnabled *bool/g" $(UPDATE_ENV_SRC)
sed -i "" "s/ScanScheduleEnabled bool/ScanScheduleEnabled *bool/g" $(UPDATE_RULE_SRC)

.PHONY: clean
clean:
Expand Down
45 changes: 38 additions & 7 deletions client/c_o_r_s/c_o_r_s_client.go

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

113 changes: 113 additions & 0 deletions client/c_o_r_s/options_rules_test_input_parameters.go

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

70 changes: 70 additions & 0 deletions client/c_o_r_s/options_rules_test_input_responses.go

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

113 changes: 113 additions & 0 deletions client/c_o_r_s/options_rules_test_swagger_parameters.go

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

0 comments on commit 9c3a1ad

Please sign in to comment.