upload

package
v0.0.0-...-3f73818 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyS3BucketName = errors.New("empty S3 bucket name")

Functions

This section is empty.

Types

type S3Config

type S3Config struct {
	Region    string
	Bucket    string
	Directory string
}

type Uploader

type Uploader interface {
	// Key is a unique identifier for the file.
	Upload(key string, body io.Reader) error
	GetDirectory() string
}

func NewS3Uploader

func NewS3Uploader(config S3Config) (Uploader, error)

Jump to

Keyboard shortcuts

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