-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Copy files from ngp.api.toolkit * Remove references to external docs * Remove gentool and addressbook references * Change Infoblox-CTO/ngp.api.toolkit to infobloxopen/atlas-app-toolkit * Regenerate files pb files * Fix tests * Gopkg.lock update * Add latest changes for auth middleware from development * Add health check from development * Readme updates
- Loading branch information
1 parent
b43c6ba
commit f2e4fd9
Showing
74 changed files
with
10,135 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,5 @@ | ||
vendor | ||
bin | ||
postgres-data | ||
debug | ||
.vscode |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,68 @@ | ||
# Gopkg.toml example | ||
# | ||
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html | ||
# for detailed Gopkg.toml documentation. | ||
# | ||
# required = ["github.com/user/thing/cmd/thing"] | ||
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] | ||
# | ||
# [[constraint]] | ||
# name = "github.com/user/project" | ||
# version = "1.0.0" | ||
# | ||
# [[constraint]] | ||
# name = "github.com/user/project2" | ||
# branch = "dev" | ||
# source = "github.com/myfork/project2" | ||
# | ||
# [[override]] | ||
# name = "github.com/x/y" | ||
# version = "2.4.0" | ||
# | ||
# [prune] | ||
# non-go = false | ||
# go-tests = true | ||
# unused-packages = true | ||
[[constraint]] | ||
branch = "master" | ||
name = "github.com/infobloxopen/themis" | ||
|
||
[[constraint]] | ||
branch = "master" | ||
name = "github.com/dgrijalva/jwt-go" | ||
|
||
[[constraint]] | ||
branch = "master" | ||
name = "github.com/golang/protobuf" | ||
|
||
[[constraint]] | ||
branch = "master" | ||
name = "github.com/grpc-ecosystem/go-grpc-middleware" | ||
|
||
[[constraint]] | ||
name = "github.com/grpc-ecosystem/grpc-gateway" | ||
version = "1.3.1" | ||
|
||
[[constraint]] | ||
name = "github.com/lyft/protoc-gen-validate" | ||
version = "0.0.5" | ||
|
||
[[constraint]] | ||
name = "github.com/sirupsen/logrus" | ||
version = "1.0.4" | ||
|
||
[[constraint]] | ||
branch = "master" | ||
name = "golang.org/x/net" | ||
|
||
[[constraint]] | ||
branch = "master" | ||
name = "google.golang.org/genproto" | ||
|
||
[[constraint]] | ||
name = "google.golang.org/grpc" | ||
version = "1.10.0" | ||
|
||
[prune] | ||
go-tests = true | ||
unused-packages = true |
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,42 @@ | ||
# Absolute github repository name. | ||
REPO := github.com/infobloxopen/atlas-app-toolkit | ||
|
||
# Build directory absolute path. | ||
PROJECT_ROOT = $(CURDIR) | ||
|
||
# Utility docker image to build Go binaries | ||
# https://github.com/infobloxopen/buildtool | ||
BUILDTOOL_IMAGE := infoblox/buildtool:v8 | ||
|
||
# Utility docker image to generate Go files from .proto definition. | ||
# https://github.com/infobloxopen/atlas-gentool | ||
GENTOOL_IMAGE := infoblox/atlas-gentool:v2 | ||
|
||
BUILDER := docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO) -w /go/src/$(REPO) $(BUILDTOOL_IMAGE) | ||
# Set BUILD_TYPE environment variable to "local" in order to use local go instance instead of buildtool | ||
ifeq ($(BUILD_TYPE), local) | ||
BUILDER := | ||
endif | ||
|
||
.PHONY: default | ||
default: test | ||
|
||
test: check-fmt vendor | ||
$(BUILDER) go test ./... | ||
|
||
vendor: | ||
$(BUILDER) dep ensure | ||
|
||
check-fmt: | ||
test -z `$(BUILDER) go fmt ./...` | ||
|
||
.gen-op: | ||
docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO) $(GENTOOL_IMAGE) \ | ||
--go_out=:. $(REPO)/op/collection_operators.proto | ||
|
||
.gen-errdetails: | ||
docker run --rm -v $(PROJECT_ROOT):/go/src/$(REPO) $(GENTOOL_IMAGE) \ | ||
--go_out=:. $(REPO)/rpc/errdetails/error_details.proto | ||
|
||
.PHONY: gen | ||
gen: .gen-op .gen-errdetails |
Oops, something went wrong.