client

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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, labels []string, credential map[string]string) (string, 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 added in v0.3.0

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

func (*ReplicaClient) MarkDiskAsRemoved added in v0.3.0

func (c *ReplicaClient) MarkDiskAsRemoved(disk 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, force bool) error

func (*ReplicaClient) ReplaceDisk added in v0.3.0

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) SetRebuilding

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

Jump to

Keyboard shortcuts

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