itemoperationmap

package
v1.15.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

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 (*OperationsForBackup) DeepCopyInto

func (m *OperationsForBackup) DeepCopyInto(out *OperationsForBackup)

type OperationsForRestore

type OperationsForRestore struct {
	Operations         []*itemoperation.RestoreOperation
	ChangesSinceUpdate bool
	ErrsSinceUpdate    []string
}

func (*OperationsForRestore) DeepCopy

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

Jump to

Keyboard shortcuts

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