mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) Delete

func (_m *Client) Delete(ctx context.Context, message *sqs.Message) error

Delete provides a mock function with given fields: ctx, message

func (*Client) DeleteBatch

func (_m *Client) DeleteBatch(ctx context.Context, messages []*sqs.Message) error

DeleteBatch provides a mock function with given fields: ctx, messages

func (*Client) Receive

func (_m *Client) Receive(ctx context.Context, limit int) ([]*sqs.Message, error)

Receive provides a mock function with given fields: ctx, limit

func (*Client) Retry

func (_m *Client) Retry(ctx context.Context, input xsqs.RetryInput) error

Retry provides a mock function with given fields: ctx, input

func (*Client) RetryBatch

func (_m *Client) RetryBatch(ctx context.Context, input []xsqs.RetryInput) error

RetryBatch provides a mock function with given fields: ctx, input

type Consumer

type Consumer struct {
	mock.Mock
}

Consumer is an autogenerated mock type for the Consumer type

func NewConsumer

func NewConsumer(t mockConstructorTestingTNewConsumer) *Consumer

NewConsumer creates a new instance of Consumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Consumer) Consume

func (_m *Consumer) Consume(ctx context.Context, messages []*sqs.Message) error

Consume provides a mock function with given fields: ctx, messages

type SQSAPI

type SQSAPI struct {
	mock.Mock
}

SQSAPI is an autogenerated mock type for the SQSAPI type

func NewSQSAPI

func NewSQSAPI(t mockConstructorTestingTNewSQSAPI) *SQSAPI

NewSQSAPI creates a new instance of SQSAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*SQSAPI) AddPermission

func (_m *SQSAPI) AddPermission(_a0 *sqs.AddPermissionInput) (*sqs.AddPermissionOutput, error)

AddPermission provides a mock function with given fields: _a0

func (*SQSAPI) AddPermissionRequest

func (_m *SQSAPI) AddPermissionRequest(_a0 *sqs.AddPermissionInput) (*request.Request, *sqs.AddPermissionOutput)

AddPermissionRequest provides a mock function with given fields: _a0

func (*SQSAPI) AddPermissionWithContext

func (_m *SQSAPI) AddPermissionWithContext(_a0 context.Context, _a1 *sqs.AddPermissionInput, _a2 ...request.Option) (*sqs.AddPermissionOutput, error)

AddPermissionWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) ChangeMessageVisibility

func (_m *SQSAPI) ChangeMessageVisibility(_a0 *sqs.ChangeMessageVisibilityInput) (*sqs.ChangeMessageVisibilityOutput, error)

ChangeMessageVisibility provides a mock function with given fields: _a0

func (*SQSAPI) ChangeMessageVisibilityBatch

func (_m *SQSAPI) ChangeMessageVisibilityBatch(_a0 *sqs.ChangeMessageVisibilityBatchInput) (*sqs.ChangeMessageVisibilityBatchOutput, error)

ChangeMessageVisibilityBatch provides a mock function with given fields: _a0

func (*SQSAPI) ChangeMessageVisibilityBatchRequest

func (_m *SQSAPI) ChangeMessageVisibilityBatchRequest(_a0 *sqs.ChangeMessageVisibilityBatchInput) (*request.Request, *sqs.ChangeMessageVisibilityBatchOutput)

ChangeMessageVisibilityBatchRequest provides a mock function with given fields: _a0

func (*SQSAPI) ChangeMessageVisibilityBatchWithContext

func (_m *SQSAPI) ChangeMessageVisibilityBatchWithContext(_a0 context.Context, _a1 *sqs.ChangeMessageVisibilityBatchInput, _a2 ...request.Option) (*sqs.ChangeMessageVisibilityBatchOutput, error)

ChangeMessageVisibilityBatchWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) ChangeMessageVisibilityRequest

func (_m *SQSAPI) ChangeMessageVisibilityRequest(_a0 *sqs.ChangeMessageVisibilityInput) (*request.Request, *sqs.ChangeMessageVisibilityOutput)

