s3

package
v0.0.0-...-df5dd59 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadAssets

func UploadAssets(app *parser.MobileApp, bucket, destBaseDir string) ([]string, error)

UploadAssets uploads the generated files by the parser package along with the ipa or apk file. It accepts a struct of type *parser.MobileApp and the destination base directory of the s3 bucket. It returns a slice of aws s3 files url.

func UploadFile

func UploadFile(upload Upload) (string, error)

UploadFile accepts a struct of type Upload. It is assumed that the caller has AWS_ACCESS_KEY and AWS_ACCESS_SECRET_KEY is defined as env variable.

API doc: https://github.com/aws/aws-sdk-go/blob/master/service/s3/s3manager/upload.go#L218-L252

Types

type Upload

type Upload struct {
	Bucket, SrcFile, DestFilePath string
}

Upload is used by UploadFile

Jump to

Keyboard shortcuts

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