replication

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deleter

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

Deleter deletes repository or images on the destination registry

func (*Deleter) MaxFails

func (d *Deleter) MaxFails() uint

MaxFails ...

func (*Deleter) Run

func (d *Deleter) Run(ctx env.JobContext, params map[string]interface{}) error

Run ...

func (*Deleter) ShouldRetry

func (d *Deleter) ShouldRetry() bool

ShouldRetry : retry if the error is network error

func (*Deleter) Validate

func (d *Deleter) Validate(params map[string]interface{}) error

Validate ....

type Replicator

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

Replicator call UI's API to start a repliation according to the policy ID passed in parameters

func (*Replicator) MaxFails

func (r *Replicator) MaxFails() uint

MaxFails ...

func (*Replicator) Run

func (r *Replicator) Run(ctx env.JobContext, params map[string]interface{}) error

Run ...

func (*Replicator) ShouldRetry

func (r *Replicator) ShouldRetry() bool

ShouldRetry ...

func (*Replicator) Validate

func (r *Replicator) Validate(params map[string]interface{}) error

Validate ....

type Transfer

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

Transfer images from source registry to the destination one

func (*Transfer) MaxFails

func (t *Transfer) MaxFails() uint

MaxFails ...

func (*Transfer) Run

func (t *Transfer) Run(ctx env.JobContext, params map[string]interface{}) error

Run ...

func (*Transfer) ShouldRetry

func (t *Transfer) ShouldRetry() bool

ShouldRetry : retry if the error is network error

func (*Transfer) Validate

func (t *Transfer) Validate(params map[string]interface{}) error

Validate ....

Jump to

Keyboard shortcuts

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