Documentation
¶
Index ¶
- func CreateEventsServiceMock(options ...EventsServiceMockOption) *eventsServiceMock
- func CreateEventsServiceMockFactory(options ...EventsServiceMockOption) ...
- type EventsServiceMockOption
- func WithCreateApiDestinationError(err error) EventsServiceMockOption
- func WithCreateApiDestinationOutput(output *eventbridge.CreateApiDestinationOutput) EventsServiceMockOption
- func WithCreateArchiveError(err error) EventsServiceMockOption
- func WithCreateArchiveOutput(output *eventbridge.CreateArchiveOutput) EventsServiceMockOption
- func WithCreateConnectionError(err error) EventsServiceMockOption
- func WithCreateConnectionOutput(output *eventbridge.CreateConnectionOutput) EventsServiceMockOption
- func WithCreateEventBusError(err error) EventsServiceMockOption
- func WithCreateEventBusOutput(output *eventbridge.CreateEventBusOutput) EventsServiceMockOption
- func WithDeleteApiDestinationError(err error) EventsServiceMockOption
- func WithDeleteApiDestinationOutput(output *eventbridge.DeleteApiDestinationOutput) EventsServiceMockOption
- func WithDeleteArchiveError(err error) EventsServiceMockOption
- func WithDeleteArchiveOutput(output *eventbridge.DeleteArchiveOutput) EventsServiceMockOption
- func WithDeleteConnectionError(err error) EventsServiceMockOption
- func WithDeleteConnectionOutput(output *eventbridge.DeleteConnectionOutput) EventsServiceMockOption
- func WithDeleteEventBusError(err error) EventsServiceMockOption
- func WithDeleteEventBusOutput(output *eventbridge.DeleteEventBusOutput) EventsServiceMockOption
- func WithDeleteRuleError(err error) EventsServiceMockOption
- func WithDeleteRuleOutput(output *eventbridge.DeleteRuleOutput) EventsServiceMockOption
- func WithDescribeApiDestinationError(err error) EventsServiceMockOption
- func WithDescribeApiDestinationOutput(output *eventbridge.DescribeApiDestinationOutput) EventsServiceMockOption
- func WithDescribeArchiveError(err error) EventsServiceMockOption
- func WithDescribeArchiveOutput(output *eventbridge.DescribeArchiveOutput) EventsServiceMockOption
- func WithDescribeConnectionError(err error) EventsServiceMockOption
- func WithDescribeConnectionOutput(output *eventbridge.DescribeConnectionOutput) EventsServiceMockOption
- func WithDescribeEventBusError(err error) EventsServiceMockOption
- func WithDescribeEventBusOutput(output *eventbridge.DescribeEventBusOutput) EventsServiceMockOption
- func WithDescribeRuleError(err error) EventsServiceMockOption
- func WithDescribeRuleOutput(output *eventbridge.DescribeRuleOutput) EventsServiceMockOption
- func WithListRulesError(err error) EventsServiceMockOption
- func WithListRulesOutput(output *eventbridge.ListRulesOutput) EventsServiceMockOption
- func WithListTagsForResourceError(err error) EventsServiceMockOption
- func WithListTagsForResourceOutput(output *eventbridge.ListTagsForResourceOutput) EventsServiceMockOption
- func WithListTargetsByRuleError(err error) EventsServiceMockOption
- func WithListTargetsByRuleOutput(output *eventbridge.ListTargetsByRuleOutput) EventsServiceMockOption
- func WithPutPermissionError(err error) EventsServiceMockOption
- func WithPutPermissionOutput(output *eventbridge.PutPermissionOutput) EventsServiceMockOption
- func WithPutRuleError(err error) EventsServiceMockOption
- func WithPutRuleOutput(output *eventbridge.PutRuleOutput) EventsServiceMockOption
- func WithPutTargetsError(err error) EventsServiceMockOption
- func WithPutTargetsOutput(output *eventbridge.PutTargetsOutput) EventsServiceMockOption
- func WithRemovePermissionError(err error) EventsServiceMockOption
- func WithRemovePermissionOutput(output *eventbridge.RemovePermissionOutput) EventsServiceMockOption
- func WithRemoveTargetsError(err error) EventsServiceMockOption
- func WithRemoveTargetsOutput(output *eventbridge.RemoveTargetsOutput) EventsServiceMockOption
- func WithTagResourceError(err error) EventsServiceMockOption
- func WithTagResourceOutput(output *eventbridge.TagResourceOutput) EventsServiceMockOption
- func WithUntagResourceError(err error) EventsServiceMockOption
- func WithUntagResourceOutput(output *eventbridge.UntagResourceOutput) EventsServiceMockOption
- func WithUpdateApiDestinationError(err error) EventsServiceMockOption
- func WithUpdateApiDestinationOutput(output *eventbridge.UpdateApiDestinationOutput) EventsServiceMockOption
- func WithUpdateArchiveError(err error) EventsServiceMockOption
- func WithUpdateArchiveOutput(output *eventbridge.UpdateArchiveOutput) EventsServiceMockOption
- func WithUpdateConnectionError(err error) EventsServiceMockOption
- func WithUpdateConnectionOutput(output *eventbridge.UpdateConnectionOutput) EventsServiceMockOption
- func WithUpdateEventBusError(err error) EventsServiceMockOption
- func WithUpdateEventBusOutput(output *eventbridge.UpdateEventBusOutput) EventsServiceMockOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEventsServiceMock ¶
func CreateEventsServiceMock(options ...EventsServiceMockOption) *eventsServiceMock
CreateEventsServiceMock creates a new instance of the EventBridge service mock with the provided options.
func CreateEventsServiceMockFactory ¶
func CreateEventsServiceMockFactory( options ...EventsServiceMockOption, ) func(awsConfig *aws.Config, providerContext provider.Context) eventsservice.Service
CreateEventsServiceMockFactory creates a factory function that returns the mock service. This is used for dependency injection in tests.
Types ¶
type EventsServiceMockOption ¶
type EventsServiceMockOption func(*eventsServiceMock)
EventsServiceMockOption is a function type for configuring the EventBridge service mock.
func WithCreateApiDestinationError ¶
func WithCreateApiDestinationError(err error) EventsServiceMockOption
WithCreateApiDestinationError sets the mock error for CreateApiDestination.
func WithCreateApiDestinationOutput ¶
func WithCreateApiDestinationOutput(output *eventbridge.CreateApiDestinationOutput) EventsServiceMockOption
WithCreateApiDestinationOutput sets the mock output for CreateApiDestination.
func WithCreateArchiveError ¶
func WithCreateArchiveError(err error) EventsServiceMockOption
WithCreateArchiveError sets the mock error for CreateArchive.
func WithCreateArchiveOutput ¶
func WithCreateArchiveOutput(output *eventbridge.CreateArchiveOutput) EventsServiceMockOption
WithCreateArchiveOutput sets the mock output for CreateArchive.
func WithCreateConnectionError ¶
func WithCreateConnectionError(err error) EventsServiceMockOption
WithCreateConnectionError sets the mock error for CreateConnection.
func WithCreateConnectionOutput ¶
func WithCreateConnectionOutput(output *eventbridge.CreateConnectionOutput) EventsServiceMockOption
WithCreateConnectionOutput sets the mock output for CreateConnection.
func WithCreateEventBusError ¶
func WithCreateEventBusError(err error) EventsServiceMockOption
WithCreateEventBusError sets the mock error for CreateEventBus.
func WithCreateEventBusOutput ¶
func WithCreateEventBusOutput(output *eventbridge.CreateEventBusOutput) EventsServiceMockOption
WithCreateEventBusOutput sets the mock output for CreateEventBus.
func WithDeleteApiDestinationError ¶
func WithDeleteApiDestinationError(err error) EventsServiceMockOption
WithDeleteApiDestinationError sets the mock error for DeleteApiDestination.
func WithDeleteApiDestinationOutput ¶
func WithDeleteApiDestinationOutput(output *eventbridge.DeleteApiDestinationOutput) EventsServiceMockOption
WithDeleteApiDestinationOutput sets the mock output for DeleteApiDestination.
func WithDeleteArchiveError ¶
func WithDeleteArchiveError(err error) EventsServiceMockOption
WithDeleteArchiveError sets the mock error for DeleteArchive.
func WithDeleteArchiveOutput ¶
func WithDeleteArchiveOutput(output *eventbridge.DeleteArchiveOutput) EventsServiceMockOption
WithDeleteArchiveOutput sets the mock output for DeleteArchive.
func WithDeleteConnectionError ¶
func WithDeleteConnectionError(err error) EventsServiceMockOption
WithDeleteConnectionError sets the mock error for DeleteConnection.
func WithDeleteConnectionOutput ¶
func WithDeleteConnectionOutput(output *eventbridge.DeleteConnectionOutput) EventsServiceMockOption
WithDeleteConnectionOutput sets the mock output for DeleteConnection.
func WithDeleteEventBusError ¶
func WithDeleteEventBusError(err error) EventsServiceMockOption
WithDeleteEventBusError sets the mock error for DeleteEventBus.
func WithDeleteEventBusOutput ¶
func WithDeleteEventBusOutput(output *eventbridge.DeleteEventBusOutput) EventsServiceMockOption
WithDeleteEventBusOutput sets the mock output for DeleteEventBus.
func WithDeleteRuleError ¶
func WithDeleteRuleError(err error) EventsServiceMockOption
WithDeleteRuleError sets the mock error for DeleteRule.
func WithDeleteRuleOutput ¶
func WithDeleteRuleOutput(output *eventbridge.DeleteRuleOutput) EventsServiceMockOption
WithDeleteRuleOutput sets the mock output for DeleteRule.
func WithDescribeApiDestinationError ¶
func WithDescribeApiDestinationError(err error) EventsServiceMockOption
WithDescribeApiDestinationError sets the mock error for DescribeApiDestination.
func WithDescribeApiDestinationOutput ¶
func WithDescribeApiDestinationOutput(output *eventbridge.DescribeApiDestinationOutput) EventsServiceMockOption
WithDescribeApiDestinationOutput sets the mock output for DescribeApiDestination.
func WithDescribeArchiveError ¶
func WithDescribeArchiveError(err error) EventsServiceMockOption
WithDescribeArchiveError sets the mock error for DescribeArchive.
func WithDescribeArchiveOutput ¶
func WithDescribeArchiveOutput(output *eventbridge.DescribeArchiveOutput) EventsServiceMockOption
WithDescribeArchiveOutput sets the mock output for DescribeArchive.
func WithDescribeConnectionError ¶
func WithDescribeConnectionError(err error) EventsServiceMockOption
WithDescribeConnectionError sets the mock error for DescribeConnection.
func WithDescribeConnectionOutput ¶
func WithDescribeConnectionOutput(output *eventbridge.DescribeConnectionOutput) EventsServiceMockOption
WithDescribeConnectionOutput sets the mock output for DescribeConnection.
func WithDescribeEventBusError ¶
func WithDescribeEventBusError(err error) EventsServiceMockOption
WithDescribeEventBusError sets the mock error for DescribeEventBus.
func WithDescribeEventBusOutput ¶
func WithDescribeEventBusOutput(output *eventbridge.DescribeEventBusOutput) EventsServiceMockOption
WithDescribeEventBusOutput sets the mock output for DescribeEventBus.
func WithDescribeRuleError ¶
func WithDescribeRuleError(err error) EventsServiceMockOption
WithDescribeRuleError sets the mock error for DescribeRule.
func WithDescribeRuleOutput ¶
func WithDescribeRuleOutput(output *eventbridge.DescribeRuleOutput) EventsServiceMockOption
WithDescribeRuleOutput sets the mock output for DescribeRule.
func WithListRulesError ¶
func WithListRulesError(err error) EventsServiceMockOption
WithListRulesError sets the mock error for ListRules.
func WithListRulesOutput ¶
func WithListRulesOutput(output *eventbridge.ListRulesOutput) EventsServiceMockOption
WithListRulesOutput sets the mock output for ListRules.
func WithListTagsForResourceError ¶
func WithListTagsForResourceError(err error) EventsServiceMockOption
WithListTagsForResourceError sets the mock error for ListTagsForResource.
func WithListTagsForResourceOutput ¶
func WithListTagsForResourceOutput(output *eventbridge.ListTagsForResourceOutput) EventsServiceMockOption
WithListTagsForResourceOutput sets the mock output for ListTagsForResource.
func WithListTargetsByRuleError ¶
func WithListTargetsByRuleError(err error) EventsServiceMockOption
WithListTargetsByRuleError sets the mock error for ListTargetsByRule.
func WithListTargetsByRuleOutput ¶
func WithListTargetsByRuleOutput(output *eventbridge.ListTargetsByRuleOutput) EventsServiceMockOption
WithListTargetsByRuleOutput sets the mock output for ListTargetsByRule.
func WithPutPermissionError ¶
func WithPutPermissionError(err error) EventsServiceMockOption
WithPutPermissionError sets the mock error for PutPermission.
func WithPutPermissionOutput ¶
func WithPutPermissionOutput(output *eventbridge.PutPermissionOutput) EventsServiceMockOption
WithPutPermissionOutput sets the mock output for PutPermission.
func WithPutRuleError ¶
func WithPutRuleError(err error) EventsServiceMockOption
WithPutRuleError sets the mock error for PutRule.
func WithPutRuleOutput ¶
func WithPutRuleOutput(output *eventbridge.PutRuleOutput) EventsServiceMockOption
WithPutRuleOutput sets the mock output for PutRule.
func WithPutTargetsError ¶
func WithPutTargetsError(err error) EventsServiceMockOption
WithPutTargetsError sets the mock error for PutTargets.
func WithPutTargetsOutput ¶
func WithPutTargetsOutput(output *eventbridge.PutTargetsOutput) EventsServiceMockOption
WithPutTargetsOutput sets the mock output for PutTargets.
func WithRemovePermissionError ¶
func WithRemovePermissionError(err error) EventsServiceMockOption
WithRemovePermissionError sets the mock error for RemovePermission.
func WithRemovePermissionOutput ¶
func WithRemovePermissionOutput(output *eventbridge.RemovePermissionOutput) EventsServiceMockOption
WithRemovePermissionOutput sets the mock output for RemovePermission.
func WithRemoveTargetsError ¶
func WithRemoveTargetsError(err error) EventsServiceMockOption
WithRemoveTargetsError sets the mock error for RemoveTargets.
func WithRemoveTargetsOutput ¶
func WithRemoveTargetsOutput(output *eventbridge.RemoveTargetsOutput) EventsServiceMockOption
WithRemoveTargetsOutput sets the mock output for RemoveTargets.
func WithTagResourceError ¶
func WithTagResourceError(err error) EventsServiceMockOption
WithTagResourceError sets the mock error for TagResource.
func WithTagResourceOutput ¶
func WithTagResourceOutput(output *eventbridge.TagResourceOutput) EventsServiceMockOption
WithTagResourceOutput sets the mock output for TagResource.
func WithUntagResourceError ¶
func WithUntagResourceError(err error) EventsServiceMockOption
WithUntagResourceError sets the mock error for UntagResource.
func WithUntagResourceOutput ¶
func WithUntagResourceOutput(output *eventbridge.UntagResourceOutput) EventsServiceMockOption
WithUntagResourceOutput sets the mock output for UntagResource.
func WithUpdateApiDestinationError ¶
func WithUpdateApiDestinationError(err error) EventsServiceMockOption
WithUpdateApiDestinationError sets the mock error for UpdateApiDestination.
func WithUpdateApiDestinationOutput ¶
func WithUpdateApiDestinationOutput(output *eventbridge.UpdateApiDestinationOutput) EventsServiceMockOption
WithUpdateApiDestinationOutput sets the mock output for UpdateApiDestination.
func WithUpdateArchiveError ¶
func WithUpdateArchiveError(err error) EventsServiceMockOption
WithUpdateArchiveError sets the mock error for UpdateArchive.
func WithUpdateArchiveOutput ¶
func WithUpdateArchiveOutput(output *eventbridge.UpdateArchiveOutput) EventsServiceMockOption
WithUpdateArchiveOutput sets the mock output for UpdateArchive.
func WithUpdateConnectionError ¶
func WithUpdateConnectionError(err error) EventsServiceMockOption
WithUpdateConnectionError sets the mock error for UpdateConnection.
func WithUpdateConnectionOutput ¶
func WithUpdateConnectionOutput(output *eventbridge.UpdateConnectionOutput) EventsServiceMockOption
WithUpdateConnectionOutput sets the mock output for UpdateConnection.
func WithUpdateEventBusError ¶
func WithUpdateEventBusError(err error) EventsServiceMockOption
WithUpdateEventBusError sets the mock error for UpdateEventBus.
func WithUpdateEventBusOutput ¶
func WithUpdateEventBusOutput(output *eventbridge.UpdateEventBusOutput) EventsServiceMockOption
WithUpdateEventBusOutput sets the mock output for UpdateEventBus.