loader

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInequalKeyAndBucketLen = errors.New("Foo")

ErrInequalKeyAndBucketLen Error to indicate inequal number of buckets and keys

Functions

This section is empty.

Types

type Loader

type Loader struct {
	Downloader *s3manager.Downloader
	Uploader   *s3manager.Uploader
}

Loader Data loader to stage data from and to object storage

func InitLoader

func InitLoader(customS3Endpoint string) Loader

InitLoader Initiates a new data loader

func (*Loader) DownloadFiles

func (loader *Loader) DownloadFiles(buckets []string, keys []string, targetDir string) error

DownloadFiles Downloads the files into a directory

func (*Loader) UploadFiles

func (loader *Loader) UploadFiles(bucket string, baseKey string, filepaths []string) error

UploadFiles Uploads the files to the given object storage location

Jump to

Keyboard shortcuts

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