dynamodbmock

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDynamoDBServiceMock

func CreateDynamoDBServiceMock(options ...DynamoDBServiceMockOption) *dynamodbServiceMock

CreateDynamoDBServiceMock creates a new instance of the DynamoDB service mock with the provided options.

func CreateDynamoDBServiceMockFactory

func CreateDynamoDBServiceMockFactory(
	options ...DynamoDBServiceMockOption,
) func(awsConfig *aws.Config, providerContext provider.Context) dynamodbservice.Service

CreateDynamoDBServiceMockFactory creates a factory function that returns the mock service. This is used for dependency injection in tests.

Types

type DynamoDBServiceMockOption

type DynamoDBServiceMockOption func(*dynamodbServiceMock)

DynamoDBServiceMockOption is a function type for configuring the DynamoDB service mock.

func WithCreateTableError

func WithCreateTableError(err error) DynamoDBServiceMockOption

WithCreateTableError sets the mock error for CreateTable.

func WithCreateTableOutput

func WithCreateTableOutput(output *dynamodb.CreateTableOutput) DynamoDBServiceMockOption

WithCreateTableOutput sets the mock output for CreateTable.

func WithDeleteTableError

func WithDeleteTableError(err error) DynamoDBServiceMockOption

WithDeleteTableError sets the mock error for DeleteTable.

func WithDeleteTableOutput

func WithDeleteTableOutput(output *dynamodb.DeleteTableOutput) DynamoDBServiceMockOption

WithDeleteTableOutput sets the mock output for DeleteTable.

func WithDescribeContinuousBackupsError

func WithDescribeContinuousBackupsError(err error) DynamoDBServiceMockOption

WithDescribeContinuousBackupsError sets the mock error for DescribeContinuousBackups.

func WithDescribeContinuousBackupsOutput

func WithDescribeContinuousBackupsOutput(output *dynamodb.DescribeContinuousBackupsOutput) DynamoDBServiceMockOption

WithDescribeContinuousBackupsOutput sets the mock output for DescribeContinuousBackups.

func WithDescribeTableError

func WithDescribeTableError(err error) DynamoDBServiceMockOption

WithDescribeTableError sets the mock error for DescribeTable.

func WithDescribeTableOutput

func WithDescribeTableOutput(output *dynamodb.DescribeTableOutput) DynamoDBServiceMockOption

WithDescribeTableOutput sets the mock output for DescribeTable.

func WithDescribeTableReplicaAutoScalingError added in v0.2.0

func WithDescribeTableReplicaAutoScalingError(err error) DynamoDBServiceMockOption

WithDescribeTableReplicaAutoScalingError sets the mock error for DescribeTableReplicaAutoScaling.

func WithDescribeTableReplicaAutoScalingOutput added in v0.2.0

func WithDescribeTableReplicaAutoScalingOutput(
	output *dynamodb.DescribeTableReplicaAutoScalingOutput,
) DynamoDBServiceMockOption

WithDescribeTableReplicaAutoScalingOutput sets the mock output for DescribeTableReplicaAutoScaling.

func WithDescribeTimeToLiveError

func WithDescribeTimeToLiveError(err error) DynamoDBServiceMockOption

WithDescribeTimeToLiveError sets the mock error for DescribeTimeToLive.

func WithDescribeTimeToLiveOutput

func WithDescribeTimeToLiveOutput(output *dynamodb.DescribeTimeToLiveOutput) DynamoDBServiceMockOption

WithDescribeTimeToLiveOutput sets the mock output for DescribeTimeToLive.

func WithListTagsOfResourceError

func WithListTagsOfResourceError(err error) DynamoDBServiceMockOption

WithListTagsOfResourceError sets the mock error for ListTagsOfResource.

func WithListTagsOfResourceOutput

func WithListTagsOfResourceOutput(output *dynamodb.ListTagsOfResourceOutput) DynamoDBServiceMockOption

WithListTagsOfResourceOutput sets the mock output for ListTagsOfResource.

func WithTagResourceError

func WithTagResourceError(err error) DynamoDBServiceMockOption

WithTagResourceError sets the mock error for TagResource.

func WithTagResourceOutput

func WithTagResourceOutput(output *dynamodb.TagResourceOutput) DynamoDBServiceMockOption

WithTagResourceOutput sets the mock output for TagResource.

func WithUntagResourceError

func WithUntagResourceError(err error) DynamoDBServiceMockOption

WithUntagResourceError sets the mock error for UntagResource.

func WithUntagResourceOutput

func WithUntagResourceOutput(output *dynamodb.UntagResourceOutput) DynamoDBServiceMockOption

WithUntagResourceOutput sets the mock output for UntagResource.

func WithUpdateContinuousBackupsError

func WithUpdateContinuousBackupsError(err error) DynamoDBServiceMockOption

WithUpdateContinuousBackupsError sets the mock error for UpdateContinuousBackups.

func WithUpdateContinuousBackupsOutput

func WithUpdateContinuousBackupsOutput(output *dynamodb.UpdateContinuousBackupsOutput) DynamoDBServiceMockOption

WithUpdateContinuousBackupsOutput sets the mock output for UpdateContinuousBackups.

func WithUpdateTableError

func WithUpdateTableError(err error) DynamoDBServiceMockOption

WithUpdateTableError sets the mock error for UpdateTable.

func WithUpdateTableOutput

func WithUpdateTableOutput(output *dynamodb.UpdateTableOutput) DynamoDBServiceMockOption

WithUpdateTableOutput sets the mock output for UpdateTable.

func WithUpdateTableReplicaAutoScalingError added in v0.2.0

func WithUpdateTableReplicaAutoScalingError(err error) DynamoDBServiceMockOption

WithUpdateTableReplicaAutoScalingError sets the mock error for UpdateTableReplicaAutoScaling.

func WithUpdateTableReplicaAutoScalingOutput added in v0.2.0

func WithUpdateTableReplicaAutoScalingOutput(
	output *dynamodb.UpdateTableReplicaAutoScalingOutput,
) DynamoDBServiceMockOption

WithUpdateTableReplicaAutoScalingOutput sets the mock output for UpdateTableReplicaAutoScaling.

func WithUpdateTimeToLiveError

func WithUpdateTimeToLiveError(err error) DynamoDBServiceMockOption

WithUpdateTimeToLiveError sets the mock error for UpdateTimeToLive.

func WithUpdateTimeToLiveOutput

func WithUpdateTimeToLiveOutput(output *dynamodb.UpdateTimeToLiveOutput) DynamoDBServiceMockOption

WithUpdateTimeToLiveOutput sets the mock output for UpdateTimeToLive.

Jump to

Keyboard shortcuts

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