Documentation
¶
Index ¶
- type BackupProviderConfigGCP
- type BackupProviderGCP
- func (b *BackupProviderGCP) CleanupBackups(_ context.Context) error
- func (b *BackupProviderGCP) DownloadBackup(ctx context.Context, version *providers.BackupVersion, writer io.Writer) error
- func (b *BackupProviderGCP) EnsureBackupBucket(ctx context.Context) error
- func (b *BackupProviderGCP) GetNextBackupName(_ context.Context) string
- func (b *BackupProviderGCP) ListBackups(ctx context.Context) (providers.BackupVersions, error)
- func (b *BackupProviderGCP) UploadBackup(ctx context.Context, reader io.Reader) error
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 FS afero.Fs ClientOpts []option.ClientOption Suffix 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(ctx context.Context, log *slog.Logger, config *BackupProviderConfigGCP) (*BackupProviderGCP, error)
New returns a GCP backup provider
func (*BackupProviderGCP) CleanupBackups ¶
func (b *BackupProviderGCP) CleanupBackups(_ context.Context) error
CleanupBackups cleans up backups according to the given backup cleanup policy at the backup provider
func (*BackupProviderGCP) DownloadBackup ¶
func (b *BackupProviderGCP) DownloadBackup(ctx context.Context, version *providers.BackupVersion, writer io.Writer) error
DownloadBackup downloads the given backup version to the specified folder
func (*BackupProviderGCP) EnsureBackupBucket ¶
func (b *BackupProviderGCP) EnsureBackupBucket(ctx context.Context) error
EnsureBackupBucket ensures a backup bucket at the backup provider
func (*BackupProviderGCP) GetNextBackupName ¶
func (b *BackupProviderGCP) GetNextBackupName(_ context.Context) string
GetNextBackupName returns a name for the next backup archive that is going to be uploaded
func (*BackupProviderGCP) ListBackups ¶
func (b *BackupProviderGCP) ListBackups(ctx context.Context) (providers.BackupVersions, error)
ListBackups lists the available backups of the backup provider
func (*BackupProviderGCP) UploadBackup ¶
UploadBackup uploads a backup to the backup ovider
Click to show internal directories.
Click to hide internal directories.