uploader

package
v0.0.0-...-fa8b75f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Uploader

type Uploader struct {
	Manager *s3manager.Uploader
	Bucket  string
	Prefix  string
	// contains filtered or unexported fields
}

func New

func New(svc s3iface.S3API, bucket, prefix string) *Uploader

func (*Uploader) Upload

func (u *Uploader) Upload(ctx context.Context, path string) (*s3manager.UploadOutput, error)

Jump to

Keyboard shortcuts

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