eventsmock

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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