flow

package
v0.0.0-...-cc6ace1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

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

type Flow interface {
	Run(ctx context.Context) (err error)
}

Flow defines a specific replication flow

func NewCopyFlow

func NewCopyFlow(executionID int64, policy *repctlmodel.Policy, resources ...*model.Resource) Flow

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL