uploader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	AccessKeyID     string
	SecretAccessKey string
	Region          string
}

Auth is S3 credentials

type Uploader

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

Uploader uploads a file to an s3 location

func New

func New(auth Auth) (*Uploader, error)

New creates an s3 client as uploader

func (*Uploader) Upload

func (u *Uploader) Upload(bucket, key string, body io.ReadSeeker) error

Upload will PUT the s3 body

Jump to

Keyboard shortcuts

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