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