Documentation ¶
Index ¶
- type BackupItemOperationsMap
- func (m *BackupItemOperationsMap) DeleteOperationsForBackup(backupName string)
- func (m *BackupItemOperationsMap) GetOperationsForBackup(backupStore persistence.BackupStore, backupName string) (*OperationsForBackup, error)
- func (m *BackupItemOperationsMap) PutOperationsForBackup(operations *OperationsForBackup, backupName string)
- func (m *BackupItemOperationsMap) UpdateForBackup(backupStore persistence.BackupStore, backupName string) error
- func (m *BackupItemOperationsMap) UploadProgressAndPutOperationsForBackup(backupStore persistence.BackupStore, operations *OperationsForBackup, ...) error
- type OperationsForBackup
- type OperationsForRestore
- type RestoreItemOperationsMap
- func (m *RestoreItemOperationsMap) DeleteOperationsForRestore(restoreName string)
- func (m *RestoreItemOperationsMap) GetOperationsForRestore(backupStore persistence.BackupStore, restoreName string) (*OperationsForRestore, error)
- func (m *RestoreItemOperationsMap) PutOperationsForRestore(operations *OperationsForRestore, restoreName string)
- func (m *RestoreItemOperationsMap) UpdateForRestore(backupStore persistence.BackupStore, restoreName string) error
- func (m *RestoreItemOperationsMap) UploadProgressAndPutOperationsForRestore(backupStore persistence.BackupStore, operations *OperationsForRestore, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupItemOperationsMap ¶
type BackupItemOperationsMap struct {
// contains filtered or unexported fields
}
func NewBackupItemOperationsMap ¶
func NewBackupItemOperationsMap() *BackupItemOperationsMap
Returns a pointer to a new BackupItemOperationsMap
func (*BackupItemOperationsMap) DeleteOperationsForBackup ¶
func (m *BackupItemOperationsMap) DeleteOperationsForBackup(backupName string)
func (*BackupItemOperationsMap) GetOperationsForBackup ¶
func (m *BackupItemOperationsMap) GetOperationsForBackup( backupStore persistence.BackupStore, backupName string) (*OperationsForBackup, error)
returns a deep copy so we can minimize the time the map is locked
func (*BackupItemOperationsMap) PutOperationsForBackup ¶
func (m *BackupItemOperationsMap) PutOperationsForBackup( operations *OperationsForBackup, backupName string)
func (*BackupItemOperationsMap) UpdateForBackup ¶
func (m *BackupItemOperationsMap) UpdateForBackup(backupStore persistence.BackupStore, backupName string) error
UpdateForBackup will upload the item operations for this backup to the object store, if it has changes not yet uploaded
func (*BackupItemOperationsMap) UploadProgressAndPutOperationsForBackup ¶
func (m *BackupItemOperationsMap) UploadProgressAndPutOperationsForBackup( backupStore persistence.BackupStore, operations *OperationsForBackup, backupName string) error
UploadProgressAndPutOperationsForBackup will upload the item operations for this backup to the object store and update the map for this backup with the modified operations
type OperationsForBackup ¶
type OperationsForBackup struct { Operations []*itemoperation.BackupOperation ChangesSinceUpdate bool ErrsSinceUpdate []string }
func (*OperationsForBackup) DeepCopy ¶
func (m *OperationsForBackup) DeepCopy() *OperationsForBackup
func (*OperationsForBackup) DeepCopyInto ¶
func (m *OperationsForBackup) DeepCopyInto(out *OperationsForBackup)
type OperationsForRestore ¶
type OperationsForRestore struct { Operations []*itemoperation.RestoreOperation ChangesSinceUpdate bool ErrsSinceUpdate []string }
func (*OperationsForRestore) DeepCopy ¶
func (m *OperationsForRestore) DeepCopy() *OperationsForRestore
func (*OperationsForRestore) DeepCopyInto ¶
func (m *OperationsForRestore) DeepCopyInto(out *OperationsForRestore)
type RestoreItemOperationsMap ¶
type RestoreItemOperationsMap struct {
// contains filtered or unexported fields
}
func NewRestoreItemOperationsMap ¶
func NewRestoreItemOperationsMap() *RestoreItemOperationsMap
Returns a pointer to a new RestoreItemOperationsMap
func (*RestoreItemOperationsMap) DeleteOperationsForRestore ¶
func (m *RestoreItemOperationsMap) DeleteOperationsForRestore(restoreName string)
func (*RestoreItemOperationsMap) GetOperationsForRestore ¶
func (m *RestoreItemOperationsMap) GetOperationsForRestore( backupStore persistence.BackupStore, restoreName string) (*OperationsForRestore, error)
returns a deep copy so we can minimize the time the map is locked
func (*RestoreItemOperationsMap) PutOperationsForRestore ¶
func (m *RestoreItemOperationsMap) PutOperationsForRestore( operations *OperationsForRestore, restoreName string)
func (*RestoreItemOperationsMap) UpdateForRestore ¶
func (m *RestoreItemOperationsMap) UpdateForRestore(backupStore persistence.BackupStore, restoreName string) error
UpdateForRestore will upload the item operations for this restore to the object store, if it has changes not yet uploaded
func (*RestoreItemOperationsMap) UploadProgressAndPutOperationsForRestore ¶
func (m *RestoreItemOperationsMap) UploadProgressAndPutOperationsForRestore( backupStore persistence.BackupStore, operations *OperationsForRestore, restoreName string) error
UploadProgressAndPutOperationsForRestore will upload the item operations for this restore to the object store and update the map for this restore with the modified operations