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 ¶
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
Click to show internal directories.
Click to hide internal directories.