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(id, replicationID string, secretName, secretNamespace string, parameters map[string]string) (*proto.EnableVolumeReplicationResponse, error)
// DisableVolumeReplication RPC call to disable the volume replication.
DisableVolumeReplication(id, replicationID string, secretName, secretNamespace string, parameters map[string]string) (*proto.DisableVolumeReplicationResponse, error)
// PromoteVolume RPC call to promote the volume.
PromoteVolume(id, replicationID string, force bool, secretName, secretNamespace string, parameters map[string]string) (*proto.
PromoteVolumeResponse, error)
// DemoteVolume RPC call to demote the volume.
DemoteVolume(id, replicationID string, secretName, secretNamespace string, parameters map[string]string) (*proto.
DemoteVolumeResponse, error)
// ResyncVolume RPC call to resync the volume.
ResyncVolume(id, replicationID string, force bool, secretName, secretNamespace string, parameters map[string]string) (*proto.
ResyncVolumeResponse, error)
// GetVolumeReplicationInfo RPC call to get volume replication info.
GetVolumeReplicationInfo(id, replicationID, secretName, secretNamespace string) (*proto.GetVolumeReplicationInfoResponse, error)
}
VolumeReplication holds the methods required for replication.
func NewVolumeGroupReplicationClient ¶ added in v0.9.0
func NewVolumeGroupReplicationClient(cc *grpc.ClientConn, timeout time.Duration) VolumeReplication
NewVolumeGroupReplicationClient returns VolumeReplication interface which has the RPC calls for volume group replication.
func NewVolumeReplicationClient ¶ added in v0.9.0
func NewVolumeReplicationClient(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.