client

package
v1.12.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrySleep

func RetrySleep(sleepTime *time.Duration)

Types

type ReplicaClient

type ReplicaClient struct {
	// contains filtered or unexported fields
}

func NewReplicaClient

func NewReplicaClient(address string) (*ReplicaClient, error)

func (*ReplicaClient) Close

func (c *ReplicaClient) Close() error

func (*ReplicaClient) Coalesce

func (c *ReplicaClient) Coalesce(from, to string) error

func (*ReplicaClient) Create

func (c *ReplicaClient) Create(size string) error

func (*ReplicaClient) CreateBackup

func (c *ReplicaClient) CreateBackup(snapshot, dest, volume string) (string, error)

func (*ReplicaClient) Delete

func (c *ReplicaClient) Delete(path string) error

func (*ReplicaClient) GetAddress

func (c *ReplicaClient) GetAddress() string

GetAddress is used to get the address of replica client

func (*ReplicaClient) GetRebuildInfo

func (c *ReplicaClient) GetRebuildInfo() (rest.RebuildInfoOutput, error)

func (*ReplicaClient) GetReplica

func (c *ReplicaClient) GetReplica() (rest.Replica, error)
func (c *ReplicaClient) HardLink(from, to string) error

func (*ReplicaClient) InspectBackup

func (c *ReplicaClient) InspectBackup(backup string) (string, error)

func (*ReplicaClient) LaunchReceiver

func (c *ReplicaClient) LaunchReceiver(toFilePath string) (string, int, error)

func (*ReplicaClient) ListBackup

func (c *ReplicaClient) ListBackup(destURL, volume string) (string, error)

func (*ReplicaClient) OpenReplica

func (c *ReplicaClient) OpenReplica() error

func (*ReplicaClient) PrepareRemoveDisk

func (c *ReplicaClient) PrepareRemoveDisk(disk string) (rest.PrepareRemoveDiskOutput, error)

func (*ReplicaClient) ReloadReplica

func (c *ReplicaClient) ReloadReplica() (rest.Replica, error)

func (*ReplicaClient) RemoveDisk

func (c *ReplicaClient) RemoveDisk(disk string) error

func (*ReplicaClient) ReplaceDisk

func (c *ReplicaClient) ReplaceDisk(target, source string) error

func (*ReplicaClient) RestoreBackup

func (c *ReplicaClient) RestoreBackup(backup, snapshotFile string) error

func (*ReplicaClient) Revert

func (c *ReplicaClient) Revert(name, created string) error

func (*ReplicaClient) RmBackup

func (c *ReplicaClient) RmBackup(backup string) error

func (*ReplicaClient) SendFile

func (c *ReplicaClient) SendFile(from, host string, port int) error

func (*ReplicaClient) SetLogging

func (c *ReplicaClient) SetLogging(lf util.LogToFile) error

func (*ReplicaClient) SetRebuilding

func (c *ReplicaClient) SetRebuilding(rebuilding bool) error

func (*ReplicaClient) SetTimeout

func (c *ReplicaClient) SetTimeout(timeout time.Duration)

SetTimeout override the timeout of the client for a request Ignore setting timeout if httpClient is nil as ReplicaClient may not be initialized.

func (*ReplicaClient) UpdateCloneInfo

func (c *ReplicaClient) UpdateCloneInfo(snapName, revCount string) (rest.Replica, error)

UpdateCloneInfo update the snapname and revision count

Jump to

Keyboard shortcuts

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