mocks

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) BatchGetItem

func (_m *Client) BatchGetItem(ctx context.Context, params *dynamodb.BatchGetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.BatchGetItemOutput, error)

BatchGetItem provides a mock function with given fields: ctx, params, optFns

func (*Client) BatchWriteItem

func (_m *Client) BatchWriteItem(ctx context.Context, params *dynamodb.BatchWriteItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.BatchWriteItemOutput, error)

BatchWriteItem provides a mock function with given fields: ctx, params, optFns

func (*Client) CreateTable

func (_m *Client) CreateTable(ctx context.Context, params *dynamodb.CreateTableInput, optFns ...func(*dynamodb.Options)) (*dynamodb.CreateTableOutput, error)

CreateTable provides a mock function with given fields: ctx, params, optFns

func (*Client) DeleteItem

func (_m *Client) 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 (*Client) DeleteTable

func (_m *Client) DeleteTable(ctx context.Context, params *dynamodb.DeleteTableInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DeleteTableOutput, error)

DeleteTable provides a mock function with given fields: ctx, params, optFns

func (*Client) DescribeTable

func (_m *Client) DescribeTable(ctx context.Context, params *dynamodb.DescribeTableInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DescribeTableOutput, error)

DescribeTable provides a mock function with given fields: ctx, params, optFns

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetItem

func (_m *Client) 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 (*Client) ListTagsOfResource

func (_m *Client) ListTagsOfResource(ctx context.Context, params *dynamodb.ListTagsOfResourceInput, optFns ...func(*dynamodb.Options)) (*dynamodb.ListTagsOfResourceOutput, error)

ListTagsOfResource provides a mock function with given fields: ctx, params, optFns

func (*Client) PutItem

func (_m *Client) 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

func (*Client) Query

func (_m *Client) Query(ctx context.Context, params *dynamodb.QueryInput, optFns ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)

Query provides a mock function with given fields: ctx, params, optFns

func (*Client) Scan

func (_m *Client) Scan(ctx context.Context, params *dynamodb.ScanInput, optFns ...func(*dynamodb.Options)) (*dynamodb.ScanOutput, error)

Scan provides a mock function with given fields: ctx, params, optFns

func (*Client) TransactGetItems

func (_m *Client) TransactGetItems(ctx context.Context, params *dynamodb.TransactGetItemsInput, optFns ...func(*dynamodb.Options)) (*dynamodb.TransactGetItemsOutput, error)

TransactGetItems provides a mock function with given fields: ctx, params, optFns

func (*Client) TransactWriteItems

func (_m *Client) TransactWriteItems(ctx context.Context, params *dynamodb.TransactWriteItemsInput, optFns ...func(*dynamodb.Options)) (*dynamodb.TransactWriteItemsOutput, error)

TransactWriteItems provides a mock function with given fields: ctx, params, optFns

func (*Client) UpdateItem

func (_m *Client) UpdateItem(ctx context.Context, params *dynamodb.UpdateItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.UpdateItemOutput, error)

UpdateItem provides a mock function with given fields: ctx, params, optFns

func (*Client) UpdateTimeToLive

func (_m *Client) UpdateTimeToLive(ctx context.Context, params *dynamodb.UpdateTimeToLiveInput, optFns ...func(*dynamodb.Options)) (*dynamodb.UpdateTimeToLiveOutput, error)

UpdateTimeToLive provides a mock function with given fields: ctx, params, optFns

type Client_BatchGetItem_Call

type Client_BatchGetItem_Call struct {
	*mock.Call
}

Client_BatchGetItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchGetItem'

func (*Client_BatchGetItem_Call) Return

func (*Client_BatchGetItem_Call) Run

func (*Client_BatchGetItem_Call) RunAndReturn

type Client_BatchWriteItem_Call

type Client_BatchWriteItem_Call struct {
	*mock.Call
}

Client_BatchWriteItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchWriteItem'

func (*Client_BatchWriteItem_Call) Return

func (*Client_BatchWriteItem_Call) Run

type Client_CreateTable_Call

type Client_CreateTable_Call struct {
	*mock.Call
}

Client_CreateTable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTable'

