Documentation ¶
Index ¶
- Constants
- Variables
- func GetSnapshotsInfo(replicas []rest.Replica) (outputDisks map[string]replica.DiskInfo, err error)
- type Task
- func (t *Task) AddReplica(replica string) error
- func (t *Task) CreateBackup(snapshot, dest string, labels []string, credential map[string]string) (string, error)
- func (t *Task) DeleteSnapshot(snapshot string) error
- func (t *Task) PurgeSnapshots() error
- func (t *Task) RestoreBackup(backup string) error
Constants ¶
View Source
const VolumeHeadName = "volume-head"
Variables ¶
View Source
var (
RetryCounts = 3
)
Functions ¶
Types ¶
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) AddReplica ¶
func (*Task) CreateBackup ¶ added in v0.2.0
func (*Task) DeleteSnapshot ¶
func (*Task) PurgeSnapshots ¶ added in v0.3.0
func (*Task) RestoreBackup ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.