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)
- type VolumeGroupClient
- func (vg *VolumeGroupClient) ControllerGetVolumeGroup(volumeGroupID string) (*proto.ControllerGetVolumeGroupResponse, error)
- func (vg *VolumeGroupClient) CreateVolumeGroup(volumeGroupName string, volumeIDs []string) (*proto.CreateVolumeGroupResponse, error)
- func (vg *VolumeGroupClient) DeleteVolumeGroup(volumeGroupID string) (*proto.DeleteVolumeGroupResponse, error)
- func (vg *VolumeGroupClient) ModifyVolumeGroupMembership(volumeGroupID string, volumeIDs []string) (*proto.ModifyVolumeGroupMembershipResponse, 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.
type VolumeGroupClient ¶ added in v0.10.0
type VolumeGroupClient struct {
// CreateVolumeGroupMock mocks CreateVolumeGroup RPC call.
CreateVolumeGroupMock func(volumeGroupName string, volumeIDs []string) (*proto.CreateVolumeGroupResponse, error)
// ModifyVolumeGroupMembershipMock mock ModifyVolumeGroupMembership RPC call.
ModifyVolumeGroupMembershipMock func(volumeGroupID string, volumeIDs []string) (*proto.ModifyVolumeGroupMembershipResponse, error)
// DeleteVolumeGroupMock mocks DeleteVolumeGroup RPC call.
DeleteVolumeGroupMock func(volumeGroupID string) (*proto.DeleteVolumeGroupResponse, error)
// ControllerGetVolumeGroupMock mocks ControllerGetVolumeGroup RPC call.
ControllerGetVolumeGroupMock func(volumeGroupID string) (*proto.ControllerGetVolumeGroupResponse, error)
}
VolumeGroupClient to fake grouping operations.
func (*VolumeGroupClient) ControllerGetVolumeGroup ¶ added in v0.10.0
func (vg *VolumeGroupClient) ControllerGetVolumeGroup(volumeGroupID string) (*proto.ControllerGetVolumeGroupResponse, error)
ControllerGetVolumeGroup calls ControllerGetVolumeGroup mock function.
func (*VolumeGroupClient) CreateVolumeGroup ¶ added in v0.10.0
func (vg *VolumeGroupClient) CreateVolumeGroup(volumeGroupName string, volumeIDs []string) (*proto.CreateVolumeGroupResponse, error)
CreateVolumeGroup calls CreateVolumeGroupMock mock function.
func (*VolumeGroupClient) DeleteVolumeGroup ¶ added in v0.10.0
func (vg *VolumeGroupClient) DeleteVolumeGroup(volumeGroupID string) (*proto.DeleteVolumeGroupResponse, error)
DeleteVolumeGroup calls DeleteVolumeGroup mock function.
func (*VolumeGroupClient) ModifyVolumeGroupMembership ¶ added in v0.10.0
func (vg *VolumeGroupClient) ModifyVolumeGroupMembership(volumeGroupID string, volumeIDs []string) (*proto.ModifyVolumeGroupMembershipResponse, error)
ModifyVolumeGroupMembership calls ModifyVolumeGroupMembership mock function.