local

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupProviderConfigLocal

type BackupProviderConfigLocal struct {
	LocalBackupPath string
	ObjectsToKeep   int64
	FS              afero.Fs
}

BackupProviderConfigLocal provides configuration for the BackupProviderLocal

type BackupProviderLocal

type BackupProviderLocal struct {
	// contains filtered or unexported fields
}

BackupProviderLocal implements the backup provider interface for no backup provider (useful to disable sidecar functionality in development environments)

func New

New returns a Local backup provider

func (*BackupProviderLocal) CleanupBackups

func (b *BackupProviderLocal) CleanupBackups(_ context.Context) error

CleanupBackups cleans up backups according to the given backup cleanup policy at the backup provider

func (*BackupProviderLocal) DownloadBackup

func (b *BackupProviderLocal) DownloadBackup(_ context.Context, version *providers.BackupVersion) error

DownloadBackup downloads the given backup version to the restoration folder

func (*BackupProviderLocal) EnsureBackupBucket

func (b *BackupProviderLocal) EnsureBackupBucket(_ context.Context) error

EnsureBackupBucket ensures a backup bucket at the backup provider

func (*BackupProviderLocal) GetNextBackupName

func (b *BackupProviderLocal) GetNextBackupName(_ context.Context) string

GetNextBackupName returns a name for the next backup archive that is going to be uploaded

func (*BackupProviderLocal) ListBackups

ListBackups lists the available backups of the backup provider

func (*BackupProviderLocal) UploadBackup

func (b *BackupProviderLocal) UploadBackup(_ context.Context, sourcePath string) error

UploadBackup uploads a backup to the backup provider

type BackupVersionsLocal

type BackupVersionsLocal struct {
	// contains filtered or unexported fields
}

func (BackupVersionsLocal) Get

func (BackupVersionsLocal) Latest

func (BackupVersionsLocal) List

func (BackupVersionsLocal) Sort

func (b BackupVersionsLocal) Sort(versions []*providers.BackupVersion, oldestFirst bool)

Jump to

Keyboard shortcuts

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