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