Documentation ¶
Index ¶
- func AddFileToS3(s *session.Session, localFileDir, fileDir string) error
- func AddFileToS3ACL(s *session.Session, localFileDir, fileDir, perm string) error
- func AddFileToS3ACLBucket(s *session.Session, bucket, localFileDir, fileDir, perm string) error
- func GetS3FileFromS3(s *session.Session, to, bucket, s3fn string) (err error)
- func Setup(gcfg *AwsS3Cfg, lfp *os.File) (s *session.Session, err error)
- type AwsS3Cfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFileToS3 ¶
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 ¶
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-read" or "private".
func AddFileToS3ACLBucket ¶
func GetS3FileFromS3 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.