client

package
v0.9.0 Latest Latest
Warning

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

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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