dynamotestutils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDbContext

func NewDbContext(t *testing.T) (*session.Session, *dynamodb.DynamoDB, string)

NewDbContext generate AWS session, DynamoDB client, and a table name that will be deleted at the end of the function.

func NewLocalstackSession

func NewLocalstackSession() *session.Session

NewLocalstackSession creates a session to connect to localstack (must be started beforehand)

func NewTestTableName

func NewTestTableName(t *testing.T) string

func SetContent

func SetContent(t *testing.T, db *dynamodb.DynamoDB, table string, entries ...map[string]*dynamodb.AttributeValue)

Types

This section is empty.

Jump to

Keyboard shortcuts

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