aws

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(params ...string) aws.Config

func DynamoBatchInsert added in v1.1.4

func DynamoBatchInsert(region string, table string, params []any) error

DynamoBatchInsert - Similar to DynamoInsert but do a batch insert of items

func DynamoInsert added in v1.0.1

func DynamoInsert(region string, table string, params any) error

func DynamoTableRefresh added in v1.1.4

func DynamoTableRefresh(region string, table string, partitionKey string, sortKey string) error

DynamoTableRefresh - Delete and re-create a table

func S3

func S3() *s3.Client

func SES added in v0.1.26

func SES() *ses.Client

func SendEmail added in v0.1.26

func SendEmail(to string, subject string, body string, from string) (*ses.SendEmailOutput, error)

func Upload

func Upload(bodyBytes []byte) (string, error)

Upload Uploads a file to S3 naming it after a hash of the file contents. Accepts a public URL returns the URL of the uploaded file and an error if there was one.

func UploadFile added in v0.7.1

func UploadFile(fileHeader *multipart.FileHeader) (string, error)

UploadFile - same functionality as UploadURL but take in a multipart.FileHeader

func UploadURL added in v0.7.1

func UploadURL(url string) (string, error)

UploadURL Uploads a file to S3 naming it after a hash of the file contents. Accepts a public URL returns the URL of the uploaded file and an error if there was one.

func Uploader

func Uploader() *manager.Uploader

func VerifyEmail added in v1.1.10

func VerifyEmail(to string) (*ses.VerifyEmailIdentityOutput, error)

Types

type DynamoIndexQuery added in v1.0.2

type DynamoIndexQuery struct {
	Region      string
	Table       string
	Wheres      DynamoIndexWheres
	OrderField  string
	Direction   string
	SetLimit    *int32
	ExposeQuery bool
}

func DynamoIndex added in v1.0.1

func DynamoIndex(region string, table string) DynamoIndexQuery

func (DynamoIndexQuery) Asc added in v1.0.2

func (DynamoIndexQuery) Desc added in v1.0.2

func (DynamoIndexQuery) Get added in v1.0.2

func (q DynamoIndexQuery) Get(out interface{}) (*DynamoIndexResults, error)

func (DynamoIndexQuery) Limit added in v1.0.2

func (q DynamoIndexQuery) Limit(limit int) DynamoIndexQuery

func (DynamoIndexQuery) Order added in v1.0.2

func (q DynamoIndexQuery) Order(field string) DynamoIndexQuery

func (DynamoIndexQuery) ShowQuery added in v1.1.2

func (q DynamoIndexQuery) ShowQuery(value bool) DynamoIndexQuery

func (DynamoIndexQuery) WhereBool added in v1.0.6

func (q DynamoIndexQuery) WhereBool(field string, value bool) DynamoIndexQuery

func (DynamoIndexQuery) WhereStr added in v1.0.6

func (q DynamoIndexQuery) WhereStr(field string, value string) DynamoIndexQuery

type DynamoIndexResults added in v1.0.2

type DynamoIndexResults struct {
	NextToken *string     `json:"next_token,omitempty"`
	Items     interface{} `json:"items"`
	Query     *string     `json:"query,omitempty"`
}

DynamoIndexResults hide query if not specified

type DynamoIndexWhere added in v1.0.3

type DynamoIndexWhere struct {
	Field string
	Type  string
	Value interface{}
}

func (DynamoIndexWhere) ToString added in v1.0.6

func (w DynamoIndexWhere) ToString() string

type DynamoIndexWheres added in v1.0.3

type DynamoIndexWheres []DynamoIndexWhere

func (*DynamoIndexWheres) Add added in v1.0.3

func (w *DynamoIndexWheres) Add(field string, fType string, value interface{})

Add - append to the w

Jump to

Keyboard shortcuts

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