s3

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(bucketName string, regionName string)

Types

type Uploader

type Uploader struct {
}

Uploader for S3

func (*Uploader) CreateDirectory

func (u *Uploader) CreateDirectory(path string) error

CreateDirectory does nothing since a directory does not need to be created on S3 Directories are virtual, and defined by the path of the object

func (*Uploader) ListDirectory

func (u *Uploader) ListDirectory(directory string) ([]string, error)

func (*Uploader) Upload

func (u *Uploader) Upload(source string, destination string, contType string) error

Upload copies a file int a bucket in S3

Jump to

Keyboard shortcuts

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