reader

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	// Open opens up a backup file for reading.
	Open(path string) (rc io.ReadCloser, err error)
}

Reader defines required reader operations

func NewABSReader

func NewABSReader(abs *storage.BlobStorageClient) Reader

NewABSReader return a Reader implementation to read a file from ABS in the form of absReader

func NewGCSReader

func NewGCSReader(ctx context.Context, gcs *storage.Client) Reader

NewGCSReader return a Reader implementation to read a file from GCS in the form of gcsReader

func NewS3Reader

func NewS3Reader(s3 *s3.S3) Reader

Jump to

Keyboard shortcuts

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