awss3

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbFlag = make(map[string]bool)
View Source
var S3_BUCKET = "a-document"
View Source
var S3_REGION = ""

Functions

func AddFileToS3

func AddFileToS3(s *session.Session, localFileDir, fileDir string) error

AddFileToS3 will upload a single file to S3, it will require a pre-built aws session and will set file info like content type and encryption on the uploaded file.

func AddFileToS3ACL

func AddFileToS3ACL(s *session.Session, localFileDir, fileDir, perm string) error

AddFileToS3ACL will upload a single file to S3, it will require a pre-built aws session and will set file info like content type and encryption on the uploaded file.

perm must be "public" or "private".

func SetupS3

func SetupS3(bucket, region string, dbf map[string]bool) (s *session.Session)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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