localstack

package
v0.0.0-...-658789a Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostName

func HostName() string

func NewLambda

func NewLambda(functionName string, pythonCode string) (err error)

NewLambda creates a new lambda with the given Python code and deploys to localstack.

func NewTables

func NewTables(definitions []TableDefinition) (err error)

NewTables creates a new DynamoDB table.

func StartContainer

func StartContainer(buildTestingInfrastructure func() error) (err error)

StartContainer starts a localstack container for testing purposes and builds out needed infrastructure.

func StopContainer

func StopContainer() (err error)

StopContainer stops the localstack container used for testing.

Types

type TableDefinition

type TableDefinition struct {
	Name  string      `json:"name"`
	Hash  TableField  `json:"hash"`
	Range *TableField `json:"range"`
	TTL   *string     `json:"ttl"`
}

type TableField

type TableField struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

Jump to

Keyboard shortcuts

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