writer

package
v0.0.0-...-13a1831 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AzureBlobBlockChunkLimitInBytes 100MiB is the limit
	AzureBlobBlockChunkLimitInBytes = 100 * 1024 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer interface {
	// Write writes a backup file to the given path and returns size of written file.
	Write(ctx context.Context, path string, r io.Reader) (int64, error)

	// List backup files
	List(ctx context.Context, basePath string) ([]string, error)

	// Delete a backup file
	Delete(ctx context.Context, path string) error
}

Writer defines the required writer operations.

func NewABSWriter

func NewABSWriter(abs *storage.BlobStorageClient) Writer

NewABSWriter creates a abs writer.

func NewGCSWriter

func NewGCSWriter(gcs *storage.Client) Writer

NewGCSWriter creates a gcs writer.

func NewOSSWriter

func NewOSSWriter(oss *oss.Client) Writer

NewOSSWriter creates a oss writer.

func NewS3Writer

func NewS3Writer(s3 *s3.S3) Writer

NewS3Writer creates a s3 writer.

Jump to

Keyboard shortcuts

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