aws

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: BSD-3-Clause Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Helper golang package to easy execute Lambda and S3 AWS SDK functions

The aws golang package create connection to AWS Keyspaces and provides functions to easy use AWS SDK Labda and S3 functions.

GoDoc Go Report Card

Basic usage example

...

Licence

BSD

Documentation

Overview

Helper golang package to easy execute Lambda, S3 and Cognito AWS SDK functions.

Index

Constants

This section is empty.

Variables

View Source
var ErrCognitoUserNotFound = fmt.Errorf("not found")

Functions

This section is empty.

Types

type Aws

type Aws struct {
	S3      awsS3
	Lambda  awsLambda
	Cognito awsCognito
}

Aws methods receiver and data structure

func New added in v0.0.3

func New(region ...string) (a *Aws, err error)

New creates AWS S3 and Lambda clients

func (Aws) AwsError added in v0.0.19

func (a Aws) AwsError(err error) (awsErr smithy.APIError, ok bool)

AwsError return aws error. This function check if err is aws smithy.APIError and return it and true in ok. If err is not aws smithy.APIError, this function return false in ok.

type Cache added in v0.0.21

type Cache struct {
	// contains filtered or unexported fields
}

func (*Cache) Clear added in v0.0.21

func (c *Cache) Clear(userPoolId string)

Clear clears the cache for a given userPoolId.

func (*Cache) Get added in v0.0.21

func (c *Cache) Get(userPoolId, sub string) (user *UserType, err error)

func (*Cache) Len added in v0.0.21

func (c *Cache) Len(userPoolId string) int

Len returns the length of the cache for a given userPoolId.

type ListObjects added in v0.1.0

type ListObjects struct {

	// Sets the maximum number of keys returned in the response. By default if
	// MaxKeys equals 0, the action returns up to 1,000 key names. The response
	// might contain fewer keys but will never contain more.
	MaxKeys int

	// Marker is where you want Amazon S3 to start listing from. Amazon S3 starts
	// listing after this specified key. Marker can be any key in the bucket.
	Marker string

	// A delimiter is a character that you use to group keys.
	Delimiter string
}

ListObjects is a struct that contains the parameters for the awsS3.List function

type UserType added in v0.0.14

type UserType = types.UserType

A user profile in a Amazon Cognito user pool.

Jump to

Keyboard shortcuts

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