Documentation
¶
Index ¶
- type BackupProviderConfigGCP
- type BackupProviderGCP
- func (b *BackupProviderGCP) CleanupBackups() error
- func (b *BackupProviderGCP) DownloadBackup(version *providers.BackupVersion) error
- func (b *BackupProviderGCP) EnsureBackupBucket() error
- func (b *BackupProviderGCP) GetNextBackupName() string
- func (b *BackupProviderGCP) ListBackups() (providers.BackupVersions, error)
- func (b *BackupProviderGCP) UploadBackup(sourcePath string) error
- type BackupVersionsGCP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupProviderConfigGCP ¶
type BackupProviderConfigGCP struct { BucketName string BucketLocation string BackupName string ObjectPrefix string ObjectsToKeep int64 ProjectID string }
BackupProviderConfigGCP provides configuration for the BackupProviderGCP
type BackupProviderGCP ¶
type BackupProviderGCP struct {
// contains filtered or unexported fields
}
BackupProviderGCP implements the backup provider interface for GCP
func New ¶
func New(log *zap.SugaredLogger, config *BackupProviderConfigGCP) (*BackupProviderGCP, error)
New returns a GCP backup provider
func (*BackupProviderGCP) CleanupBackups ¶
func (b *BackupProviderGCP) CleanupBackups() error
CleanupBackups cleans up backups according to the given backup cleanup policy at the backup provider
func (*BackupProviderGCP) DownloadBackup ¶
func (b *BackupProviderGCP) DownloadBackup(version *providers.BackupVersion) error
DownloadBackup downloads the given backup version to the restoration folder
func (*BackupProviderGCP) EnsureBackupBucket ¶
func (b *BackupProviderGCP) EnsureBackupBucket() error
EnsureBackupBucket ensures a backup bucket at the backup provider
func (*BackupProviderGCP) GetNextBackupName ¶
func (b *BackupProviderGCP) GetNextBackupName() string
GetNextBackupName returns a name for the next backup archive that is going to be uploaded
func (*BackupProviderGCP) ListBackups ¶
func (b *BackupProviderGCP) ListBackups() (providers.BackupVersions, error)
ListBackups lists the available backups of the backup provider
func (*BackupProviderGCP) UploadBackup ¶
func (b *BackupProviderGCP) UploadBackup(sourcePath string) error
UploadBackup uploads a backup to the backup provider
type BackupVersionsGCP ¶
type BackupVersionsGCP struct {
// contains filtered or unexported fields
}
func (BackupVersionsGCP) Get ¶
func (b BackupVersionsGCP) Get(version string) (*providers.BackupVersion, error)
func (BackupVersionsGCP) Latest ¶
func (b BackupVersionsGCP) Latest() *providers.BackupVersion
func (BackupVersionsGCP) List ¶
func (b BackupVersionsGCP) List() []*providers.BackupVersion
func (BackupVersionsGCP) Sort ¶
func (b BackupVersionsGCP) Sort(versions []*providers.BackupVersion, asc bool)
Click to show internal directories.
Click to hide internal directories.