ChangeMessageVisibilityRequest provides a mock function with given fields: _a0

func (*SQSAPI) ChangeMessageVisibilityWithContext

func (_m *SQSAPI) ChangeMessageVisibilityWithContext(_a0 context.Context, _a1 *sqs.ChangeMessageVisibilityInput, _a2 ...request.Option) (*sqs.ChangeMessageVisibilityOutput, error)

ChangeMessageVisibilityWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) CreateQueue

func (_m *SQSAPI) CreateQueue(_a0 *sqs.CreateQueueInput) (*sqs.CreateQueueOutput, error)

CreateQueue provides a mock function with given fields: _a0

func (*SQSAPI) CreateQueueRequest

func (_m *SQSAPI) CreateQueueRequest(_a0 *sqs.CreateQueueInput) (*request.Request, *sqs.CreateQueueOutput)

CreateQueueRequest provides a mock function with given fields: _a0

func (*SQSAPI) CreateQueueWithContext

func (_m *SQSAPI) CreateQueueWithContext(_a0 context.Context, _a1 *sqs.CreateQueueInput, _a2 ...request.Option) (*sqs.CreateQueueOutput, error)

CreateQueueWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) DeleteMessage

func (_m *SQSAPI) DeleteMessage(_a0 *sqs.DeleteMessageInput) (*sqs.DeleteMessageOutput, error)

DeleteMessage provides a mock function with given fields: _a0

func (*SQSAPI) DeleteMessageBatch

func (_m *SQSAPI) DeleteMessageBatch(_a0 *sqs.DeleteMessageBatchInput) (*sqs.DeleteMessageBatchOutput, error)

DeleteMessageBatch provides a mock function with given fields: _a0

func (*SQSAPI) DeleteMessageBatchRequest

func (_m *SQSAPI) DeleteMessageBatchRequest(_a0 *sqs.DeleteMessageBatchInput) (*request.Request, *sqs.DeleteMessageBatchOutput)

DeleteMessageBatchRequest provides a mock function with given fields: _a0

func (*SQSAPI) DeleteMessageBatchWithContext

func (_m *SQSAPI) DeleteMessageBatchWithContext(_a0 context.Context, _a1 *sqs.DeleteMessageBatchInput, _a2 ...request.Option) (*sqs.DeleteMessageBatchOutput, error)

DeleteMessageBatchWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) DeleteMessageRequest

func (_m *SQSAPI) DeleteMessageRequest(_a0 *sqs.DeleteMessageInput) (*request.Request, *sqs.DeleteMessageOutput)

DeleteMessageRequest provides a mock function with given fields: _a0

func (*SQSAPI) DeleteMessageWithContext

func (_m *SQSAPI) DeleteMessageWithContext(_a0 context.Context, _a1 *sqs.DeleteMessageInput, _a2 ...request.Option) (*sqs.DeleteMessageOutput, error)

DeleteMessageWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) DeleteQueue

func (_m *SQSAPI) DeleteQueue(_a0 *sqs.DeleteQueueInput) (*sqs.DeleteQueueOutput, error)

DeleteQueue provides a mock function with given fields: _a0

func (*SQSAPI) DeleteQueueRequest

func (_m *SQSAPI) DeleteQueueRequest(_a0 *sqs.DeleteQueueInput) (*request.Request, *sqs.DeleteQueueOutput)

DeleteQueueRequest provides a mock function with given fields: _a0

func (*SQSAPI) DeleteQueueWithContext

func (_m *SQSAPI) DeleteQueueWithContext(_a0 context.Context, _a1 *sqs.DeleteQueueInput, _a2 ...request.Option) (*sqs.DeleteQueueOutput, error)

DeleteQueueWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) GetQueueAttributes

func (_m *SQSAPI) GetQueueAttributes(_a0 *sqs.GetQueueAttributesInput) (*sqs.GetQueueAttributesOutput, error)

GetQueueAttributes provides a mock function with given fields: _a0

func (*SQSAPI) GetQueueAttributesRequest

