flow

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 11 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(Flow) (int, error)
}

Controller is the controller that controls the replication flows

func NewController

func NewController() Controller

NewController returns an instance of the default flow controller

type Flow

type Flow interface {
	// returns the count of tasks which have been scheduled and the error
	Run(interface{}) (int, error)
}

Flow defines the replication flow

func NewCopyFlow

func NewCopyFlow(executionMgr execution.Manager, scheduler scheduler.Scheduler,
	executionID int64, policy *model.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(executionMgr execution.Manager, scheduler scheduler.Scheduler,
	executionID int64, policy *model.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