From c4efdc8bd95a85428b8074ad89aa5584f15016a4 Mon Sep 17 00:00:00 2001 From: pb Date: Mon, 29 Jul 2024 18:02:29 +0200 Subject: [PATCH] updated import name with 'deprecated-' --- controllers/computing.go | 2 +- controllers/data.go | 2 +- controllers/datacenter.go | 2 +- controllers/schedule.go | 2 +- controllers/search.go | 2 +- controllers/storage.go | 2 +- controllers/user.go | 2 +- controllers/workflow.go | 2 +- controllers/workspace.go | 2 +- main.go | 6 +++--- models/computing.go | 4 ++-- models/data.go | 4 ++-- models/datacenter.go | 4 ++-- models/generic.go | 4 ++-- models/links.go | 2 +- models/rtype/rtype.go | 2 +- models/schedule.go | 2 +- models/search.go | 2 +- models/storage.go | 4 ++-- models/workflow.go | 6 +++--- models/workspace.go | 4 ++-- routers/auth.go | 4 ++-- routers/router.go | 4 ++-- services/discovery.go | 4 ++-- services/init.go | 2 +- services/mongo.go | 2 +- 26 files changed, 39 insertions(+), 39 deletions(-) diff --git a/controllers/computing.go b/controllers/computing.go index 4cb722d..610287b 100644 --- a/controllers/computing.go +++ b/controllers/computing.go @@ -1,7 +1,7 @@ package controllers import ( - "cloud.o-forge.io/core/oc-catalog/models" + "cloud.o-forge.io/core/deprecated-oc-catalog/models" beego "github.com/beego/beego/v2/server/web" ) diff --git a/controllers/data.go b/controllers/data.go index 5002877..64d81d2 100644 --- a/controllers/data.go +++ b/controllers/data.go @@ -1,7 +1,7 @@ package controllers import ( - "cloud.o-forge.io/core/oc-catalog/models" + "cloud.o-forge.io/core/deprecated-oc-catalog/models" beego "github.com/beego/beego/v2/server/web" "github.com/go-playground/validator/v10" diff --git a/controllers/datacenter.go b/controllers/datacenter.go index 0387a32..8aab12f 100644 --- a/controllers/datacenter.go +++ b/controllers/datacenter.go @@ -1,7 +1,7 @@ package controllers import ( - "cloud.o-forge.io/core/oc-catalog/models" + "cloud.o-forge.io/core/deprecated-oc-catalog/models" beego "github.com/beego/beego/v2/server/web" "github.com/go-playground/validator/v10" diff --git a/controllers/schedule.go b/controllers/schedule.go index 28efc05..c43ab6d 100644 --- a/controllers/schedule.go +++ b/controllers/schedule.go @@ -3,7 +3,7 @@ package controllers import ( "time" - "cloud.o-forge.io/core/oc-catalog/models" + "cloud.o-forge.io/core/deprecated-oc-catalog/models" "github.com/beego/beego/v2/core/logs" beego "github.com/beego/beego/v2/server/web" ) diff --git a/controllers/search.go b/controllers/search.go index 66e54f2..ef32414 100644 --- a/controllers/search.go +++ b/controllers/search.go @@ -1,7 +1,7 @@ package controllers import ( - "cloud.o-forge.io/core/oc-catalog/models" + "cloud.o-forge.io/core/deprecated-oc-catalog/models" beego "github.com/beego/beego/v2/server/web" ) diff --git a/controllers/storage.go b/controllers/storage.go index 3caddd1..7c6948a 100644 --- a/controllers/storage.go +++ b/controllers/storage.go @@ -1,7 +1,7 @@ package controllers import ( - "cloud.o-forge.io/core/oc-catalog/models" + "cloud.o-forge.io/core/deprecated-oc-catalog/models" beego "github.com/beego/beego/v2/server/web" ) diff --git a/controllers/user.go b/controllers/user.go index 9a19d41..5b0b6f9 100644 --- a/controllers/user.go +++ b/controllers/user.go @@ -1,7 +1,7 @@ package controllers import ( - "cloud.o-forge.io/core/oc-catalog/models" + "cloud.o-forge.io/core/deprecated-oc-catalog/models" beego "github.com/beego/beego/v2/server/web" ) diff --git a/controllers/workflow.go b/controllers/workflow.go index db97d61..61c88b9 100644 --- a/controllers/workflow.go +++ b/controllers/workflow.go @@ -3,7 +3,7 @@ package controllers import ( "time" - "cloud.o-forge.io/core/oc-catalog/models" + "cloud.o-forge.io/core/deprecated-oc-catalog/models" "github.com/beego/beego/v2/core/logs" beego "github.com/beego/beego/v2/server/web" "github.com/vk496/cron" diff --git a/controllers/workspace.go b/controllers/workspace.go index 9c69bed..ca39bb2 100644 --- a/controllers/workspace.go +++ b/controllers/workspace.go @@ -1,7 +1,7 @@ package controllers import ( - "cloud.o-forge.io/core/oc-catalog/models" + "cloud.o-forge.io/core/deprecated-oc-catalog/models" beego "github.com/beego/beego/v2/server/web" ) diff --git a/main.go b/main.go index 607c0d5..bbcb11a 100644 --- a/main.go +++ b/main.go @@ -3,9 +3,9 @@ package main import ( "os" - "cloud.o-forge.io/core/oc-catalog/conf" - "cloud.o-forge.io/core/oc-catalog/routers" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/conf" + "cloud.o-forge.io/core/deprecated-oc-catalog/routers" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/logs" beego "github.com/beego/beego/v2/server/web" diff --git a/models/computing.go b/models/computing.go index 1bc6c4d..a57c38d 100644 --- a/models/computing.go +++ b/models/computing.go @@ -5,8 +5,8 @@ import ( "fmt" "strings" - "cloud.o-forge.io/core/oc-catalog/models/rtype" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/models/rtype" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" structtomap "github.com/Klathmon/StructToMap" "github.com/beego/beego/v2/core/logs" "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/models/data.go b/models/data.go index 6efefa9..210cded 100644 --- a/models/data.go +++ b/models/data.go @@ -1,8 +1,8 @@ package models import ( - "cloud.o-forge.io/core/oc-catalog/models/rtype" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/models/rtype" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/v2/core/logs" "go.mongodb.org/mongo-driver/bson/primitive" ) diff --git a/models/datacenter.go b/models/datacenter.go index 3a66515..39b975d 100644 --- a/models/datacenter.go +++ b/models/datacenter.go @@ -4,8 +4,8 @@ import ( "net" "time" - "cloud.o-forge.io/core/oc-catalog/models/rtype" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/models/rtype" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/v2/core/logs" "go.mongodb.org/mongo-driver/bson/primitive" ) diff --git a/models/generic.go b/models/generic.go index 33088d7..9a531f0 100644 --- a/models/generic.go +++ b/models/generic.go @@ -3,8 +3,8 @@ package models import ( "errors" - "cloud.o-forge.io/core/oc-catalog/models/rtype" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/models/rtype" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/v2/core/logs" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/models/links.go b/models/links.go index 5c9d396..45c4419 100644 --- a/models/links.go +++ b/models/links.go @@ -1,7 +1,7 @@ package models import ( - "cloud.o-forge.io/core/oc-catalog/models/rtype" + "cloud.o-forge.io/core/deprecated-oc-catalog/models/rtype" ) type Link struct { diff --git a/models/rtype/rtype.go b/models/rtype/rtype.go index bd934ae..61b3963 100644 --- a/models/rtype/rtype.go +++ b/models/rtype/rtype.go @@ -1,7 +1,7 @@ package rtype import ( - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/v2/core/logs" "go.mongodb.org/mongo-driver/mongo" ) diff --git a/models/schedule.go b/models/schedule.go index 1f747b4..fdd5cae 100644 --- a/models/schedule.go +++ b/models/schedule.go @@ -4,7 +4,7 @@ import ( "errors" "time" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/v2/core/logs" "github.com/vk496/cron" "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/models/search.go b/models/search.go index 6e96eab..be6335c 100644 --- a/models/search.go +++ b/models/search.go @@ -3,7 +3,7 @@ package models import ( "strings" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/v2/core/logs" "go.mongodb.org/mongo-driver/bson" diff --git a/models/storage.go b/models/storage.go index 245f34f..3d0bb12 100644 --- a/models/storage.go +++ b/models/storage.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" - "cloud.o-forge.io/core/oc-catalog/models/rtype" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/models/rtype" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/v2/core/logs" "go.mongodb.org/mongo-driver/bson/primitive" ) diff --git a/models/workflow.go b/models/workflow.go index d425b94..304fd8e 100644 --- a/models/workflow.go +++ b/models/workflow.go @@ -9,9 +9,9 @@ import ( "sort" "time" - "cloud.o-forge.io/core/oc-catalog/models/rtype" - swagger "cloud.o-forge.io/core/oc-catalog/selfapi" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/models/rtype" + swagger "cloud.o-forge.io/core/deprecated-oc-catalog/selfapi" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/v2/core/logs" "github.com/vk496/cron" "go.mongodb.org/mongo-driver/bson/primitive" diff --git a/models/workspace.go b/models/workspace.go index c17964b..01d7900 100644 --- a/models/workspace.go +++ b/models/workspace.go @@ -4,8 +4,8 @@ import ( "context" "errors" - "cloud.o-forge.io/core/oc-catalog/models/rtype" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/models/rtype" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/v2/core/logs" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" diff --git a/routers/auth.go b/routers/auth.go index d08278c..e552b6d 100644 --- a/routers/auth.go +++ b/routers/auth.go @@ -4,8 +4,8 @@ import ( "reflect" "strings" - "cloud.o-forge.io/core/oc-catalog/controllers" - "cloud.o-forge.io/core/oc-catalog/models" + "cloud.o-forge.io/core/deprecated-oc-catalog/controllers" + "cloud.o-forge.io/core/deprecated-oc-catalog/models" "github.com/beego/beego/v2/core/logs" beego "github.com/beego/beego/v2/server/web" "github.com/beego/beego/v2/server/web/context" diff --git a/routers/router.go b/routers/router.go index 7fe7a4b..b8ed4dd 100644 --- a/routers/router.go +++ b/routers/router.go @@ -12,8 +12,8 @@ import ( "os" "strings" - "cloud.o-forge.io/core/oc-catalog/controllers" - "cloud.o-forge.io/core/oc-catalog/services" + "cloud.o-forge.io/core/deprecated-oc-catalog/controllers" + "cloud.o-forge.io/core/deprecated-oc-catalog/services" "github.com/beego/beego/v2/core/logs" diff --git a/services/discovery.go b/services/discovery.go index d49af38..0bbec1b 100644 --- a/services/discovery.go +++ b/services/discovery.go @@ -3,9 +3,9 @@ package services import ( "os" - conf "cloud.o-forge.io/core/oc-catalog/conf" + conf "cloud.o-forge.io/core/deprecated-oc-catalog/conf" - SelfAPI "cloud.o-forge.io/core/oc-catalog/selfapi" + SelfAPI "cloud.o-forge.io/core/deprecated-oc-catalog/selfapi" "github.com/beego/beego/v2/core/logs" beego "github.com/beego/beego/v2/server/web" ) diff --git a/services/init.go b/services/init.go index 6f71a0c..8ae2874 100644 --- a/services/init.go +++ b/services/init.go @@ -1,7 +1,7 @@ package services import ( - "cloud.o-forge.io/core/oc-catalog/conf" + "cloud.o-forge.io/core/deprecated-oc-catalog/conf" ) func Init() { diff --git a/services/mongo.go b/services/mongo.go index 5e25b3f..e5f8e5a 100644 --- a/services/mongo.go +++ b/services/mongo.go @@ -4,7 +4,7 @@ import ( "context" "time" - "cloud.o-forge.io/core/oc-catalog/conf" + "cloud.o-forge.io/core/deprecated-oc-catalog/conf" "github.com/beego/beego/v2/core/logs" "go.mongodb.org/mongo-driver/mongo"