func (_m *SQSAPI) GetQueueAttributesRequest(_a0 *sqs.GetQueueAttributesInput) (*request.Request, *sqs.GetQueueAttributesOutput)

GetQueueAttributesRequest provides a mock function with given fields: _a0

func (*SQSAPI) GetQueueAttributesWithContext

func (_m *SQSAPI) GetQueueAttributesWithContext(_a0 context.Context, _a1 *sqs.GetQueueAttributesInput, _a2 ...request.Option) (*sqs.GetQueueAttributesOutput, error)

GetQueueAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) GetQueueUrl

func (_m *SQSAPI) GetQueueUrl(_a0 *sqs.GetQueueUrlInput) (*sqs.GetQueueUrlOutput, error)

GetQueueUrl provides a mock function with given fields: _a0

func (*SQSAPI) GetQueueUrlRequest

func (_m *SQSAPI) GetQueueUrlRequest(_a0 *sqs.GetQueueUrlInput) (*request.Request, *sqs.GetQueueUrlOutput)

GetQueueUrlRequest provides a mock function with given fields: _a0

func (*SQSAPI) GetQueueUrlWithContext

func (_m *SQSAPI) GetQueueUrlWithContext(_a0 context.Context, _a1 *sqs.GetQueueUrlInput, _a2 ...request.Option) (*sqs.GetQueueUrlOutput, error)

GetQueueUrlWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) ListDeadLetterSourceQueues

func (_m *SQSAPI) ListDeadLetterSourceQueues(_a0 *sqs.ListDeadLetterSourceQueuesInput) (*sqs.ListDeadLetterSourceQueuesOutput, error)

ListDeadLetterSourceQueues provides a mock function with given fields: _a0

func (*SQSAPI) ListDeadLetterSourceQueuesPages

func (_m *SQSAPI) ListDeadLetterSourceQueuesPages(_a0 *sqs.ListDeadLetterSourceQueuesInput, _a1 func(*sqs.ListDeadLetterSourceQueuesOutput, bool) bool) error

ListDeadLetterSourceQueuesPages provides a mock function with given fields: _a0, _a1

func (*SQSAPI) ListDeadLetterSourceQueuesPagesWithContext

func (_m *SQSAPI) ListDeadLetterSourceQueuesPagesWithContext(_a0 context.Context, _a1 *sqs.ListDeadLetterSourceQueuesInput, _a2 func(*sqs.ListDeadLetterSourceQueuesOutput, bool) bool, _a3 ...request.Option) error

ListDeadLetterSourceQueuesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*SQSAPI) ListDeadLetterSourceQueuesRequest

func (_m *SQSAPI) ListDeadLetterSourceQueuesRequest(_a0 *sqs.ListDeadLetterSourceQueuesInput) (*request.Request, *sqs.ListDeadLetterSourceQueuesOutput)

ListDeadLetterSourceQueuesRequest provides a mock function with given fields: _a0

func (*SQSAPI) ListDeadLetterSourceQueuesWithContext

func (_m *SQSAPI) ListDeadLetterSourceQueuesWithContext(_a0 context.Context, _a1 *sqs.ListDeadLetterSourceQueuesInput, _a2 ...request.Option) (*sqs.ListDeadLetterSourceQueuesOutput, error)

ListDeadLetterSourceQueuesWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) ListQueueTags

func (_m *SQSAPI) ListQueueTags(_a0 *sqs.ListQueueTagsInput) (*sqs.ListQueueTagsOutput, error)

ListQueueTags provides a mock function with given fields: _a0

func (*SQSAPI) ListQueueTagsRequest

func (_m *SQSAPI) ListQueueTagsRequest(_a0 *sqs.ListQueueTagsInput) (*request.Request, *sqs.ListQueueTagsOutput)

ListQueueTagsRequest provides a mock function with given fields: _a0

func (*SQSAPI) ListQueueTagsWithContext

func (_m *SQSAPI) ListQueueTagsWithContext(_a0 context.Context, _a1 *sqs.ListQueueTagsInput, _a2 ...request.Option) (*sqs.ListQueueTagsOutput, error)

ListQueueTagsWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) ListQueues

func (_m *SQSAPI) ListQueues(_a0 *sqs.ListQueuesInput) (*sqs.ListQueuesOutput, error)

ListQueues provides a mock function with given fields: _a0

func (*SQSAPI) ListQueuesPages

func (_m *SQSAPI) ListQueuesPages(_a0 *sqs.ListQueuesInput, _a1 func(*sqs.ListQueuesOutput, bool) bool) error

ListQueuesPages provides a mock function with given fields: _a0, _a1

func (*SQSAPI) ListQueuesPagesWithContext

func (_m *SQSAPI) ListQueuesPagesWithContext(_a0 context.Context, _a1 *sqs.ListQueuesInput, _a2 func(*sqs.ListQueuesOutput, bool) bool, _a3 ...request.Option) error

ListQueuesPagesWithContext provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*SQSAPI) ListQueuesRequest

func (_m *SQSAPI) ListQueuesRequest(_a0 *sqs.ListQueuesInput) (*request.Request, *sqs.ListQueuesOutput)

ListQueuesRequest provides a mock function with given fields: _a0

func (*SQSAPI) ListQueuesWithContext

func (_m *SQSAPI) ListQueuesWithContext(_a0 context.Context, _a1 *sqs.ListQueuesInput, _a2 ...request.Option) (*sqs.ListQueuesOutput, error)

ListQueuesWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) PurgeQueue

func (_m *SQSAPI) PurgeQueue(_a0 *sqs.PurgeQueueInput) (*sqs.PurgeQueueOutput, error)

PurgeQueue provides a mock function with given fields: _a0

func (*SQSAPI) PurgeQueueRequest

func (_m *SQSAPI) PurgeQueueRequest(_a0 *sqs.PurgeQueueInput) (*request.Request, *sqs.PurgeQueueOutput)

PurgeQueueRequest provides a mock function with given fields: _a0

func (*SQSAPI) PurgeQueueWithContext

func (_m *SQSAPI) PurgeQueueWithContext(_a0 context.Context, _a1 *sqs.PurgeQueueInput, _a2 ...request.Option) (*sqs.PurgeQueueOutput, error)

PurgeQueueWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) ReceiveMessage

func (_m *SQSAPI) ReceiveMessage(_a0 *sqs.ReceiveMessageInput) (*sqs.ReceiveMessageOutput, error)

ReceiveMessage provides a mock function with given fields: _a0

func (*SQSAPI) ReceiveMessageRequest

func (_m *SQSAPI) ReceiveMessageRequest(_a0 *sqs.ReceiveMessageInput) (*request.Request, *sqs.ReceiveMessageOutput)

ReceiveMessageRequest provides a mock function with given fields: _a0

func (*SQSAPI) ReceiveMessageWithContext

func (_m *SQSAPI) ReceiveMessageWithContext(_a0 context.Context, _a1 *sqs.ReceiveMessageInput, _a2 ...request.Option) (*sqs.ReceiveMessageOutput, error)

ReceiveMessageWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) RemovePermission

func (_m *SQSAPI) RemovePermission(_a0 *sqs.RemovePermissionInput) (*sqs.RemovePermissionOutput, error)

RemovePermission provides a mock function with given fields: _a0

func (*SQSAPI) RemovePermissionRequest

func (_m *SQSAPI) RemovePermissionRequest(_a0 *sqs.RemovePermissionInput) (*request.Request, *sqs.RemovePermissionOutput)

RemovePermissionRequest provides a mock function with given fields: _a0

func (*SQSAPI) RemovePermissionWithContext

func (_m *SQSAPI) RemovePermissionWithContext(_a0 context.Context, _a1 *sqs.RemovePermissionInput, _a2 ...request.Option) (*sqs.RemovePermissionOutput, error)

RemovePermissionWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) SendMessage

func (_m *SQSAPI) SendMessage(_a0 *sqs.SendMessageInput) (*sqs.SendMessageOutput, error)

