aws

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwsSession added in v0.0.4

func AwsSession() *session.Session

* * AWS Session *

func DeleteFile

func DeleteFile(url string) (bool, error)

* * DeleteFile * @params url string * @return bool, error *

func DeleteS3

func DeleteS3(bucket, key string) (*s3.DeleteObjectOutput, error)

* * DeleteS3 * @params bucket string * @params key string * @return *s3.DeleteObjectOutput, error *

func DownloadS3

func DownloadS3(bucket, key string) (*s3.GetObjectOutput, error)

* * DownloadS3 * @params bucket string * @params key string * @return *s3.GetObjectOutput, error *

func DownloaderFile

func DownloaderFile(url string) (string, error)

* * DownloaderFile * @params url string * @return string, error *

func Email added in v0.0.4

func Email(to string, subject string, message string) (bool, error)

func SMS added in v0.0.4

func SMS(country string, mobile string, message string) (bool, interface{}, error)

func UploaderB64

func UploaderB64(b64, filename, contentType string) (et.Json, error)

* * UploaderB64 * @params b64 string * @params filename string * @params contentType string * @return et.Json, error *

func UploaderFile

func UploaderFile(r *http.Request, folder, name string) (et.Json, error)

* * UploaderFile * @params r *http.Request * @params folder string * @params name string * @return et.Json, error *

func UploaderS3

func UploaderS3(bucket, filename, contentType string, contentFile []byte) (*s3manager.UploadOutput, error)

* * UploaderS3 * @params bucket string * @params filename string * @params contentType string * @params contentFile []byte * @return *s3manager.UploadOutput, error *

Types

This section is empty.

Jump to

Keyboard shortcuts

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