replicator

package
v1.7.7-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultReplicator

type DefaultReplicator struct {
	// contains filtered or unexported fields
}

DefaultReplicator provides a default implement for Replicator

func NewDefaultReplicator

func NewDefaultReplicator(client common_job.Client) *DefaultReplicator

NewDefaultReplicator returns an instance of DefaultReplicator

func (*DefaultReplicator) Replicate

func (d *DefaultReplicator) Replicate(replication *Replication) error

Replicate ...

type Replication added in v1.5.0

type Replication struct {
	PolicyID   int64
	OpUUID     string
	Candidates []models.FilterItem
	Targets    []*common_models.RepTarget
	Operation  string
}

Replication holds information for a replication

type Replicator

type Replicator interface {
	Replicate(*Replication) error
}

Replicator submits the replication work to the jobservice

Jump to

Keyboard shortcuts

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