SendMessage provides a mock function with given fields: _a0

func (*SQSAPI) SendMessageBatch

func (_m *SQSAPI) SendMessageBatch(_a0 *sqs.SendMessageBatchInput) (*sqs.SendMessageBatchOutput, error)

SendMessageBatch provides a mock function with given fields: _a0

func (*SQSAPI) SendMessageBatchRequest

func (_m *SQSAPI) SendMessageBatchRequest(_a0 *sqs.SendMessageBatchInput) (*request.Request, *sqs.SendMessageBatchOutput)

SendMessageBatchRequest provides a mock function with given fields: _a0

func (*SQSAPI) SendMessageBatchWithContext

func (_m *SQSAPI) SendMessageBatchWithContext(_a0 context.Context, _a1 *sqs.SendMessageBatchInput, _a2 ...request.Option) (*sqs.SendMessageBatchOutput, error)

SendMessageBatchWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) SendMessageRequest

func (_m *SQSAPI) SendMessageRequest(_a0 *sqs.SendMessageInput) (*request.Request, *sqs.SendMessageOutput)

SendMessageRequest provides a mock function with given fields: _a0

func (*SQSAPI) SendMessageWithContext

func (_m *SQSAPI) SendMessageWithContext(_a0 context.Context, _a1 *sqs.SendMessageInput, _a2 ...request.Option) (*sqs.SendMessageOutput, error)

SendMessageWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) SetQueueAttributes

func (_m *SQSAPI) SetQueueAttributes(_a0 *sqs.SetQueueAttributesInput) (*sqs.SetQueueAttributesOutput, error)

SetQueueAttributes provides a mock function with given fields: _a0

func (*SQSAPI) SetQueueAttributesRequest

func (_m *SQSAPI) SetQueueAttributesRequest(_a0 *sqs.SetQueueAttributesInput) (*request.Request, *sqs.SetQueueAttributesOutput)

SetQueueAttributesRequest provides a mock function with given fields: _a0

func (*SQSAPI) SetQueueAttributesWithContext

func (_m *SQSAPI) SetQueueAttributesWithContext(_a0 context.Context, _a1 *sqs.SetQueueAttributesInput, _a2 ...request.Option) (*sqs.SetQueueAttributesOutput, error)

SetQueueAttributesWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) TagQueue

func (_m *SQSAPI) TagQueue(_a0 *sqs.TagQueueInput) (*sqs.TagQueueOutput, error)

TagQueue provides a mock function with given fields: _a0

func (*SQSAPI) TagQueueRequest

func (_m *SQSAPI) TagQueueRequest(_a0 *sqs.TagQueueInput) (*request.Request, *sqs.TagQueueOutput)

TagQueueRequest provides a mock function with given fields: _a0

func (*SQSAPI) TagQueueWithContext

func (_m *SQSAPI) TagQueueWithContext(_a0 context.Context, _a1 *sqs.TagQueueInput, _a2 ...request.Option) (*sqs.TagQueueOutput, error)

TagQueueWithContext provides a mock function with given fields: _a0, _a1, _a2

func (*SQSAPI) UntagQueue

func (_m *SQSAPI) UntagQueue(_a0 *sqs.UntagQueueInput) (*sqs.UntagQueueOutput, error)

UntagQueue provides a mock function with given fields: _a0

func (*SQSAPI) UntagQueueRequest

func (_m *SQSAPI) UntagQueueRequest(_a0 *sqs.UntagQueueInput) (*request.Request, *sqs.UntagQueueOutput)

UntagQueueRequest provides a mock function with given fields: _a0

func (*SQSAPI) UntagQueueWithContext

func (_m *SQSAPI) UntagQueueWithContext(_a0 context.Context, _a1 *sqs.UntagQueueInput, _a2 ...request.Option) (*sqs.UntagQueueOutput, error)

UntagQueueWithContext provides a mock function with given fields: _a0, _a1, _a2

Jump to

Keyboard shortcuts

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