fake

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplicationClient

type ReplicationClient struct {
	// EnableVolumeReplicationMock mocks EnableVolumeReplication RPC call.
	EnableVolumeReplicationMock func(volumeID, replicationID string, secretName, secretNamespace string, parameters map[string]string) (*proto.EnableVolumeReplicationResponse, error)
	// DisableVolumeReplicationMock mocks DisableVolumeReplication RPC call.
	DisableVolumeReplicationMock func(volumeID, replicationID string, secretName, secretNamespace string, parameters map[string]string) (*proto.DisableVolumeReplicationResponse, error)
	// PromoteVolumeMock mocks PromoteVolume RPC call.
	PromoteVolumeMock func(volumeID, replicationID string, force bool, secretName, secretNamespace string, parameters map[string]string) (*proto.PromoteVolumeResponse, error)
	// DemoteVolumeMock mocks DemoteVolume RPC call.
	DemoteVolumeMock func(volumeID, replicationID string, secretName, secretNamespace string, parameters map[string]string) (*proto.DemoteVolumeResponse, error)
	// ResyncVolumeMock mocks ResyncVolume RPC call.
	ResyncVolumeMock func(volumeID, replicationID string, secretName, secretNamespace string, parameters map[string]string) (*proto.ResyncVolumeResponse, error)
	// GetVolumeReplicationInfo mocks GetVolumeReplicationInfo RPC call.
	GetVolumeReplicationInfoMock func(volumeID, replicationID string, secretName, secretNamespace string) (*proto.GetVolumeReplicationInfoResponse, error)
}

ReplicationClient to fake replication operations.

func (*ReplicationClient) DemoteVolume

func (rc *ReplicationClient) DemoteVolume(
	volumeID,
	replicationID string,
	secretName, secretNamespace string,
	parameters map[string]string) (
	*proto.DemoteVolumeResponse,
	error)

DemoteVolume calls DemoteVolumeMock mock function.

func (*ReplicationClient) DisableVolumeReplication

func (rc *ReplicationClient) DisableVolumeReplication(
	volumeID,
	replicationID string,
	secretName, secretNamespace string,
	parameters map[string]string) (
	*proto.DisableVolumeReplicationResponse,
	error)

DisableVolumeReplication calls DisableVolumeReplicationMock mock function.

func (*ReplicationClient) EnableVolumeReplication

func (rc *ReplicationClient) EnableVolumeReplication(
	volumeID,
	replicationID string,
	secretName, secretNamespace string,
	parameters map[string]string) (
	*proto.EnableVolumeReplicationResponse,
	error)

EnableVolumeReplication calls EnableVolumeReplicationMock mock function.

func (*ReplicationClient) GetVolumeReplicationInfo added in v0.6.0

func (rc *ReplicationClient) GetVolumeReplicationInfo(
	volumeID,
	replicationID string,
	secretName, secretNamespace string) (
	*proto.GetVolumeReplicationInfoResponse,
	error)

GetVolumeReplicationInfo calls GetVolumeReplicationInfoMock function.

func (*ReplicationClient) PromoteVolume

func (rc *ReplicationClient) PromoteVolume(
	volumeID,
	replicationID string,
	force bool,
	secretName, secretNamespace string,
	parameters map[string]string) (
	*proto.PromoteVolumeResponse,
	error)

PromoteVolume calls PromoteVolumeMock mock function.

func (*ReplicationClient) ResyncVolume

func (rc *ReplicationClient) ResyncVolume(
	volumeID,
	replicationID string,
	secretName, secretNamespace string,
	parameters map[string]string) (
	*proto.ResyncVolumeResponse,
	error)

ResyncVolume calls ResyncVolumeMock function.

Jump to

Keyboard shortcuts

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