migration

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration interface {
	VolumeMigrate(context.Context, string, string, *csiext.VolumeMigrateRequest_Type, map[string]string, map[string]string, bool) (*csiext.VolumeMigrateResponse, error)
}

Migration is an interface that defines calls used for querying migration management calls to the driver

func New

func New(conn *grpc.ClientConn, log logr.Logger, timeout time.Duration) Migration

New returns new implementation of Replication interface

type MockMigration

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

MockMigration is dummy implementation of Migration interface

func NewFakeMigrationClient

func NewFakeMigrationClient(contextPrefix string) MockMigration

NewFakeMigrationClient returns mock implementation of Migration interface

func (*MockMigration) ClearError

func (m *MockMigration) ClearError(force bool)

ClearError clears injected error

func (*MockMigration) InjectError

func (m *MockMigration) InjectError(err error)

InjectError injects error

func (*MockMigration) VolumeMigrate

func (m *MockMigration) VolumeMigrate(ctx context.Context, volumeHandle string, storageClass string, migrateType *csiext.VolumeMigrateRequest_Type,
	scParams map[string]string, sourcescParams map[string]string, toClone bool) (*csiext.VolumeMigrateResponse, error)

VolumeMigrate migrates volume

Jump to

Keyboard shortcuts

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