Documentation ¶
Overview ¶
Package Cephbackupstorage implements the BackupStorage interface for Ceph Cloud Storage.
Index ¶
- Variables
- type CephBackupHandle
- func (bh *CephBackupHandle) AbortBackup() error
- func (bh *CephBackupHandle) AddFile(filename string) (io.WriteCloser, error)
- func (bh *CephBackupHandle) Directory() string
- func (bh *CephBackupHandle) EndBackup() error
- func (bh *CephBackupHandle) Name() string
- func (bh *CephBackupHandle) ReadFile(filename string) (io.ReadCloser, error)
- type CephBackupStorage
Constants ¶
This section is empty.
Variables ¶
View Source
var StorageConfig struct { AccessKey string `json:"accessKey"` SecretKey string `json:"secretKey"` EndPoint string `json:"endPoint"` Bucket string `json:"bucket"` }
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() error
AbortBackup implements BackupHandle.
func (*CephBackupHandle) AddFile ¶
func (bh *CephBackupHandle) AddFile(filename string) (io.WriteCloser, error)
AddFile implements BackupHandle.
func (*CephBackupHandle) Directory ¶
func (bh *CephBackupHandle) Directory() string
Directory implements BackupHandle.
func (*CephBackupHandle) EndBackup ¶
func (bh *CephBackupHandle) EndBackup() error
EndBackup implements BackupHandle.
func (*CephBackupHandle) Name ¶
func (bh *CephBackupHandle) Name() string
Name implements BackupHandle.
func (*CephBackupHandle) ReadFile ¶
func (bh *CephBackupHandle) ReadFile(filename string) (io.ReadCloser, error)
ReadFile implements BackupHandle.
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(dir string) ([]backupstorage.BackupHandle, error)
ListBackups implements BackupStorage.
func (*CephBackupStorage) RemoveBackup ¶
func (bs *CephBackupStorage) RemoveBackup(dir, name string) error
RemoveBackup implements BackupStorage.
func (*CephBackupStorage) StartBackup ¶
func (bs *CephBackupStorage) StartBackup(dir, name string) (backupstorage.BackupHandle, error)
StartBackup implements BackupStorage.
Click to show internal directories.
Click to hide internal directories.