writer

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 14 Imported by: 62

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 added in v0.8.4

func NewABSWriter(abs *storage.BlobStorageClient) Writer

NewABSWriter creates a abs writer.

func NewGCSWriter added in v0.9.4

func NewGCSWriter(gcs *storage.Client) Writer

NewGCSWriter creates a gcs 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