Restructure code and create module library 03/101003/5
authorRitu Sood <ritu.sood@intel.com>
Sat, 1 Feb 2020 07:29:51 +0000 (23:29 -0800)
committerSrivahni Chivukula <srivahni.chivukula@intel.com>
Fri, 14 Feb 2020 11:54:11 +0000 (03:54 -0800)
commita75d489bbf87712371d67dce0753577bdacce0c3
treedee646769aa432c814abd86645af612e714640be
parentc06be6458e9985bd7ac0b25fab03d9c8605f6c4a
Restructure code and create module library

Restructures and moves code to make it
aligned with the current design.
https://wiki.onap.org/display/DW/Multi+Cluster+Application+Scheduler
examples/example_module.go shows how to
import and use modules from this package.
Patch#2 Updated example

Issue-ID: MULTICLOUD-871
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Change-Id: Ia1e9802a946a07dcca8f79f0e2250933ab3efa66
20 files changed:
src/orchestrator/api/api.go
src/orchestrator/api/projecthandler.go
src/orchestrator/api/projecthandler_test.go
src/orchestrator/cmd/main.go
src/orchestrator/examples/example_module.go [new file with mode: 0644]
src/orchestrator/go.sum
src/orchestrator/pkg/infra/auth/auth.go [moved from src/orchestrator/internal/auth/auth.go with 100% similarity]
src/orchestrator/pkg/infra/auth/auth_test.go [moved from src/orchestrator/internal/auth/auth_test.go with 88% similarity]
src/orchestrator/pkg/infra/config/config.go [moved from src/orchestrator/internal/config/config.go with 96% similarity]
src/orchestrator/pkg/infra/config/config_test.go [moved from src/orchestrator/internal/config/config_test.go with 94% similarity]
src/orchestrator/pkg/infra/db/README.md [moved from src/orchestrator/internal/db/README.md with 100% similarity]
src/orchestrator/pkg/infra/db/mock.go [moved from src/orchestrator/internal/db/mock.go with 100% similarity]
src/orchestrator/pkg/infra/db/mongo.go [moved from src/orchestrator/internal/db/mongo.go with 99% similarity]
src/orchestrator/pkg/infra/db/mongo_test.go [moved from src/orchestrator/internal/db/mongo_test.go with 100% similarity]
src/orchestrator/pkg/infra/db/store.go [moved from src/orchestrator/internal/db/store.go with 97% similarity]
src/orchestrator/pkg/infra/db/store_test.go [moved from src/orchestrator/internal/db/store_test.go with 100% similarity]
src/orchestrator/pkg/infra/logutils/logger.go [moved from src/orchestrator/internal/logutils/logger.go with 100% similarity]
src/orchestrator/pkg/module/module.go [new file with mode: 0644]
src/orchestrator/pkg/module/project.go [moved from src/orchestrator/internal/project/project.go with 79% similarity]
src/orchestrator/pkg/module/project_test.go [moved from src/orchestrator/internal/project/project_test.go with 95% similarity]