Documentation ¶
Index ¶
- type BackupProviderConfigLocal
- type BackupProviderLocal
- func (b *BackupProviderLocal) CleanupBackups(_ context.Context) error
- func (b *BackupProviderLocal) DownloadBackup(_ context.Context, version *providers.BackupVersion) error
- func (b *BackupProviderLocal) EnsureBackupBucket(_ context.Context) error
- func (b *BackupProviderLocal) GetNextBackupName(_ context.Context) string
- func (b *BackupProviderLocal) ListBackups(_ context.Context) (providers.BackupVersions, error)
- func (b *BackupProviderLocal) UploadBackup(_ context.Context, sourcePath string) error
- type BackupVersionsLocal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupProviderConfigLocal ¶
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 ¶
func New(log *slog.Logger, config *BackupProviderConfigLocal) (*BackupProviderLocal, error)
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 ¶
func (b *BackupProviderLocal) ListBackups(_ context.Context) (providers.BackupVersions, error)
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 (b BackupVersionsLocal) Get(version string) (*providers.BackupVersion, error)
func (BackupVersionsLocal) Latest ¶
func (b BackupVersionsLocal) Latest() *providers.BackupVersion
func (BackupVersionsLocal) List ¶
func (b BackupVersionsLocal) List() []*providers.BackupVersion
func (BackupVersionsLocal) Sort ¶
func (b BackupVersionsLocal) Sort(versions []*providers.BackupVersion, oldestFirst bool)