-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f0f4cc
commit 62bc75e
Showing
120 changed files
with
14,555 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
vendor/ | ||
|
||
.vscode | ||
fugue | ||
swagger.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
GO=GO111MODULE=on go | ||
BINARY=fugue | ||
SWAGGER=swagger.yaml | ||
SWAGGER_URL=https://api.riskmanager.fugue.co/v0/swagger | ||
SOURCES=$(shell find . -name '*.go') | ||
GOPATH?=$(shell echo "$$HOME")/go | ||
|
||
$(BINARY): $(SOURCES) | ||
$(GO) build -v -o fugue | ||
|
||
.PHONY: install | ||
install: $(BINARY) | ||
cp $(BINARY) $(GOPATH)/bin/ | ||
|
||
$(SWAGGER): | ||
wget -q -O $(SWAGGER) $(SWAGGER_URL) | ||
|
||
.PHONY: validate | ||
validate: $(SWAGGER) | ||
swagger validate $(SWAGGER) | ||
|
||
.PHONY: gen | ||
gen: $(SWAGGER) | ||
swagger generate client -f $(SWAGGER) | ||
sed -i "" "s/,omitempty//g" $(shell find models -name "*.go") | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f $(BINARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Fugue API Client | ||
|
||
This is a command line client for the Fugue API. | ||
|
||
For information about enabling a client in your account, see | ||
[the documenation](https://riskmanagerdocs.fugue.co/api.html). More details of the underlying Swagger API are available | ||
[here](https://riskmanagerdocs.fugue.co/Resources/API/swagger.html). | ||
|
||
This project is under active development and is not yet stable. Commands will | ||
change as we incorporate feedback. | ||
|
||
## Environment Variables | ||
|
||
The client uses the following *required* environment variables: | ||
|
||
* `FUGUE_API_ID` - your API client ID | ||
* `FUGUE_API_SECRET` - your API client secret | ||
|
||
## Build | ||
|
||
Build the client executable: | ||
|
||
``` | ||
make build | ||
``` | ||
|
||
Install to $GOPATH/bin: | ||
|
||
``` | ||
make install | ||
``` | ||
|
||
## Usage | ||
|
||
Show usage: | ||
|
||
``` | ||
fugue -h | ||
``` | ||
|
||
Show usage for a subcommand: | ||
|
||
``` | ||
fugue list -h | ||
``` | ||
|
||
List environments: | ||
|
||
``` | ||
fugue list environments | ||
``` | ||
|
||
List environment scans: | ||
|
||
``` | ||
fugue list scans [environment-id] | ||
``` | ||
|
||
List environment events: | ||
|
||
``` | ||
fugue list events [environment-id] | ||
``` | ||
|
||
Trigger a scan: | ||
|
||
``` | ||
fugue scan [environment-id] | ||
``` | ||
|
||
Compliance by resource types: | ||
|
||
``` | ||
fugue get compliance-by-resource-types [scan-id] | ||
``` | ||
|
||
Compliance by rules: | ||
|
||
``` | ||
fugue get compliance-by-rules [scan-id] | ||
``` | ||
|
||
## Aliases | ||
|
||
You may use the shorthand `env` instead of `environment` when running commands. | ||
|
||
For example: | ||
|
||
``` | ||
fugue list envs | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.