replication

package
v0.0.0-...-e0b94aa Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 21 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Replication

type Replication struct{}

Replication implements the job interface

func (*Replication) MaxCurrency

func (r *Replication) MaxCurrency() uint

MaxCurrency is implementation of same method in Interface.

func (*Replication) MaxFails

func (r *Replication) MaxFails() uint

MaxFails returns that how many times this job can fail

func (*Replication) Run

func (r *Replication) Run(ctx job.Context, params job.Parameters) error

Run gets the corresponding transfer according to the resource type and calls its function to do the real work

func (*Replication) ShouldRetry

func (r *Replication) ShouldRetry() bool

ShouldRetry always returns true which means the job is needed to be restarted when fails

func (*Replication) Validate

func (r *Replication) Validate(_ job.Parameters) error

Validate does nothing

Jump to

Keyboard shortcuts

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