Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolumeReplication ¶
type VolumeReplication interface {
// EnableVolumeReplication RPC call to enable the volume replication.
EnableVolumeReplication(volumeID, replicationID string, secretName, secretNamespace string, parameters map[string]string) (*proto.EnableVolumeReplicationResponse, error)
// DisableVolumeReplication RPC call to disable the volume replication.
DisableVolumeReplication(volumeID, replicationID string, secretName, secretNamespace string, parameters map[string]string) (*proto.DisableVolumeReplicationResponse, error)
// PromoteVolume RPC call to promote the volume.
PromoteVolume(volumeID, replicationID string, force bool, secretName, secretNamespace string, parameters map[string]string) (*proto.
PromoteVolumeResponse, error)
// DemoteVolume RPC call to demote the volume.
DemoteVolume(volumeID, replicationID string, secretName, secretNamespace string, parameters map[string]string) (*proto.
DemoteVolumeResponse, error)
// ResyncVolume RPC call to resync the volume.
ResyncVolume(volumeID, replicationID string, force bool, secretName, secretNamespace string, parameters map[string]string) (*proto.
ResyncVolumeResponse, error)
}
VolumeReplication holds the methods required for volume replication.
func NewReplicationClient ¶
func NewReplicationClient(cc *grpc.ClientConn, timeout time.Duration) VolumeReplication
NewReplicationClient returns VolumeReplication interface which has the RPC calls for replication.
Click to show internal directories.
Click to hide internal directories.