replication

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ExecuteActionWithoutStatus  = ConditionType("ExecuteActionWithoutStatus")
	ExecuteActionWithoutSuccess = ConditionType("ExecuteActionWithoutSuccess")
	ExecuteActionWithSwap       = ConditionType("ExecuteActionWithSwap")
	CreatePGWithMissingPGID     = ConditionType("CreatePGWithMissingPGID")
	CreatePGWithOutStatus       = ConditionType("CreatePGWithOutStatus")
	GetPGStatusForTarget        = ConditionType("GetPGStatusForTarget")
	GetPGStatusInProgress       = ConditionType("GetPGStatusInProgress")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionType

type ConditionType string

type InjectedError

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

func (*InjectedError) SetError

func (i *InjectedError) SetError(err error, clearAfter int)

type MockReplication

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

func NewFakeReplicationClient

func NewFakeReplicationClient(contextPrefix string) MockReplication

func (*MockReplication) ClearErrorAndCondition

func (m *MockReplication) ClearErrorAndCondition(force bool)

func (*MockReplication) CreateRemoteVolume

func (m *MockReplication) CreateRemoteVolume(ctx context.Context, volumeHandle string,
	params map[string]string) (*csiext.CreateRemoteVolumeResponse, error)

func (*MockReplication) CreateStorageProtectionGroup

func (m *MockReplication) CreateStorageProtectionGroup(ctx context.Context, volumeHandle string,
	params map[string]string) (*csiext.CreateStorageProtectionGroupResponse, error)

func (*MockReplication) DeleteStorageProtectionGroup

func (m *MockReplication) DeleteStorageProtectionGroup(ctx context.Context, groupId string,
	groupAttributes map[string]string) error

func (*MockReplication) ExecuteAction

func (m *MockReplication) ExecuteAction(ctx context.Context, protectionGroupId string,
	actionType *csiext.ExecuteActionRequest_Action, attributes map[string]string,
	remoteProtectionGroupID string, remoteAttributes map[string]string) (*csiext.ExecuteActionResponse, error)

func (*MockReplication) GetStorageProtectionGroupStatus

func (m *MockReplication) GetStorageProtectionGroupStatus(ctx context.Context,
	protectionGroupId string, attributes map[string]string) (*csiext.GetStorageProtectionGroupStatusResponse, error)

func (*MockReplication) InjectError

func (m *MockReplication) InjectError(err error)

func (*MockReplication) InjectErrorAutoClear

func (m *MockReplication) InjectErrorAutoClear(err error)

func (*MockReplication) InjectErrorClearAfterN

func (m *MockReplication) InjectErrorClearAfterN(err error, clearAfter int)

func (*MockReplication) SetCondition

func (m *MockReplication) SetCondition(conditionType ConditionType)

type Replication

type Replication interface {
	CreateRemoteVolume(context.Context, string, map[string]string) (*csiext.CreateRemoteVolumeResponse, error)
	CreateStorageProtectionGroup(context.Context, string, map[string]string) (*csiext.CreateStorageProtectionGroupResponse, error)
	DeleteStorageProtectionGroup(context.Context, string, map[string]string) error
	ExecuteAction(context.Context, string, *csiext.ExecuteActionRequest_Action, map[string]string, string, map[string]string) (*csiext.ExecuteActionResponse, error)
	GetStorageProtectionGroupStatus(context.Context, string, map[string]string) (*csiext.GetStorageProtectionGroupStatusResponse, error)
}

func New

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

Jump to

Keyboard shortcuts

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