Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface {
Start(ctx context.Context, executionID int64, policy *repctlmodel.Policy, resource *model.Resource) (err error)
}
Controller controls the replication flow
func NewController ¶
func NewController() Controller
NewController returns an instance of the default flow controller
type Flow ¶
Flow defines a specific replication flow
func NewCopyFlow ¶
NewCopyFlow returns an instance of the copy flow which replicates the resources from the source registry to the destination registry. If the parameter "resources" isn't provided, will fetch the resources first
func NewDeletionFlow ¶
func NewDeletionFlow(executionID int64, policy *repctlmodel.Policy, resources ...*model.Resource) Flow
NewDeletionFlow returns an instance of the delete flow which deletes the resources on the destination registry
Click to show internal directories.
Click to hide internal directories.