Documentation ¶
Index ¶
- type ClientMock
- func (_m *ClientMock) CreateMany(ctx context.Context, files []*s3.FileData) map[string]*s3.CreateDto
- func (_m *ClientMock) CreateOne(ctx context.Context, file *s3.FileData) *s3.CreateDto
- func (_m *ClientMock) DeleteMany(ctx context.Context, objectIDs []string) map[string]error
- func (_m *ClientMock) DeleteOne(ctx context.Context, objectID string) error
- func (_m *ClientMock) EXPECT() *ClientMock_Expecter
- func (_m *ClientMock) GetMany(ctx context.Context, objectIDs []string) map[string]*s3.GetDto
- func (_m *ClientMock) GetOne(ctx context.Context, objectID string) *s3.GetDto
- type ClientMock_CreateMany_Call
- func (_c *ClientMock_CreateMany_Call) Return(_a0 map[string]*s3.CreateDto) *ClientMock_CreateMany_Call
- func (_c *ClientMock_CreateMany_Call) Run(run func(ctx context.Context, files []*s3.FileData)) *ClientMock_CreateMany_Call
- func (_c *ClientMock_CreateMany_Call) RunAndReturn(run func(context.Context, []*s3.FileData) map[string]*s3.CreateDto) *ClientMock_CreateMany_Call
- type ClientMock_CreateOne_Call
- func (_c *ClientMock_CreateOne_Call) Return(_a0 *s3.CreateDto) *ClientMock_CreateOne_Call
- func (_c *ClientMock_CreateOne_Call) Run(run func(ctx context.Context, file *s3.FileData)) *ClientMock_CreateOne_Call
- func (_c *ClientMock_CreateOne_Call) RunAndReturn(run func(context.Context, *s3.FileData) *s3.CreateDto) *ClientMock_CreateOne_Call
- type ClientMock_DeleteMany_Call
- func (_c *ClientMock_DeleteMany_Call) Return(_a0 map[string]error) *ClientMock_DeleteMany_Call
- func (_c *ClientMock_DeleteMany_Call) Run(run func(ctx context.Context, objectIDs []string)) *ClientMock_DeleteMany_Call
- func (_c *ClientMock_DeleteMany_Call) RunAndReturn(run func(context.Context, []string) map[string]error) *ClientMock_DeleteMany_Call
- type ClientMock_DeleteOne_Call
- func (_c *ClientMock_DeleteOne_Call) Return(_a0 error) *ClientMock_DeleteOne_Call
- func (_c *ClientMock_DeleteOne_Call) Run(run func(ctx context.Context, objectID string)) *ClientMock_DeleteOne_Call
- func (_c *ClientMock_DeleteOne_Call) RunAndReturn(run func(context.Context, string) error) *ClientMock_DeleteOne_Call
- type ClientMock_Expecter
- func (_e *ClientMock_Expecter) CreateMany(ctx interface{}, files interface{}) *ClientMock_CreateMany_Call
- func (_e *ClientMock_Expecter) CreateOne(ctx interface{}, file interface{}) *ClientMock_CreateOne_Call
- func (_e *ClientMock_Expecter) DeleteMany(ctx interface{}, objectIDs interface{}) *ClientMock_DeleteMany_Call
- func (_e *ClientMock_Expecter) DeleteOne(ctx interface{}, objectID interface{}) *ClientMock_DeleteOne_Call
- func (_e *ClientMock_Expecter) GetMany(ctx interface{}, objectIDs interface{}) *ClientMock_GetMany_Call
- func (_e *ClientMock_Expecter) GetOne(ctx interface{}, objectID interface{}) *ClientMock_GetOne_Call
- type ClientMock_GetMany_Call
- func (_c *ClientMock_GetMany_Call) Return(_a0 map[string]*s3.GetDto) *ClientMock_GetMany_Call
- func (_c *ClientMock_GetMany_Call) Run(run func(ctx context.Context, objectIDs []string)) *ClientMock_GetMany_Call
- func (_c *ClientMock_GetMany_Call) RunAndReturn(run func(context.Context, []string) map[string]*s3.GetDto) *ClientMock_GetMany_Call
- type ClientMock_GetOne_Call
- func (_c *ClientMock_GetOne_Call) Return(_a0 *s3.GetDto) *ClientMock_GetOne_Call
- func (_c *ClientMock_GetOne_Call) Run(run func(ctx context.Context, objectID string)) *ClientMock_GetOne_Call
- func (_c *ClientMock_GetOne_Call) RunAndReturn(run func(context.Context, string) *s3.GetDto) *ClientMock_GetOne_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMock ¶
ClientMock is an autogenerated mock type for the Client type
func NewClientMock ¶
func NewClientMock(t interface { mock.TestingT Cleanup(func()) }) *ClientMock
NewClientMock creates a new instance of ClientMock. 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 (*ClientMock) CreateMany ¶
func (_m *ClientMock) CreateMany(ctx context.Context, files []*s3.FileData) map[string]*s3.CreateDto
CreateMany provides a mock function with given fields: ctx, files
func (*ClientMock) DeleteMany ¶
DeleteMany provides a mock function with given fields: ctx, objectIDs
func (*ClientMock) DeleteOne ¶
func (_m *ClientMock) DeleteOne(ctx context.Context, objectID string) error
DeleteOne provides a mock function with given fields: ctx, objectID
func (*ClientMock) EXPECT ¶
func (_m *ClientMock) EXPECT() *ClientMock_Expecter
type ClientMock_CreateMany_Call ¶
ClientMock_CreateMany_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateMany'
func (*ClientMock_CreateMany_Call) Return ¶
func (_c *ClientMock_CreateMany_Call) Return(_a0 map[string]*s3.CreateDto) *ClientMock_CreateMany_Call
func (*ClientMock_CreateMany_Call) Run ¶
func (_c *ClientMock_CreateMany_Call) Run(run func(ctx context.Context, files []*s3.FileData)) *ClientMock_CreateMany_Call
func (*ClientMock_CreateMany_Call) RunAndReturn ¶
func (_c *ClientMock_CreateMany_Call) RunAndReturn(run func(context.Context, []*s3.FileData) map[string]*s3.CreateDto) *ClientMock_CreateMany_Call
type ClientMock_CreateOne_Call ¶
ClientMock_CreateOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOne'
func (*ClientMock_CreateOne_Call) Return ¶
func (_c *ClientMock_CreateOne_Call) Return(_a0 *s3.CreateDto) *ClientMock_CreateOne_Call
func (*ClientMock_CreateOne_Call) Run ¶
func (_c *ClientMock_CreateOne_Call) Run(run func(ctx context.Context, file *s3.FileData)) *ClientMock_CreateOne_Call
func (*ClientMock_CreateOne_Call) RunAndReturn ¶
func (_c *ClientMock_CreateOne_Call) RunAndReturn(run func(context.Context, *s3.FileData) *s3.CreateDto) *ClientMock_CreateOne_Call
type ClientMock_DeleteMany_Call ¶
ClientMock_DeleteMany_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteMany'
func (*ClientMock_DeleteMany_Call) Return ¶
func (_c *ClientMock_DeleteMany_Call) Return(_a0 map[string]error) *ClientMock_DeleteMany_Call
func (*ClientMock_DeleteMany_Call) Run ¶
func (_c *ClientMock_DeleteMany_Call) Run(run func(ctx context.Context, objectIDs []string)) *ClientMock_DeleteMany_Call
func (*ClientMock_DeleteMany_Call) RunAndReturn ¶
func (_c *ClientMock_DeleteMany_Call) RunAndReturn(run func(context.Context, []string) map[string]error) *ClientMock_DeleteMany_Call
type ClientMock_DeleteOne_Call ¶
ClientMock_DeleteOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOne'
func (*ClientMock_DeleteOne_Call) Return ¶
func (_c *ClientMock_DeleteOne_Call) Return(_a0 error) *ClientMock_DeleteOne_Call
func (*ClientMock_DeleteOne_Call) Run ¶
func (_c *ClientMock_DeleteOne_Call) Run(run func(ctx context.Context, objectID string)) *ClientMock_DeleteOne_Call
func (*ClientMock_DeleteOne_Call) RunAndReturn ¶
func (_c *ClientMock_DeleteOne_Call) RunAndReturn(run func(context.Context, string) error) *ClientMock_DeleteOne_Call
type ClientMock_Expecter ¶
type ClientMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ClientMock_Expecter) CreateMany ¶
func (_e *ClientMock_Expecter) CreateMany(ctx interface{}, files interface{}) *ClientMock_CreateMany_Call
CreateMany is a helper method to define mock.On call
- ctx context.Context
- files []*s3.FileData
func (*ClientMock_Expecter) CreateOne ¶
func (_e *ClientMock_Expecter) CreateOne(ctx interface{}, file interface{}) *ClientMock_CreateOne_Call
CreateOne is a helper method to define mock.On call
- ctx context.Context
- file *s3.FileData
func (*ClientMock_Expecter) DeleteMany ¶
func (_e *ClientMock_Expecter) DeleteMany(ctx interface{}, objectIDs interface{}) *ClientMock_DeleteMany_Call
DeleteMany is a helper method to define mock.On call
- ctx context.Context
- objectIDs []string
func (*ClientMock_Expecter) DeleteOne ¶
func (_e *ClientMock_Expecter) DeleteOne(ctx interface{}, objectID interface{}) *ClientMock_DeleteOne_Call
DeleteOne is a helper method to define mock.On call
- ctx context.Context
- objectID string
func (*ClientMock_Expecter) GetMany ¶
func (_e *ClientMock_Expecter) GetMany(ctx interface{}, objectIDs interface{}) *ClientMock_GetMany_Call
GetMany is a helper method to define mock.On call
- ctx context.Context
- objectIDs []string
func (*ClientMock_Expecter) GetOne ¶
func (_e *ClientMock_Expecter) GetOne(ctx interface{}, objectID interface{}) *ClientMock_GetOne_Call
GetOne is a helper method to define mock.On call
- ctx context.Context
- objectID string
type ClientMock_GetMany_Call ¶
ClientMock_GetMany_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMany'
func (*ClientMock_GetMany_Call) Return ¶
func (_c *ClientMock_GetMany_Call) Return(_a0 map[string]*s3.GetDto) *ClientMock_GetMany_Call
func (*ClientMock_GetMany_Call) Run ¶
func (_c *ClientMock_GetMany_Call) Run(run func(ctx context.Context, objectIDs []string)) *ClientMock_GetMany_Call
func (*ClientMock_GetMany_Call) RunAndReturn ¶
func (_c *ClientMock_GetMany_Call) RunAndReturn(run func(context.Context, []string) map[string]*s3.GetDto) *ClientMock_GetMany_Call
type ClientMock_GetOne_Call ¶
ClientMock_GetOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOne'
func (*ClientMock_GetOne_Call) Return ¶
func (_c *ClientMock_GetOne_Call) Return(_a0 *s3.GetDto) *ClientMock_GetOne_Call
func (*ClientMock_GetOne_Call) Run ¶
func (_c *ClientMock_GetOne_Call) Run(run func(ctx context.Context, objectID string)) *ClientMock_GetOne_Call
func (*ClientMock_GetOne_Call) RunAndReturn ¶
func (_c *ClientMock_GetOne_Call) RunAndReturn(run func(context.Context, string) *s3.GetDto) *ClientMock_GetOne_Call