Skip to content

Commit

Permalink
Move toolkit to public repo (#1)
Browse files Browse the repository at this point in the history
* 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
Evgeniy-L authored and johnbelamaric committed Apr 11, 2018
1 parent b43c6ba commit f2e4fd9
Show file tree
Hide file tree
Showing 74 changed files with 10,135 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vendor
bin
postgres-data
debug
.vscode
228 changes: 228 additions & 0 deletions Gopkg.lock

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

68 changes: 68 additions & 0 deletions Gopkg.toml
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
42 changes: 42 additions & 0 deletions Makefile
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
Loading

0 comments on commit f2e4fd9

Please sign in to comment.