Documentation ¶
Index ¶
- func ClearDynamoTable(awsSession *session.Session, tableName string) error
- func ClearS3Bucket(awsSession *session.Session, bucketName string) error
- func IntegrationTest(t *testing.T)
- type AthenaMock
- func (m *AthenaMock) GetQueryExecution(input *athena.GetQueryExecutionInput) (*athena.GetQueryExecutionOutput, error)
- func (m *AthenaMock) GetQueryResults(input *athena.GetQueryResultsInput) (*athena.GetQueryResultsOutput, error)
- func (m *AthenaMock) ListTableMetadataPagesWithContext(ctx aws.Context, input *athena.ListTableMetadataInput, ...) error
- func (m *AthenaMock) StartQueryExecution(input *athena.StartQueryExecutionInput) (*athena.StartQueryExecutionOutput, error)
- type CounterMock
- type DynamoDBMock
- func (m *DynamoDBMock) DeleteItem(input *dynamodb.DeleteItemInput) (*dynamodb.DeleteItemOutput, error)
- func (m *DynamoDBMock) GetItem(input *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)
- func (m *DynamoDBMock) PutItem(input *dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error)
- func (m *DynamoDBMock) Query(input *dynamodb.QueryInput) (*dynamodb.QueryOutput, error)
- func (m *DynamoDBMock) Scan(input *dynamodb.ScanInput) (*dynamodb.ScanOutput, error)
- func (m *DynamoDBMock) UpdateItem(input *dynamodb.UpdateItemInput) (*dynamodb.UpdateItemOutput, error)
- type EventBridgeMock
- func (m *EventBridgeMock) DeleteRule(input *eventbridge.DeleteRuleInput) (*eventbridge.DeleteRuleOutput, error)
- func (m *EventBridgeMock) ListEventBuses(input *eventbridge.ListEventBusesInput) (*eventbridge.ListEventBusesOutput, error)
- func (m *EventBridgeMock) PutRule(input *eventbridge.PutRuleInput) (*eventbridge.PutRuleOutput, error)
- func (m *EventBridgeMock) PutTargets(input *eventbridge.PutTargetsInput) (*eventbridge.PutTargetsOutput, error)
- func (m *EventBridgeMock) RemoveTargets(input *eventbridge.RemoveTargetsInput) (*eventbridge.RemoveTargetsOutput, error)
- type FirehoseMock
- type GatewayapiMock
- type GlueMock
- func (m *GlueMock) CreateDatabase(input *glue.CreateDatabaseInput) (*glue.CreateDatabaseOutput, error)
- func (m *GlueMock) CreateDatabaseWithContext(ctx context.Context, input *glue.CreateDatabaseInput, ...) (*glue.CreateDatabaseOutput, error)
- func (m *GlueMock) CreatePartition(input *glue.CreatePartitionInput) (*glue.CreatePartitionOutput, error)
- func (m *GlueMock) CreateTable(input *glue.CreateTableInput) (*glue.CreateTableOutput, error)
- func (m *GlueMock) CreateTableWithContext(ctx context.Context, input *glue.CreateTableInput, _ ...request.Option) (*glue.CreateTableOutput, error)
- func (m *GlueMock) DeleteTable(input *glue.DeleteTableInput) (*glue.DeleteTableOutput, error)
- func (m *GlueMock) GetPartition(input *glue.GetPartitionInput) (*glue.GetPartitionOutput, error)
- func (m *GlueMock) GetPartitions(input *glue.GetPartitionsInput) (*glue.GetPartitionsOutput, error)
- func (m *GlueMock) GetTable(input *glue.GetTableInput) (*glue.GetTableOutput, error)
- func (m *GlueMock) GetTablesPagesWithContext(ctx aws.Context, input *glue.GetTablesInput, ...) error
- func (m *GlueMock) UpdatePartition(input *glue.UpdatePartitionInput) (*glue.UpdatePartitionOutput, error)
- type LambdaMock
- func (m *LambdaMock) CreateEventSourceMapping(input *lambda.CreateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error)
- func (m *LambdaMock) DeleteEventSourceMapping(input *lambda.DeleteEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error)
- func (m *LambdaMock) Invoke(input *lambda.InvokeInput) (*lambda.InvokeOutput, error)
- func (m *LambdaMock) InvokeWithContext(ctx aws.Context, input *lambda.InvokeInput, options ...request.Option) (*lambda.InvokeOutput, error)
- func (m *LambdaMock) ListEventSourceMappings(input *lambda.ListEventSourceMappingsInput) (*lambda.ListEventSourceMappingsOutput, error)
- type LoggerMock
- type MetricsManagerMock
- type S3Mock
- func (m *S3Mock) DeleteObjects(input *s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error)
- func (m *S3Mock) GetBucketLocation(input *s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error)
- func (m *S3Mock) GetBucketLocationWithContext(ctx aws.Context, input *s3.GetBucketLocationInput, options ...request.Option) (*s3.GetBucketLocationOutput, error)
- func (m *S3Mock) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error)
- func (m *S3Mock) GetObjectWithContext(ctx aws.Context, input *s3.GetObjectInput, options ...request.Option) (*s3.GetObjectOutput, error)
- func (m *S3Mock) HeadObject(i *s3.HeadObjectInput) (*s3.HeadObjectOutput, error)
- func (m *S3Mock) ListObjects(i *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)
- func (m *S3Mock) ListObjectsV2Pages(input *s3.ListObjectsV2Input, ...) error
- func (m *S3Mock) ListObjectsV2PagesWithContext(ctx aws.Context, input *s3.ListObjectsV2Input, ...) error
- func (m *S3Mock) MaxRetries() int
- func (m *S3Mock) SelectObjectContent(input *s3.SelectObjectContentInput) (*s3.SelectObjectContentOutput, error)
- func (m *S3Mock) SelectObjectContentWithContext(ctx aws.Context, input *s3.SelectObjectContentInput, options ...request.Option) (*s3.SelectObjectContentOutput, error)
- type S3SelectStreamReaderMock
- type S3UploaderMock
- type SnsMock
- func (m *SnsMock) ConfirmSubscription(input *sns.ConfirmSubscriptionInput) (*sns.ConfirmSubscriptionOutput, error)
- func (m *SnsMock) Publish(input *sns.PublishInput) (*sns.PublishOutput, error)
- func (m *SnsMock) PublishWithContext(ctx context.Context, input *sns.PublishInput, options ...request.Option) (*sns.PublishOutput, error)
- type SqsMock
- func (m *SqsMock) CreateQueue(input *sqs.CreateQueueInput) (*sqs.CreateQueueOutput, error)
- func (m *SqsMock) DeleteMessageBatch(input *sqs.DeleteMessageBatchInput) (*sqs.DeleteMessageBatchOutput, error)
- func (m *SqsMock) DeleteQueue(input *sqs.DeleteQueueInput) (*sqs.DeleteQueueOutput, error)
- func (m *SqsMock) GetQueueAttributes(input *sqs.GetQueueAttributesInput) (*sqs.GetQueueAttributesOutput, error)
- func (m *SqsMock) GetQueueAttributesWithContext(ctx aws.Context, input *sqs.GetQueueAttributesInput, options ...request.Option) (*sqs.GetQueueAttributesOutput, error)
- func (m *SqsMock) GetQueueUrl(input *sqs.GetQueueUrlInput) (*sqs.GetQueueUrlOutput, error)
- func (m *SqsMock) ReceiveMessage(input *sqs.ReceiveMessageInput) (*sqs.ReceiveMessageOutput, error)
- func (m *SqsMock) ReceiveMessageWithContext(ctx aws.Context, input *sqs.ReceiveMessageInput, options ...request.Option) (*sqs.ReceiveMessageOutput, error)
- func (m *SqsMock) SendMessage(input *sqs.SendMessageInput) (*sqs.SendMessageOutput, error)
- func (m *SqsMock) SendMessageBatch(input *sqs.SendMessageBatchInput) (*sqs.SendMessageBatchOutput, error)
- func (m *SqsMock) SendMessageWithContext(ctx context.Context, input *sqs.SendMessageInput, _ ...request.Option) (*sqs.SendMessageOutput, error)
- func (m *SqsMock) SetQueueAttributes(input *sqs.SetQueueAttributesInput) (*sqs.SetQueueAttributesOutput, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearDynamoTable ¶
ClearDynamoTable deletes all items from the table.
Automatic table backups are not affected.
func ClearS3Bucket ¶
ClearS3Bucket deletes all object versions from the bucket.
func IntegrationTest ¶ added in v1.15.0
IntegrationTest skips the current test if the env variable INTEGRATION_TEST is not set to "true".
Types ¶
type AthenaMock ¶ added in v1.4.0
type AthenaMock struct { athenaiface.AthenaAPI mock.Mock }
func (*AthenaMock) GetQueryExecution ¶ added in v1.4.0
func (m *AthenaMock) GetQueryExecution(input *athena.GetQueryExecutionInput) (*athena.GetQueryExecutionOutput, error)
func (*AthenaMock) GetQueryResults ¶ added in v1.4.0
func (m *AthenaMock) GetQueryResults(input *athena.GetQueryResultsInput) (*athena.GetQueryResultsOutput, error)
func (*AthenaMock) ListTableMetadataPagesWithContext ¶ added in v1.16.0
func (m *AthenaMock) ListTableMetadataPagesWithContext(ctx aws.Context, input *athena.ListTableMetadataInput, f func(*athena.ListTableMetadataOutput, bool) bool, option ...request.Option) error
func (*AthenaMock) StartQueryExecution ¶ added in v1.4.0
func (m *AthenaMock) StartQueryExecution(input *athena.StartQueryExecutionInput) (*athena.StartQueryExecutionOutput, error)
type CounterMock ¶ added in v1.16.0
func (*CounterMock) Add ¶ added in v1.16.0
func (m *CounterMock) Add(delta float64)
type DynamoDBMock ¶ added in v1.1.0
type DynamoDBMock struct { dynamodbiface.DynamoDBAPI mock.Mock }
func (*DynamoDBMock) DeleteItem ¶ added in v1.3.0
func (m *DynamoDBMock) DeleteItem(input *dynamodb.DeleteItemInput) (*dynamodb.DeleteItemOutput, error)
func (*DynamoDBMock) GetItem ¶ added in v1.3.0
func (m *DynamoDBMock) GetItem(input *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error)
func (*DynamoDBMock) PutItem ¶ added in v1.1.0
func (m *DynamoDBMock) PutItem(input *dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error)
func (*DynamoDBMock) Query ¶ added in v1.14.0
func (m *DynamoDBMock) Query(input *dynamodb.QueryInput) (*dynamodb.QueryOutput, error)
func (*DynamoDBMock) Scan ¶ added in v1.3.0
func (m *DynamoDBMock) Scan(input *dynamodb.ScanInput) (*dynamodb.ScanOutput, error)
func (*DynamoDBMock) UpdateItem ¶ added in v1.1.0
func (m *DynamoDBMock) UpdateItem(input *dynamodb.UpdateItemInput) (*dynamodb.UpdateItemOutput, error)
type EventBridgeMock ¶ added in v1.3.0
type EventBridgeMock struct { eventbridgeiface.EventBridgeAPI mock.Mock }
func (*EventBridgeMock) DeleteRule ¶ added in v1.3.0
func (m *EventBridgeMock) DeleteRule(input *eventbridge.DeleteRuleInput) (*eventbridge.DeleteRuleOutput, error)
func (*EventBridgeMock) ListEventBuses ¶ added in v1.3.0
func (m *EventBridgeMock) ListEventBuses(input *eventbridge.ListEventBusesInput) (*eventbridge.ListEventBusesOutput, error)
func (*EventBridgeMock) PutRule ¶ added in v1.3.0
func (m *EventBridgeMock) PutRule(input *eventbridge.PutRuleInput) (*eventbridge.PutRuleOutput, error)
func (*EventBridgeMock) PutTargets ¶ added in v1.3.0
func (m *EventBridgeMock) PutTargets(input *eventbridge.PutTargetsInput) (*eventbridge.PutTargetsOutput, error)
func (*EventBridgeMock) RemoveTargets ¶ added in v1.3.0
func (m *EventBridgeMock) RemoveTargets(input *eventbridge.RemoveTargetsInput) (*eventbridge.RemoveTargetsOutput, error)
type FirehoseMock ¶ added in v1.6.0
type FirehoseMock struct { firehoseiface.FirehoseAPI mock.Mock }
func (*FirehoseMock) PutRecordBatchWithContext ¶ added in v1.6.0
func (m *FirehoseMock) PutRecordBatchWithContext( ctx aws.Context, input *firehose.PutRecordBatchInput, options ...request.Option) (*firehose.PutRecordBatchOutput, error)
type GatewayapiMock ¶ added in v1.15.0
type GatewayapiMock struct { gatewayapi.API mock.Mock }
func (*GatewayapiMock) Invoke ¶ added in v1.15.0
func (g *GatewayapiMock) Invoke(input, output interface{}) (int, error)
type GlueMock ¶ added in v1.2.0
func (*GlueMock) CreateDatabase ¶ added in v1.14.0
func (m *GlueMock) CreateDatabase(input *glue.CreateDatabaseInput) (*glue.CreateDatabaseOutput, error)
func (*GlueMock) CreateDatabaseWithContext ¶ added in v1.14.0
func (m *GlueMock) CreateDatabaseWithContext( ctx context.Context, input *glue.CreateDatabaseInput, options ...request.Option, ) (*glue.CreateDatabaseOutput, error)
func (*GlueMock) CreatePartition ¶ added in v1.2.0
func (m *GlueMock) CreatePartition(input *glue.CreatePartitionInput) (*glue.CreatePartitionOutput, error)
func (*GlueMock) CreateTable ¶ added in v1.4.0
func (m *GlueMock) CreateTable(input *glue.CreateTableInput) (*glue.CreateTableOutput, error)
func (*GlueMock) CreateTableWithContext ¶ added in v1.15.0
func (m *GlueMock) CreateTableWithContext(ctx context.Context, input *glue.CreateTableInput, _ ...request.Option) (*glue.CreateTableOutput, error)
func (*GlueMock) DeleteTable ¶ added in v1.2.0
func (m *GlueMock) DeleteTable(input *glue.DeleteTableInput) (*glue.DeleteTableOutput, error)
func (*GlueMock) GetPartition ¶ added in v1.2.0
func (m *GlueMock) GetPartition(input *glue.GetPartitionInput) (*glue.GetPartitionOutput, error)
func (*GlueMock) GetPartitions ¶ added in v1.3.0
func (m *GlueMock) GetPartitions(input *glue.GetPartitionsInput) (*glue.GetPartitionsOutput, error)
func (*GlueMock) GetTable ¶ added in v1.2.0
func (m *GlueMock) GetTable(input *glue.GetTableInput) (*glue.GetTableOutput, error)
func (*GlueMock) GetTablesPagesWithContext ¶ added in v1.11.0
func (m *GlueMock) GetTablesPagesWithContext( ctx aws.Context, input *glue.GetTablesInput, scan func(page *glue.GetTablesOutput, isLast bool) bool, _ ...request.Option, ) error
nolint:lll
func (*GlueMock) UpdatePartition ¶ added in v1.2.0
func (m *GlueMock) UpdatePartition(input *glue.UpdatePartitionInput) (*glue.UpdatePartitionOutput, error)
type LambdaMock ¶ added in v1.0.0
type LambdaMock struct { lambdaiface.LambdaAPI mock.Mock }
func (*LambdaMock) CreateEventSourceMapping ¶ added in v1.6.0
func (m *LambdaMock) CreateEventSourceMapping( input *lambda.CreateEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error)
func (*LambdaMock) DeleteEventSourceMapping ¶ added in v1.6.0
func (m *LambdaMock) DeleteEventSourceMapping( input *lambda.DeleteEventSourceMappingInput) (*lambda.EventSourceMappingConfiguration, error)
func (*LambdaMock) Invoke ¶ added in v1.0.0
func (m *LambdaMock) Invoke(input *lambda.InvokeInput) (*lambda.InvokeOutput, error)
func (*LambdaMock) InvokeWithContext ¶ added in v1.12.0
func (m *LambdaMock) InvokeWithContext( ctx aws.Context, input *lambda.InvokeInput, options ...request.Option) (*lambda.InvokeOutput, error)
func (*LambdaMock) ListEventSourceMappings ¶ added in v1.6.0
func (m *LambdaMock) ListEventSourceMappings(input *lambda.ListEventSourceMappingsInput) (*lambda.ListEventSourceMappingsOutput, error)
type LoggerMock ¶ added in v1.13.0
type MetricsManagerMock ¶ added in v1.16.0
func (*MetricsManagerMock) NewCounter ¶ added in v1.16.0
func (m *MetricsManagerMock) NewCounter(name, unit string) metrics.Counter
func (*MetricsManagerMock) Run ¶ added in v1.16.0
func (m *MetricsManagerMock) Run(ctx context.Context, interval time.Duration)
func (*MetricsManagerMock) Sync ¶ added in v1.16.0
func (m *MetricsManagerMock) Sync() error
type S3Mock ¶ added in v1.0.0
func (*S3Mock) DeleteObjects ¶ added in v1.13.0
func (m *S3Mock) DeleteObjects(input *s3.DeleteObjectsInput) (*s3.DeleteObjectsOutput, error)
func (*S3Mock) GetBucketLocation ¶ added in v1.0.0
func (m *S3Mock) GetBucketLocation(input *s3.GetBucketLocationInput) (*s3.GetBucketLocationOutput, error)
func (*S3Mock) GetBucketLocationWithContext ¶ added in v1.16.0
func (m *S3Mock) GetBucketLocationWithContext( ctx aws.Context, input *s3.GetBucketLocationInput, options ...request.Option) (*s3.GetBucketLocationOutput, error)
func (*S3Mock) GetObject ¶ added in v1.0.0
func (m *S3Mock) GetObject(input *s3.GetObjectInput) (*s3.GetObjectOutput, error)
func (*S3Mock) GetObjectWithContext ¶ added in v1.6.0
func (m *S3Mock) GetObjectWithContext(ctx aws.Context, input *s3.GetObjectInput, options ...request.Option) (*s3.GetObjectOutput, error)
func (*S3Mock) HeadObject ¶ added in v1.16.0
func (m *S3Mock) HeadObject(i *s3.HeadObjectInput) (*s3.HeadObjectOutput, error)
func (*S3Mock) ListObjects ¶ added in v1.16.0
func (m *S3Mock) ListObjects(i *s3.ListObjectsInput) (*s3.ListObjectsOutput, error)
func (*S3Mock) ListObjectsV2Pages ¶ added in v1.3.0
func (m *S3Mock) ListObjectsV2Pages(input *s3.ListObjectsV2Input, f func(page *s3.ListObjectsV2Output, morePages bool) bool) error
func (*S3Mock) ListObjectsV2PagesWithContext ¶ added in v1.6.0
func (*S3Mock) MaxRetries ¶ added in v1.13.0
func (*S3Mock) SelectObjectContent ¶ added in v1.14.3
func (m *S3Mock) SelectObjectContent(input *s3.SelectObjectContentInput) (*s3.SelectObjectContentOutput, error)
func (*S3Mock) SelectObjectContentWithContext ¶ added in v1.14.3
func (m *S3Mock) SelectObjectContentWithContext( ctx aws.Context, input *s3.SelectObjectContentInput, options ...request.Option) (*s3.SelectObjectContentOutput, error)
type S3SelectStreamReaderMock ¶ added in v1.14.3
type S3SelectStreamReaderMock struct { s3.SelectObjectContentEventStreamReader mock.Mock }
func (*S3SelectStreamReaderMock) Err ¶ added in v1.14.3
func (m *S3SelectStreamReaderMock) Err() error
func (*S3SelectStreamReaderMock) Events ¶ added in v1.14.3
func (m *S3SelectStreamReaderMock) Events() <-chan s3.SelectObjectContentEventStreamEvent
type S3UploaderMock ¶ added in v1.3.0
type S3UploaderMock struct { s3manageriface.UploaderAPI mock.Mock }
func (*S3UploaderMock) Upload ¶ added in v1.3.0
func (m *S3UploaderMock) Upload(input *s3manager.UploadInput, f ...func(*s3manager.Uploader)) (*s3manager.UploadOutput, error)
type SnsMock ¶ added in v1.5.0
func (*SnsMock) ConfirmSubscription ¶ added in v1.7.0
func (m *SnsMock) ConfirmSubscription(input *sns.ConfirmSubscriptionInput) (*sns.ConfirmSubscriptionOutput, error)
func (*SnsMock) Publish ¶ added in v1.5.0
func (m *SnsMock) Publish(input *sns.PublishInput) (*sns.PublishOutput, error)
func (*SnsMock) PublishWithContext ¶ added in v1.15.0
func (m *SnsMock) PublishWithContext(ctx context.Context, input *sns.PublishInput, options ...request.Option) (*sns.PublishOutput, error)
type SqsMock ¶ added in v1.1.0
func (*SqsMock) CreateQueue ¶ added in v1.6.0
func (m *SqsMock) CreateQueue(input *sqs.CreateQueueInput) (*sqs.CreateQueueOutput, error)
func (*SqsMock) DeleteMessageBatch ¶ added in v1.2.0
func (m *SqsMock) DeleteMessageBatch(input *sqs.DeleteMessageBatchInput) (*sqs.DeleteMessageBatchOutput, error)
func (*SqsMock) DeleteQueue ¶ added in v1.6.0
func (m *SqsMock) DeleteQueue(input *sqs.DeleteQueueInput) (*sqs.DeleteQueueOutput, error)
func (*SqsMock) GetQueueAttributes ¶ added in v1.2.0
func (m *SqsMock) GetQueueAttributes(input *sqs.GetQueueAttributesInput) (*sqs.GetQueueAttributesOutput, error)
func (*SqsMock) GetQueueAttributesWithContext ¶ added in v1.13.0
func (m *SqsMock) GetQueueAttributesWithContext( ctx aws.Context, input *sqs.GetQueueAttributesInput, options ...request.Option) (*sqs.GetQueueAttributesOutput, error)
func (*SqsMock) GetQueueUrl ¶ added in v1.15.0
func (m *SqsMock) GetQueueUrl(input *sqs.GetQueueUrlInput) (*sqs.GetQueueUrlOutput, error)
nolint (golint)
func (*SqsMock) ReceiveMessage ¶ added in v1.2.0
func (m *SqsMock) ReceiveMessage(input *sqs.ReceiveMessageInput) (*sqs.ReceiveMessageOutput, error)
func (*SqsMock) ReceiveMessageWithContext ¶ added in v1.13.0
func (m *SqsMock) ReceiveMessageWithContext( ctx aws.Context, input *sqs.ReceiveMessageInput, options ...request.Option) (*sqs.ReceiveMessageOutput, error)
func (*SqsMock) SendMessage ¶ added in v1.1.0
func (m *SqsMock) SendMessage(input *sqs.SendMessageInput) (*sqs.SendMessageOutput, error)
func (*SqsMock) SendMessageBatch ¶ added in v1.2.0
func (m *SqsMock) SendMessageBatch(input *sqs.SendMessageBatchInput) (*sqs.SendMessageBatchOutput, error)
func (*SqsMock) SendMessageWithContext ¶ added in v1.14.0
func (m *SqsMock) SendMessageWithContext( ctx context.Context, input *sqs.SendMessageInput, _ ...request.Option, ) (*sqs.SendMessageOutput, error)
func (*SqsMock) SetQueueAttributes ¶ added in v1.3.0
func (m *SqsMock) SetQueueAttributes(input *sqs.SetQueueAttributesInput) (*sqs.SetQueueAttributesOutput, error)
Click to show internal directories.
Click to hide internal directories.