Add v2 with project API 38/98638/3
authorKiran Kamineni <kiran.k.kamineni@intel.com>
Tue, 19 Nov 2019 19:51:46 +0000 (11:51 -0800)
committerKiran Kamineni <kiran.k.kamineni@intel.com>
Wed, 20 Nov 2019 00:10:31 +0000 (16:10 -0800)
commit432cee9b36a87f63e787fe4465ec385aa750e172
tree7ebcaa63f7e629e25602bccb041f26079c2f6f0b
parentc58a35989f731a0d1c8ec75e85480873da4b1c35
Add v2 with project API

Definiton, Profile and other APIs will
migrate to this area with support for Projects and v2.
This patch adds the Project API only along with
support for the Mongo database.
Migration of other APIs will happen in future patches

Issue-ID: MULTICLOUD-871
Change-Id: I2eb2d0db2384fd58d1ec874e24fa9125a1f5b288
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
23 files changed:
src/Makefile
src/orchestrator/Makefile [new file with mode: 0644]
src/orchestrator/api/api.go [new file with mode: 0644]
src/orchestrator/api/projecthandler.go [new file with mode: 0644]
src/orchestrator/api/projecthandler_test.go [new file with mode: 0644]
src/orchestrator/api/testing.go [new file with mode: 0644]
src/orchestrator/cmd/main.go [new file with mode: 0644]
src/orchestrator/go.mod [new file with mode: 0644]
src/orchestrator/go.sum [new file with mode: 0644]
src/orchestrator/internal/auth/auth.go [new file with mode: 0644]
src/orchestrator/internal/auth/auth_test.go [new file with mode: 0644]
src/orchestrator/internal/config/config.go [new file with mode: 0644]
src/orchestrator/internal/config/config_test.go [new file with mode: 0644]
src/orchestrator/internal/db/mock.go [new file with mode: 0644]
src/orchestrator/internal/db/mongo.go [new file with mode: 0644]
src/orchestrator/internal/db/mongo_test.go [new file with mode: 0644]
src/orchestrator/internal/db/store.go [new file with mode: 0644]
src/orchestrator/internal/db/store_test.go [new file with mode: 0644]
src/orchestrator/internal/project/project.go [new file with mode: 0644]
src/orchestrator/internal/project/project_test.go [new file with mode: 0644]
src/orchestrator/tests/certs/auth_test_certificate.pem [new file with mode: 0644]
src/orchestrator/tests/certs/auth_test_key.pem [new file with mode: 0644]
src/orchestrator/tests/configs/mock_config.json [new file with mode: 0644]