migrator

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package migrator provides migrator that migrates a single resource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMigrator

func NewMigrator(resource schema.GroupVersionResource, client dynamic.Interface, progress progressInterface) *migrator

NewMigrator creates a migrator that can migrate a single resource type.

func NewProgressTracker

func NewProgressTracker(client migrationclient.StorageVersionMigrationInterface, name string) progressInterface

NewProgressTracker returns a progress tracker.

Types

type ErrNotRetriable

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

ErrNotRetriable is a wrapper for an error that a migrator may use to indicate the specific error cannot be retried.

func (ErrNotRetriable) Temporary

func (ErrNotRetriable) Temporary() bool

type ErrRetriable

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

ErrRetriable is a wrapper for an error that a migrator may use to indicate the specific error can be retried.

func (ErrRetriable) Temporary

func (ErrRetriable) Temporary() bool

type TemporaryError

type TemporaryError interface {
	error
	// Temporary should return true if this is a temporary error
	Temporary() bool
}

TemporaryError is a wrapper interface that is used to determine if an error can be retried.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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