Documentation
¶
Index ¶
- func RetrySleep(sleepTime *time.Duration)
- type ReplicaClient
- func (c *ReplicaClient) Close() error
- func (c *ReplicaClient) Coalesce(from, to string) error
- func (c *ReplicaClient) Create(size string) error
- func (c *ReplicaClient) CreateBackup(snapshot, dest, volume string) (string, error)
- func (c *ReplicaClient) Delete(path string) error
- func (c *ReplicaClient) GetAddress() string
- func (c *ReplicaClient) GetRebuildInfo() (rest.RebuildInfoOutput, error)
- func (c *ReplicaClient) GetReplica() (rest.Replica, error)
- func (c *ReplicaClient) HardLink(from, to string) error
- func (c *ReplicaClient) InspectBackup(backup string) (string, error)
- func (c *ReplicaClient) LaunchReceiver(toFilePath string) (string, int, error)
- func (c *ReplicaClient) ListBackup(destURL, volume string) (string, error)
- func (c *ReplicaClient) OpenReplica() error
- func (c *ReplicaClient) PrepareRemoveDisk(disk string) (rest.PrepareRemoveDiskOutput, error)
- func (c *ReplicaClient) ReloadReplica() (rest.Replica, error)
- func (c *ReplicaClient) RemoveDisk(disk string) error
- func (c *ReplicaClient) ReplaceDisk(target, source string) error
- func (c *ReplicaClient) RestoreBackup(backup, snapshotFile string) error
- func (c *ReplicaClient) Revert(name, created string) error
- func (c *ReplicaClient) RmBackup(backup string) error
- func (c *ReplicaClient) SendFile(from, host string, port int) error
- func (c *ReplicaClient) SetLogging(lf util.LogToFile) error
- func (c *ReplicaClient) SetRebuilding(rebuilding bool) error
- func (c *ReplicaClient) SetTimeout(timeout time.Duration)
- func (c *ReplicaClient) UpdateCloneInfo(snapName, revCount string) (rest.Replica, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RetrySleep ¶
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 (*ReplicaClient) HardLink ¶
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
Click to show internal directories.
Click to hide internal directories.