Documentation
¶
Index ¶
- type ReplicationClient
- func (rc *ReplicationClient) DemoteVolume(volumeID, replicationID string, secretName, secretNamespace string, ...) (*proto.DemoteVolumeResponse, error)
- func (rc *ReplicationClient) DisableVolumeReplication(volumeID, replicationID string, secretName, secretNamespace string, ...) (*proto.DisableVolumeReplicationResponse, error)
- func (rc *ReplicationClient) EnableVolumeReplication(volumeID, replicationID string, secretName, secretNamespace string, ...) (*proto.EnableVolumeReplicationResponse, error)
- func (rc *ReplicationClient) GetVolumeReplicationInfo(volumeID, replicationID string, secretName, secretNamespace string) (*proto.GetVolumeReplicationInfoResponse, error)
- func (rc *ReplicationClient) PromoteVolume(volumeID, replicationID string, force bool, secretName, secretNamespace string, ...) (*proto.PromoteVolumeResponse, error)
- func (rc *ReplicationClient) ResyncVolume(volumeID, replicationID string, secretName, secretNamespace string, ...) (*proto.ResyncVolumeResponse, error)
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.
Click to show internal directories.
Click to hide internal directories.