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