func (*Client_CreateTable_Call) Return

func (*Client_CreateTable_Call) Run

func (_c *Client_CreateTable_Call) Run(run func(ctx context.Context, params *dynamodb.CreateTableInput, optFns ...func(*dynamodb.Options))) *Client_CreateTable_Call

func (*Client_CreateTable_Call) RunAndReturn

type Client_DeleteItem_Call

type Client_DeleteItem_Call struct {
	*mock.Call
}

Client_DeleteItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteItem'

func (*Client_DeleteItem_Call) Return

func (*Client_DeleteItem_Call) Run

func (_c *Client_DeleteItem_Call) Run(run func(ctx context.Context, params *dynamodb.DeleteItemInput, optFns ...func(*dynamodb.Options))) *Client_DeleteItem_Call

func (*Client_DeleteItem_Call) RunAndReturn

type Client_DeleteTable_Call

type Client_DeleteTable_Call struct {
	*mock.Call
}

Client_DeleteTable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTable'

func (*Client_DeleteTable_Call) Return

func (*Client_DeleteTable_Call) Run

func (_c *Client_DeleteTable_Call) Run(run func(ctx context.Context, params *dynamodb.DeleteTableInput, optFns ...func(*dynamodb.Options))) *Client_DeleteTable_Call

func (*Client_DeleteTable_Call) RunAndReturn

type Client_DescribeTable_Call

type Client_DescribeTable_Call struct {
	*mock.Call
}

Client_DescribeTable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeTable'

func (*Client_DescribeTable_Call) Return

func (*Client_DescribeTable_Call) Run

func (*Client_DescribeTable_Call) RunAndReturn

type Client_Expecter

type Client_Expecter struct {
	// contains filtered or unexported fields
}

func (*Client_Expecter) BatchGetItem

func (_e *Client_Expecter) BatchGetItem(ctx interface{}, params interface{}, optFns ...interface{}) *Client_BatchGetItem_Call

BatchGetItem is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.BatchGetItemInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) BatchWriteItem

func (_e *Client_Expecter) BatchWriteItem(ctx interface{}, params interface{}, optFns ...interface{}) *Client_BatchWriteItem_Call

BatchWriteItem is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.BatchWriteItemInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) CreateTable

func (_e *Client_Expecter) CreateTable(ctx interface{}, params interface{}, optFns ...interface{}) *Client_CreateTable_Call

CreateTable is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.CreateTableInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) DeleteItem

func (_e *Client_Expecter) DeleteItem(ctx interface{}, params interface{}, optFns ...interface{}) *Client_DeleteItem_Call

DeleteItem is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.DeleteItemInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) DeleteTable

func (_e *Client_Expecter) DeleteTable(ctx interface{}, params interface{}, optFns ...interface{}) *Client_DeleteTable_Call

DeleteTable is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.DeleteTableInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) DescribeTable

func (_e *Client_Expecter) DescribeTable(ctx interface{}, params interface{}, optFns ...interface{}) *Client_DescribeTable_Call

DescribeTable is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.DescribeTableInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) GetItem

func (_e *Client_Expecter) GetItem(ctx interface{}, params interface{}, optFns ...interface{}) *Client_GetItem_Call

GetItem is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.GetItemInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) ListTagsOfResource

func (_e *Client_Expecter) ListTagsOfResource(ctx interface{}, params interface{}, optFns ...interface{}) *Client_ListTagsOfResource_Call

ListTagsOfResource is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.ListTagsOfResourceInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) PutItem

func (_e *Client_Expecter) PutItem(ctx interface{}, params interface{}, optFns ...interface{}) *Client_PutItem_Call

PutItem is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.PutItemInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) Query

func (_e *Client_Expecter) Query(ctx interface{}, params interface{}, optFns ...interface{}) *Client_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.QueryInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) Scan

func (_e *Client_Expecter) Scan(ctx interface{}, params interface{}, optFns ...interface{}) *Client_Scan_Call

Scan is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.ScanInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) TransactGetItems

func (_e *Client_Expecter) TransactGetItems(ctx interface{}, params interface{}, optFns ...interface{}) *Client_TransactGetItems_Call

