go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/mysqlctl/filebackupstorage Index | Files

package filebackupstorage

import "gopkg.in/src-d/go-vitess.v1/vt/mysqlctl/filebackupstorage"

Package filebackupstorage implements the BackupStorage interface for a local filesystem (which can be an NFS mount).

Index

Package Files

file.go

Variables

var (
    // FileBackupStorageRoot is where the backups will go.
    // Exported for test purposes.
    FileBackupStorageRoot = flag.String("file_backup_storage_root", "", "root directory for the file backup storage")
)

type FileBackupHandle Uses

type FileBackupHandle struct {
    // contains filtered or unexported fields
}

FileBackupHandle implements BackupHandle for local file system.

func (*FileBackupHandle) AbortBackup Uses

func (fbh *FileBackupHandle) AbortBackup(ctx context.Context) error

AbortBackup is part of the BackupHandle interface

func (*FileBackupHandle) AddFile Uses

func (fbh *FileBackupHandle) AddFile(ctx context.Context, filename string, filesize int64) (io.WriteCloser, error)

AddFile is part of the BackupHandle interface

func (*FileBackupHandle) Directory Uses

func (fbh *FileBackupHandle) Directory() string

Directory is part of the BackupHandle interface

func (*FileBackupHandle) EndBackup Uses

func (fbh *FileBackupHandle) EndBackup(ctx context.Context) error

EndBackup is part of the BackupHandle interface

func (*FileBackupHandle) Name Uses

func (fbh *FileBackupHandle) Name() string

Name is part of the BackupHandle interface

func (*FileBackupHandle) ReadFile Uses

func (fbh *FileBackupHandle) ReadFile(ctx context.Context, filename string) (io.ReadCloser, error)

ReadFile is part of the BackupHandle interface

type FileBackupStorage Uses

type FileBackupStorage struct{}

FileBackupStorage implements BackupStorage for local file system.

func (*FileBackupStorage) Close Uses

func (fbs *FileBackupStorage) Close() error

Close implements BackupStorage.

func (*FileBackupStorage) ListBackups Uses

func (fbs *FileBackupStorage) ListBackups(ctx context.Context, dir string) ([]backupstorage.BackupHandle, error)

ListBackups is part of the BackupStorage interface

func (*FileBackupStorage) RemoveBackup Uses

func (fbs *FileBackupStorage) RemoveBackup(ctx context.Context, dir, name string) error

RemoveBackup is part of the BackupStorage interface

func (*FileBackupStorage) StartBackup Uses

func (fbs *FileBackupStorage) StartBackup(ctx context.Context, dir, name string) (backupstorage.BackupHandle, error)

StartBackup is part of the BackupStorage interface

Package filebackupstorage imports 8 packages (graph). Updated 2019-06-13. Refresh now. Tools for package owners.