cloud

package
v0.0.0-...-73aa1b8 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const NotFound = "NotFound"

Variables

This section is empty.

Functions

This section is empty.

Types

type LambdaClient

type LambdaClient struct {
	Region string
	// contains filtered or unexported fields
}

func NewLambdaClient

func NewLambdaClient(region string) (*LambdaClient, error)

func (*LambdaClient) InvokeAsync

func (c *LambdaClient) InvokeAsync(functionName string, payload interface{}) error

type S3Client

type S3Client struct {
	Region     string
	BucketName string
}

func NewS3Client

func NewS3Client(region string, bucketName string) S3Client

func (*S3Client) Delete

func (c *S3Client) Delete(fileName string) (bool, error)

func (*S3Client) Exists

func (c *S3Client) Exists(fileName string) (bool, error)

func (*S3Client) GetURL

func (c *S3Client) GetURL(fileName string) string

func (*S3Client) Upload

func (c *S3Client) Upload(fileName string, file io.Reader) (bool, error)

type SQSClient

type SQSClient struct {
	Region string
	// contains filtered or unexported fields
}

func NewSQSClient

func NewSQSClient(region string) (*SQSClient, error)

func (*SQSClient) DeleteMessage

func (c *SQSClient) DeleteMessage(queueName string, messageId string) error

func (*SQSClient) SendMessage

func (c *SQSClient) SendMessage(queueName string, payload string) (*string, error)

Jump to

Keyboard shortcuts

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