testing

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LambdaStub

type LambdaStub struct {
	Request  aws.LambdaRequest  `json:"requests"`
	Response aws.LambdaResponse `json:"response"`
}

type LambdaStubs

type LambdaStubs map[string][]LambdaStub

func DefaultLambdaStubs

func DefaultLambdaStubs() LambdaStubs

func NewLambdaStubs

func NewLambdaStubs(yamlData []byte) LambdaStubs

func (LambdaStubs) CanInvoke

func (l LambdaStubs) CanInvoke(_ context.Context, arn arn.ARN) error

func (LambdaStubs) Invoke

func (l LambdaStubs) Invoke(_ context.Context, arn arn.ARN, request *aws.LambdaRequest) (*aws.LambdaResponse, error)

Jump to

Keyboard shortcuts

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