awsifaces

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0

README

awsifaces

A go module containing generated interfaces and mocks for services in aws-sdk-go-v2.

Installation
go get github.com/jbreindel/awsifaces

While go will eliminate any unused code, you can simply copy any of these interfaces into your project if you don't want additional dependencies.

Usage
func NewSqs(cfg aws.Config) SqsClient {
	return sqs.NewFromConfig(cfg)
}
mockSqsClient := new(mocks.SqsClient)
mockSqsClient.On("SendMessage", mock.Anything, mock.Anything, mock.Anything).Return(&sqs.SendMessageOutput{
  ...
}, nil).Once()

for additional usage options see mockery.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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