azblobbackupstorage

package
v0.12.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Package azblobbackupstorage implements the BackupStorage interface for Azure Blob Storage

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL