Documentation
¶
Index ¶
- type BackupProviderConfigLocal
- type BackupProviderLocal
- func (b *BackupProviderLocal) CleanupBackups() error
- func (b *BackupProviderLocal) DownloadBackup(version *providers.BackupVersion) error
- func (b *BackupProviderLocal) EnsureBackupBucket() error
- func (b *BackupProviderLocal) GetNextBackupName() string
- func (b *BackupProviderLocal) ListBackups() (providers.BackupVersions, error)
- func (b *BackupProviderLocal) UploadBackup(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 *zap.SugaredLogger, config *BackupProviderConfigLocal) (*BackupProviderLocal, error)
New returns a Local backup provider
func (*BackupProviderLocal) CleanupBackups ¶
func (b *BackupProviderLocal) CleanupBackups() error
CleanupBackups cleans up backups according to the given backup cleanup policy at the backup provider
func (*BackupProviderLocal) DownloadBackup ¶
func (b *BackupProviderLocal) DownloadBackup(version *providers.BackupVersion) error
DownloadBackup downloads the given backup version to the restoration folder
func (*BackupProviderLocal) EnsureBackupBucket ¶
func (b *BackupProviderLocal) EnsureBackupBucket() error
EnsureBackupBucket ensures a backup bucket at the backup provider
func (*BackupProviderLocal) GetNextBackupName ¶
func (b *BackupProviderLocal) GetNextBackupName() string
GetNextBackupName returns a name for the next backup archive that is going to be uploaded
func (*BackupProviderLocal) ListBackups ¶
func (b *BackupProviderLocal) ListBackups() (providers.BackupVersions, error)
ListBackups lists the available backups of the backup provider
func (*BackupProviderLocal) UploadBackup ¶
func (b *BackupProviderLocal) UploadBackup(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)