aws

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig(port int, region string) *aws.Config

Types

type Container

type Container struct {
	SqsService *SqsService
	// contains filtered or unexported fields
}

Container metadata to load a container for aws environment

func NewContainer

func NewContainer(p Params) *Container

NewContainer creates a new instance of Container

func (*Container) AfterStart

func (c *Container) AfterStart(ctx context.Context, r *dockertest.Resource) error

AfterStart will wait until the container is ready to be consumed

func (*Container) Options

func (c *Container) Options() (*dockertest.RunOptions, error)

Options to start a localstack container accordingly to the params

type Params

type Params struct {
	Region    string
	Port      int
	SqsQueues []SqsQueue
}

Params needed to start a aws container

type SqsQueue

type SqsQueue struct {
	Name string
}

type SqsService

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

func (SqsService) Receive

func (s SqsService) Receive(qn string) ([]*sqs.Message, error)

func (SqsService) Send

func (s SqsService) Send(qn string, m *sqs.Message) error

Jump to

Keyboard shortcuts

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