mirror of
https://github.com/goharbor/harbor
synced 2025-04-29 22:28:45 +00:00
Adjust the file structure of replication package
Move the scheduler, execution, hook and flow package into operation Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
690f868d15
commit
de4eb0369a
@ -24,7 +24,7 @@ import (
|
|||||||
"github.com/goharbor/harbor/src/common/utils/log"
|
"github.com/goharbor/harbor/src/common/utils/log"
|
||||||
"github.com/goharbor/harbor/src/core/api"
|
"github.com/goharbor/harbor/src/core/api"
|
||||||
"github.com/goharbor/harbor/src/replication/ng"
|
"github.com/goharbor/harbor/src/replication/ng"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/hook"
|
"github.com/goharbor/harbor/src/replication/ng/operation/hook"
|
||||||
)
|
)
|
||||||
|
|
||||||
var statusMap = map[string]string{
|
var statusMap = map[string]string{
|
||||||
|
@ -20,11 +20,11 @@ import (
|
|||||||
|
|
||||||
"github.com/goharbor/harbor/src/common/utils/log"
|
"github.com/goharbor/harbor/src/common/utils/log"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/dao/models"
|
"github.com/goharbor/harbor/src/replication/ng/dao/models"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/execution"
|
|
||||||
"github.com/goharbor/harbor/src/replication/ng/flow"
|
|
||||||
"github.com/goharbor/harbor/src/replication/ng/model"
|
"github.com/goharbor/harbor/src/replication/ng/model"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/execution"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/flow"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/scheduler"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/registry"
|
"github.com/goharbor/harbor/src/replication/ng/registry"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/scheduler"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Controller handles the replication-related operations: start,
|
// Controller handles the replication-related operations: start,
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"github.com/goharbor/harbor/src/replication/ng/config"
|
"github.com/goharbor/harbor/src/replication/ng/config"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/dao/models"
|
"github.com/goharbor/harbor/src/replication/ng/dao/models"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/model"
|
"github.com/goharbor/harbor/src/replication/ng/model"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/scheduler"
|
"github.com/goharbor/harbor/src/replication/ng/operation/scheduler"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
@ -19,10 +19,10 @@ import (
|
|||||||
|
|
||||||
"github.com/goharbor/harbor/src/common/utils/log"
|
"github.com/goharbor/harbor/src/common/utils/log"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/dao/models"
|
"github.com/goharbor/harbor/src/replication/ng/dao/models"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/execution"
|
|
||||||
"github.com/goharbor/harbor/src/replication/ng/model"
|
"github.com/goharbor/harbor/src/replication/ng/model"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/execution"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/scheduler"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/registry"
|
"github.com/goharbor/harbor/src/replication/ng/registry"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/scheduler"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type copyFlow struct {
|
type copyFlow struct {
|
@ -16,10 +16,10 @@ package flow
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/goharbor/harbor/src/common/utils/log"
|
"github.com/goharbor/harbor/src/common/utils/log"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/execution"
|
|
||||||
"github.com/goharbor/harbor/src/replication/ng/model"
|
"github.com/goharbor/harbor/src/replication/ng/model"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/execution"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/scheduler"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/registry"
|
"github.com/goharbor/harbor/src/replication/ng/registry"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/scheduler"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type deletionFlow struct {
|
type deletionFlow struct {
|
@ -24,10 +24,10 @@ import (
|
|||||||
adp "github.com/goharbor/harbor/src/replication/ng/adapter"
|
adp "github.com/goharbor/harbor/src/replication/ng/adapter"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/config"
|
"github.com/goharbor/harbor/src/replication/ng/config"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/dao/models"
|
"github.com/goharbor/harbor/src/replication/ng/dao/models"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/execution"
|
|
||||||
"github.com/goharbor/harbor/src/replication/ng/model"
|
"github.com/goharbor/harbor/src/replication/ng/model"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/execution"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/scheduler"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/registry"
|
"github.com/goharbor/harbor/src/replication/ng/registry"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/scheduler"
|
|
||||||
"github.com/goharbor/harbor/src/replication/ng/util"
|
"github.com/goharbor/harbor/src/replication/ng/util"
|
||||||
)
|
)
|
||||||
|
|
@ -25,7 +25,7 @@ import (
|
|||||||
"github.com/goharbor/harbor/src/replication/ng/config"
|
"github.com/goharbor/harbor/src/replication/ng/config"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/dao/models"
|
"github.com/goharbor/harbor/src/replication/ng/dao/models"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/model"
|
"github.com/goharbor/harbor/src/replication/ng/model"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/scheduler"
|
"github.com/goharbor/harbor/src/replication/ng/operation/scheduler"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
@ -20,11 +20,12 @@ import (
|
|||||||
"github.com/goharbor/harbor/src/common/utils/log"
|
"github.com/goharbor/harbor/src/common/utils/log"
|
||||||
cfg "github.com/goharbor/harbor/src/core/config"
|
cfg "github.com/goharbor/harbor/src/core/config"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/config"
|
"github.com/goharbor/harbor/src/replication/ng/config"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/execution"
|
|
||||||
"github.com/goharbor/harbor/src/replication/ng/operation"
|
"github.com/goharbor/harbor/src/replication/ng/operation"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/execution"
|
||||||
|
"github.com/goharbor/harbor/src/replication/ng/operation/scheduler"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/policy"
|
"github.com/goharbor/harbor/src/replication/ng/policy"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/registry"
|
"github.com/goharbor/harbor/src/replication/ng/registry"
|
||||||
"github.com/goharbor/harbor/src/replication/ng/scheduler"
|
|
||||||
// register the Harbor adapter
|
// register the Harbor adapter
|
||||||
_ "github.com/goharbor/harbor/src/replication/ng/adapter/harbor"
|
_ "github.com/goharbor/harbor/src/replication/ng/adapter/harbor"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user