Documentation ¶
Index ¶
- type DynamodbClient
- func (_m *DynamodbClient) DeleteItem(ctx context.Context, params *dynamodb.DeleteItemInput, ...) (*dynamodb.DeleteItemOutput, error)
- func (_m *DynamodbClient) EXPECT() *DynamodbClient_Expecter
- func (_m *DynamodbClient) GetItem(ctx context.Context, params *dynamodb.GetItemInput, ...) (*dynamodb.GetItemOutput, error)
- func (_m *DynamodbClient) PutItem(ctx context.Context, params *dynamodb.PutItemInput, ...) (*dynamodb.PutItemOutput, error)
- type DynamodbClient_DeleteItem_Call
- func (_c *DynamodbClient_DeleteItem_Call) Return(_a0 *dynamodb.DeleteItemOutput, _a1 error) *DynamodbClient_DeleteItem_Call
- func (_c *DynamodbClient_DeleteItem_Call) Run(run func(ctx context.Context, params *dynamodb.DeleteItemInput, ...)) *DynamodbClient_DeleteItem_Call
- func (_c *DynamodbClient_DeleteItem_Call) RunAndReturn(...) *DynamodbClient_DeleteItem_Call
- type DynamodbClient_Expecter
- func (_e *DynamodbClient_Expecter) DeleteItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_DeleteItem_Call
- func (_e *DynamodbClient_Expecter) GetItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_GetItem_Call
- func (_e *DynamodbClient_Expecter) PutItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_PutItem_Call
- type DynamodbClient_GetItem_Call
- func (_c *DynamodbClient_GetItem_Call) Return(_a0 *dynamodb.GetItemOutput, _a1 error) *DynamodbClient_GetItem_Call
- func (_c *DynamodbClient_GetItem_Call) Run(run func(ctx context.Context, params *dynamodb.GetItemInput, ...)) *DynamodbClient_GetItem_Call
- func (_c *DynamodbClient_GetItem_Call) RunAndReturn(...) *DynamodbClient_GetItem_Call
- type DynamodbClient_PutItem_Call
- func (_c *DynamodbClient_PutItem_Call) Return(_a0 *dynamodb.PutItemOutput, _a1 error) *DynamodbClient_PutItem_Call
- func (_c *DynamodbClient_PutItem_Call) Run(run func(ctx context.Context, params *dynamodb.PutItemInput, ...)) *DynamodbClient_PutItem_Call
- func (_c *DynamodbClient_PutItem_Call) RunAndReturn(...) *DynamodbClient_PutItem_Call
- type IdGenerator
- type IdGenerator_Expecter
- type IdGenerator_ID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamodbClient ¶
DynamodbClient is an autogenerated mock type for the DynamodbClient type
func NewDynamodbClient ¶
func NewDynamodbClient(t interface { mock.TestingT Cleanup(func()) }) *DynamodbClient
NewDynamodbClient creates a new instance of DynamodbClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DynamodbClient) DeleteItem ¶
func (_m *DynamodbClient) DeleteItem(ctx context.Context, params *dynamodb.DeleteItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DeleteItemOutput, error)
DeleteItem provides a mock function with given fields: ctx, params, optFns
func (*DynamodbClient) EXPECT ¶
func (_m *DynamodbClient) EXPECT() *DynamodbClient_Expecter
func (*DynamodbClient) GetItem ¶
func (_m *DynamodbClient) GetItem(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error)
GetItem provides a mock function with given fields: ctx, params, optFns
func (*DynamodbClient) PutItem ¶
func (_m *DynamodbClient) PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error)
PutItem provides a mock function with given fields: ctx, params, optFns
type DynamodbClient_DeleteItem_Call ¶
DynamodbClient_DeleteItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteItem'
func (*DynamodbClient_DeleteItem_Call) Return ¶
func (_c *DynamodbClient_DeleteItem_Call) Return(_a0 *dynamodb.DeleteItemOutput, _a1 error) *DynamodbClient_DeleteItem_Call
func (*DynamodbClient_DeleteItem_Call) Run ¶
func (_c *DynamodbClient_DeleteItem_Call) Run(run func(ctx context.Context, params *dynamodb.DeleteItemInput, optFns ...func(*dynamodb.Options))) *DynamodbClient_DeleteItem_Call
func (*DynamodbClient_DeleteItem_Call) RunAndReturn ¶ added in v0.0.12
func (_c *DynamodbClient_DeleteItem_Call) RunAndReturn(run func(context.Context, *dynamodb.DeleteItemInput, ...func(*dynamodb.Options)) (*dynamodb.DeleteItemOutput, error)) *DynamodbClient_DeleteItem_Call
type DynamodbClient_Expecter ¶
type DynamodbClient_Expecter struct {
// contains filtered or unexported fields
}
func (*DynamodbClient_Expecter) DeleteItem ¶
func (_e *DynamodbClient_Expecter) DeleteItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_DeleteItem_Call
DeleteItem is a helper method to define mock.On call
- ctx context.Context
- params *dynamodb.DeleteItemInput
- optFns ...func(*dynamodb.Options)
func (*DynamodbClient_Expecter) GetItem ¶
func (_e *DynamodbClient_Expecter) GetItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_GetItem_Call
GetItem is a helper method to define mock.On call
- ctx context.Context
- params *dynamodb.GetItemInput
- optFns ...func(*dynamodb.Options)
func (*DynamodbClient_Expecter) PutItem ¶
func (_e *DynamodbClient_Expecter) PutItem(ctx interface{}, params interface{}, optFns ...interface{}) *DynamodbClient_PutItem_Call
PutItem is a helper method to define mock.On call
- ctx context.Context
- params *dynamodb.PutItemInput
- optFns ...func(*dynamodb.Options)
type DynamodbClient_GetItem_Call ¶
DynamodbClient_GetItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetItem'
func (*DynamodbClient_GetItem_Call) Return ¶
func (_c *DynamodbClient_GetItem_Call) Return(_a0 *dynamodb.GetItemOutput, _a1 error) *DynamodbClient_GetItem_Call
func (*DynamodbClient_GetItem_Call) Run ¶
func (_c *DynamodbClient_GetItem_Call) Run(run func(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options))) *DynamodbClient_GetItem_Call
func (*DynamodbClient_GetItem_Call) RunAndReturn ¶ added in v0.0.12
func (_c *DynamodbClient_GetItem_Call) RunAndReturn(run func(context.Context, *dynamodb.GetItemInput, ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error)) *DynamodbClient_GetItem_Call
type DynamodbClient_PutItem_Call ¶
DynamodbClient_PutItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutItem'
func (*DynamodbClient_PutItem_Call) Return ¶
func (_c *DynamodbClient_PutItem_Call) Return(_a0 *dynamodb.PutItemOutput, _a1 error) *DynamodbClient_PutItem_Call
func (*DynamodbClient_PutItem_Call) Run ¶
func (_c *DynamodbClient_PutItem_Call) Run(run func(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options))) *DynamodbClient_PutItem_Call
func (*DynamodbClient_PutItem_Call) RunAndReturn ¶ added in v0.0.12
func (_c *DynamodbClient_PutItem_Call) RunAndReturn(run func(context.Context, *dynamodb.PutItemInput, ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error)) *DynamodbClient_PutItem_Call
type IdGenerator ¶
IdGenerator is an autogenerated mock type for the IdGenerator type
func NewIdGenerator ¶
func NewIdGenerator(t interface { mock.TestingT Cleanup(func()) }) *IdGenerator
NewIdGenerator creates a new instance of IdGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*IdGenerator) EXPECT ¶
func (_m *IdGenerator) EXPECT() *IdGenerator_Expecter
func (*IdGenerator) ID ¶
func (_m *IdGenerator) ID() string
ID provides a mock function with given fields:
type IdGenerator_Expecter ¶
type IdGenerator_Expecter struct {
// contains filtered or unexported fields
}
func (*IdGenerator_Expecter) ID ¶
func (_e *IdGenerator_Expecter) ID() *IdGenerator_ID_Call
ID is a helper method to define mock.On call
type IdGenerator_ID_Call ¶
IdGenerator_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*IdGenerator_ID_Call) Return ¶
func (_c *IdGenerator_ID_Call) Return(_a0 string) *IdGenerator_ID_Call
func (*IdGenerator_ID_Call) Run ¶
func (_c *IdGenerator_ID_Call) Run(run func()) *IdGenerator_ID_Call
func (*IdGenerator_ID_Call) RunAndReturn ¶ added in v0.0.12
func (_c *IdGenerator_ID_Call) RunAndReturn(run func() string) *IdGenerator_ID_Call