TransactGetItems is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.TransactGetItemsInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) TransactWriteItems

func (_e *Client_Expecter) TransactWriteItems(ctx interface{}, params interface{}, optFns ...interface{}) *Client_TransactWriteItems_Call

TransactWriteItems is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.TransactWriteItemsInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) UpdateItem

func (_e *Client_Expecter) UpdateItem(ctx interface{}, params interface{}, optFns ...interface{}) *Client_UpdateItem_Call

UpdateItem is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.UpdateItemInput
  • optFns ...func(*dynamodb.Options)

func (*Client_Expecter) UpdateTimeToLive

func (_e *Client_Expecter) UpdateTimeToLive(ctx interface{}, params interface{}, optFns ...interface{}) *Client_UpdateTimeToLive_Call

UpdateTimeToLive is a helper method to define mock.On call

  • ctx context.Context
  • params *dynamodb.UpdateTimeToLiveInput
  • optFns ...func(*dynamodb.Options)

type Client_GetItem_Call

type Client_GetItem_Call struct {
	*mock.Call
}

Client_GetItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetItem'

func (*Client_GetItem_Call) Return

func (*Client_GetItem_Call) Run

func (_c *Client_GetItem_Call) Run(run func(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options))) *Client_GetItem_Call

func (*Client_GetItem_Call) RunAndReturn

type Client_ListTagsOfResource_Call

type Client_ListTagsOfResource_Call struct {
	*mock.Call
}

Client_ListTagsOfResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTagsOfResource'

func (*Client_ListTagsOfResource_Call) Return

func (*Client_ListTagsOfResource_Call) Run

type Client_PutItem_Call

type Client_PutItem_Call struct {
	*mock.Call
}

Client_PutItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutItem'

func (*Client_PutItem_Call) Return

func (*Client_PutItem_Call) Run

func (_c *Client_PutItem_Call) Run(run func(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options))) *Client_PutItem_Call

func (*Client_PutItem_Call) RunAndReturn

type Client_Query_Call

type Client_Query_Call struct {
	*mock.Call
}

Client_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*Client_Query_Call) Return

func (*Client_Query_Call) Run

func (_c *Client_Query_Call) Run(run func(ctx context.Context, params *dynamodb.QueryInput, optFns ...func(*dynamodb.Options))) *Client_Query_Call

func (*Client_Query_Call) RunAndReturn

type Client_Scan_Call

type Client_Scan_Call struct {
	*mock.Call
}

Client_Scan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scan'

func (*Client_Scan_Call) Return

func (*Client_Scan_Call) Run

func (_c *Client_Scan_Call) Run(run func(ctx context.Context, params *dynamodb.ScanInput, optFns ...func(*dynamodb.Options))) *Client_Scan_Call

func (*Client_Scan_Call) RunAndReturn

type Client_TransactGetItems_Call

type Client_TransactGetItems_Call struct {
	*mock.Call
}

Client_TransactGetItems_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactGetItems'

func (*Client_TransactGetItems_Call) Return

func (*Client_TransactGetItems_Call) Run

type Client_TransactWriteItems_Call

type Client_TransactWriteItems_Call struct {
	*mock.Call
}

Client_TransactWriteItems_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactWriteItems'

func (*Client_TransactWriteItems_Call) Return

func (*Client_TransactWriteItems_Call) Run

type Client_UpdateItem_Call

type Client_UpdateItem_Call struct {
	*mock.Call
}

Client_UpdateItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateItem'

func (*Client_UpdateItem_Call) Return

func (*Client_UpdateItem_Call) Run

func (_c *Client_UpdateItem_Call) Run(run func(ctx context.Context, params *dynamodb.UpdateItemInput, optFns ...func(*dynamodb.Options))) *Client_UpdateItem_Call

func (*Client_UpdateItem_Call) RunAndReturn

type Client_UpdateTimeToLive_Call

type Client_UpdateTimeToLive_Call struct {
	*mock.Call
}

Client_UpdateTimeToLive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateTimeToLive'

func (*Client_UpdateTimeToLive_Call) Return

func (*Client_UpdateTimeToLive_Call) Run

Jump to

Keyboard shortcuts

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