Documentation ¶
Overview ¶
Package gcsbackupstorage implements the BackupStorage interface for Google Cloud Storage.
Index ¶
- type GCSBackupHandle
- func (bh *GCSBackupHandle) AbortBackup(ctx context.Context) error
- func (bh *GCSBackupHandle) AddFile(ctx context.Context, filename string, filesize int64) (io.WriteCloser, error)
- func (bh *GCSBackupHandle) Directory() string
- func (bh *GCSBackupHandle) EndBackup(ctx context.Context) error
- func (bh *GCSBackupHandle) Error() error
- func (bh *GCSBackupHandle) HasErrors() bool
- func (bh *GCSBackupHandle) Name() string
- func (bh *GCSBackupHandle) ReadFile(ctx context.Context, filename string) (io.ReadCloser, error)
- func (bh *GCSBackupHandle) RecordError(err error)
- type GCSBackupStorage
- func (bs *GCSBackupStorage) Close() error
- func (bs *GCSBackupStorage) ListBackups(ctx context.Context, dir string) ([]backupstorage.BackupHandle, error)
- func (bs *GCSBackupStorage) RemoveBackup(ctx context.Context, dir, name string) error
- func (bs *GCSBackupStorage) StartBackup(ctx context.Context, dir, name string) (backupstorage.BackupHandle, error)
- func (bs *GCSBackupStorage) WithParams(params backupstorage.Params) backupstorage.BackupStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GCSBackupHandle ¶
type GCSBackupHandle struct {
// contains filtered or unexported fields
}
GCSBackupHandle implements BackupHandle for Google Cloud Storage.
func (*GCSBackupHandle) AbortBackup ¶
func (bh *GCSBackupHandle) AbortBackup(ctx context.Context) error
AbortBackup implements BackupHandle.
func (*GCSBackupHandle) AddFile ¶
func (bh *GCSBackupHandle) AddFile(ctx context.Context, filename string, filesize int64) (io.WriteCloser, error)
AddFile implements BackupHandle.
func (*GCSBackupHandle) Directory ¶
func (bh *GCSBackupHandle) Directory() string
Directory implements BackupHandle.
func (*GCSBackupHandle) EndBackup ¶
func (bh *GCSBackupHandle) EndBackup(ctx context.Context) error
EndBackup implements BackupHandle.
func (*GCSBackupHandle) Error ¶
func (bh *GCSBackupHandle) Error() error
Error is part of the concurrency.ErrorRecorder interface.
func (*GCSBackupHandle) HasErrors ¶
func (bh *GCSBackupHandle) HasErrors() bool
HasErrors is part of the concurrency.ErrorRecorder interface.
func (*GCSBackupHandle) Name ¶
func (bh *GCSBackupHandle) Name() string
Name implements BackupHandle.
func (*GCSBackupHandle) ReadFile ¶
func (bh *GCSBackupHandle) ReadFile(ctx context.Context, filename string) (io.ReadCloser, error)
ReadFile implements BackupHandle.
func (*GCSBackupHandle) RecordError ¶
func (bh *GCSBackupHandle) RecordError(err error)
RecordError is part of the concurrency.ErrorRecorder interface.
type GCSBackupStorage ¶
type GCSBackupStorage struct {
// contains filtered or unexported fields
}
GCSBackupStorage implements BackupStorage for Google Cloud Storage.
func (*GCSBackupStorage) Close ¶
func (bs *GCSBackupStorage) Close() error
Close implements BackupStorage.
func (*GCSBackupStorage) ListBackups ¶
func (bs *GCSBackupStorage) ListBackups(ctx context.Context, dir string) ([]backupstorage.BackupHandle, error)
ListBackups implements BackupStorage.
func (*GCSBackupStorage) RemoveBackup ¶
func (bs *GCSBackupStorage) RemoveBackup(ctx context.Context, dir, name string) error
RemoveBackup implements BackupStorage.
func (*GCSBackupStorage) StartBackup ¶
func (bs *GCSBackupStorage) StartBackup(ctx context.Context, dir, name string) (backupstorage.BackupHandle, error)
StartBackup implements BackupStorage.
func (*GCSBackupStorage) WithParams ¶ added in v0.17.0
func (bs *GCSBackupStorage) WithParams(params backupstorage.Params) backupstorage.BackupStorage