Documentation ¶
Index ¶
- Variables
- func NewMockClock(setTimeTo string) mockClock
- func ResetMockDynamoDbCalls()
- type MockClient
- type MockDynamoDB
- func (m *MockDynamoDB) DeleteItemWithContext(ctx aws.Context, input *dynamodb.DeleteItemInput, opts ...request.Option) (*dynamodb.DeleteItemOutput, error)
- func (m *MockDynamoDB) GetItemWithContext(ctx aws.Context, input *dynamodb.GetItemInput, opts ...request.Option) (*dynamodb.GetItemOutput, error)
- func (m *MockDynamoDB) PutItemWithContext(ctx aws.Context, input *dynamodb.PutItemInput, opts ...request.Option) (*dynamodb.PutItemOutput, error)
- type MockDynamoDbInputs
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GetDoFunc fetches the mock client's `Do` func GetDoFunc func(req *http.Request) (*http.Response, error) )
View Source
var MockDynamoDbCalls = MockDynamoDbInputs{}
Functions ¶
func NewMockClock ¶
func NewMockClock(setTimeTo string) mockClock
func ResetMockDynamoDbCalls ¶
func ResetMockDynamoDbCalls()
Types ¶
type MockClient ¶
MockClient is the mock client
type MockDynamoDB ¶
type MockDynamoDB struct { DeleteItemOutput *dynamodb.DeleteItemOutput GetItemOutput *dynamodb.GetItemOutput PutItemOutput *dynamodb.PutItemOutput }
func (*MockDynamoDB) DeleteItemWithContext ¶
func (m *MockDynamoDB) DeleteItemWithContext(ctx aws.Context, input *dynamodb.DeleteItemInput, opts ...request.Option) (*dynamodb.DeleteItemOutput, error)
func (*MockDynamoDB) GetItemWithContext ¶
func (m *MockDynamoDB) GetItemWithContext(ctx aws.Context, input *dynamodb.GetItemInput, opts ...request.Option) (*dynamodb.GetItemOutput, error)
func (*MockDynamoDB) PutItemWithContext ¶
func (m *MockDynamoDB) PutItemWithContext(ctx aws.Context, input *dynamodb.PutItemInput, opts ...request.Option) (*dynamodb.PutItemOutput, error)
type MockDynamoDbInputs ¶
type MockDynamoDbInputs struct { DeleteItemWithContext *dynamodb.DeleteItemInput GetItemWithContext *dynamodb.GetItemInput PutItemWithContext *dynamodb.PutItemInput }
Click to show internal directories.
Click to hide internal directories.