filestorage

package
v0.0.0-...-266bd3a Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package filestorage abstracts the file storage source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	Download(ctx context.Context, w io.WriterAt) error
}

Downloader is an interface for downloading files from Cloud storages.

func NewS3PublicDownloader

func NewS3PublicDownloader(region, bucket, key string) Downloader

NewS3PublicDownloader creates an instance of S3Downloader to a public AWS S3.

type S3Downloader

type S3Downloader struct {
	// contains filtered or unexported fields
}

S3Downloader implements Downloader for AWS S3.

func (S3Downloader) Download

func (storage S3Downloader) Download(ctx context.Context, w io.WriterAt) error

Download downloads a file from a public AWS S3.

Jump to

Keyboard shortcuts

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