replication

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMessageFromError

func GetMessageFromError(err error) string

GetMessageFromError returns the message from the error.

Types

type CommonRequestParameters

type CommonRequestParameters struct {
	VolumeID        string
	GroupID         string
	ReplicationID   string
	Parameters      map[string]string
	SecretName      string
	SecretNamespace string
	Replication     client.VolumeReplication
}

CommonRequestParameters holds the common parameters across replication operations.

type Replication

type Replication struct {
	Params CommonRequestParameters
	Force  bool
}

Replication represents the instance of a single replication operation.

func (*Replication) Demote

func (r *Replication) Demote() *Response

func (*Replication) Disable

func (r *Replication) Disable() *Response

func (*Replication) Enable

func (r *Replication) Enable() *Response

func (*Replication) GetInfo

func (r *Replication) GetInfo() *Response

func (*Replication) Promote

func (r *Replication) Promote() *Response

func (*Replication) Resync

func (r *Replication) Resync() *Response

type Response

type Response struct {
	Response interface{}
	Error    error
}

Response is the response of a replication operation.

func (*Response) HasKnownGRPCError

func (r *Response) HasKnownGRPCError(knownErrors []codes.Code) bool

Jump to

Keyboard shortcuts

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