reader

package
v0.0.0-...-04b7f26 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 9 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 NewOSSReader

func NewOSSReader(client *oss.Client) Reader

NewOSSReader return a Reader implementation to read a file from OSS in the form of ossReader

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