Documentation ¶
Index ¶
- type TagRepository
- func (_m *TagRepository) Create(ctx context.Context, _a1 *tag.Tag) error
- func (_m *TagRepository) Delete(ctx context.Context, filter tag.Tag) error
- func (_m *TagRepository) EXPECT() *TagRepository_Expecter
- func (_m *TagRepository) Read(ctx context.Context, filter tag.Tag) ([]tag.Tag, error)
- func (_m *TagRepository) Update(ctx context.Context, _a1 *tag.Tag) error
- type TagRepository_Create_Call
- func (_c *TagRepository_Create_Call) Return(_a0 error) *TagRepository_Create_Call
- func (_c *TagRepository_Create_Call) Run(run func(ctx context.Context, _a1 *tag.Tag)) *TagRepository_Create_Call
- func (_c *TagRepository_Create_Call) RunAndReturn(run func(context.Context, *tag.Tag) error) *TagRepository_Create_Call
- type TagRepository_Delete_Call
- func (_c *TagRepository_Delete_Call) Return(_a0 error) *TagRepository_Delete_Call
- func (_c *TagRepository_Delete_Call) Run(run func(ctx context.Context, filter tag.Tag)) *TagRepository_Delete_Call
- func (_c *TagRepository_Delete_Call) RunAndReturn(run func(context.Context, tag.Tag) error) *TagRepository_Delete_Call
- type TagRepository_Expecter
- func (_e *TagRepository_Expecter) Create(ctx interface{}, _a1 interface{}) *TagRepository_Create_Call
- func (_e *TagRepository_Expecter) Delete(ctx interface{}, filter interface{}) *TagRepository_Delete_Call
- func (_e *TagRepository_Expecter) Read(ctx interface{}, filter interface{}) *TagRepository_Read_Call
- func (_e *TagRepository_Expecter) Update(ctx interface{}, _a1 interface{}) *TagRepository_Update_Call
- type TagRepository_Read_Call
- func (_c *TagRepository_Read_Call) Return(_a0 []tag.Tag, _a1 error) *TagRepository_Read_Call
- func (_c *TagRepository_Read_Call) Run(run func(ctx context.Context, filter tag.Tag)) *TagRepository_Read_Call
- func (_c *TagRepository_Read_Call) RunAndReturn(run func(context.Context, tag.Tag) ([]tag.Tag, error)) *TagRepository_Read_Call
- type TagRepository_Update_Call
- func (_c *TagRepository_Update_Call) Return(_a0 error) *TagRepository_Update_Call
- func (_c *TagRepository_Update_Call) Run(run func(ctx context.Context, _a1 *tag.Tag)) *TagRepository_Update_Call
- func (_c *TagRepository_Update_Call) RunAndReturn(run func(context.Context, *tag.Tag) error) *TagRepository_Update_Call
- type TagTemplateRepository
- func (_m *TagTemplateRepository) Create(ctx context.Context, template *tag.Template) error
- func (_m *TagTemplateRepository) Delete(ctx context.Context, templateURN string) error
- func (_m *TagTemplateRepository) EXPECT() *TagTemplateRepository_Expecter
- func (_m *TagTemplateRepository) Read(ctx context.Context, templateURN string) ([]tag.Template, error)
- func (_m *TagTemplateRepository) ReadAll(ctx context.Context) ([]tag.Template, error)
- func (_m *TagTemplateRepository) Update(ctx context.Context, templateURN string, template *tag.Template) error
- type TagTemplateRepository_Create_Call
- func (_c *TagTemplateRepository_Create_Call) Return(_a0 error) *TagTemplateRepository_Create_Call
- func (_c *TagTemplateRepository_Create_Call) Run(run func(ctx context.Context, template *tag.Template)) *TagTemplateRepository_Create_Call
- func (_c *TagTemplateRepository_Create_Call) RunAndReturn(run func(context.Context, *tag.Template) error) *TagTemplateRepository_Create_Call
- type TagTemplateRepository_Delete_Call
- func (_c *TagTemplateRepository_Delete_Call) Return(_a0 error) *TagTemplateRepository_Delete_Call
- func (_c *TagTemplateRepository_Delete_Call) Run(run func(ctx context.Context, templateURN string)) *TagTemplateRepository_Delete_Call
- func (_c *TagTemplateRepository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *TagTemplateRepository_Delete_Call
- type TagTemplateRepository_Expecter
- func (_e *TagTemplateRepository_Expecter) Create(ctx interface{}, template interface{}) *TagTemplateRepository_Create_Call
- func (_e *TagTemplateRepository_Expecter) Delete(ctx interface{}, templateURN interface{}) *TagTemplateRepository_Delete_Call
- func (_e *TagTemplateRepository_Expecter) Read(ctx interface{}, templateURN interface{}) *TagTemplateRepository_Read_Call
- func (_e *TagTemplateRepository_Expecter) ReadAll(ctx interface{}) *TagTemplateRepository_ReadAll_Call
- func (_e *TagTemplateRepository_Expecter) Update(ctx interface{}, templateURN interface{}, template interface{}) *TagTemplateRepository_Update_Call
- type TagTemplateRepository_ReadAll_Call
- func (_c *TagTemplateRepository_ReadAll_Call) Return(_a0 []tag.Template, _a1 error) *TagTemplateRepository_ReadAll_Call
- func (_c *TagTemplateRepository_ReadAll_Call) Run(run func(ctx context.Context)) *TagTemplateRepository_ReadAll_Call
- func (_c *TagTemplateRepository_ReadAll_Call) RunAndReturn(run func(context.Context) ([]tag.Template, error)) *TagTemplateRepository_ReadAll_Call
- type TagTemplateRepository_Read_Call
- func (_c *TagTemplateRepository_Read_Call) Return(_a0 []tag.Template, _a1 error) *TagTemplateRepository_Read_Call
- func (_c *TagTemplateRepository_Read_Call) Run(run func(ctx context.Context, templateURN string)) *TagTemplateRepository_Read_Call
- func (_c *TagTemplateRepository_Read_Call) RunAndReturn(run func(context.Context, string) ([]tag.Template, error)) *TagTemplateRepository_Read_Call
- type TagTemplateRepository_Update_Call
- func (_c *TagTemplateRepository_Update_Call) Return(_a0 error) *TagTemplateRepository_Update_Call
- func (_c *TagTemplateRepository_Update_Call) Run(run func(ctx context.Context, templateURN string, template *tag.Template)) *TagTemplateRepository_Update_Call
- func (_c *TagTemplateRepository_Update_Call) RunAndReturn(run func(context.Context, string, *tag.Template) error) *TagTemplateRepository_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TagRepository ¶
TagRepository is an autogenerated mock type for the TagRepository type
func NewTagRepository ¶ added in v0.5.3
func NewTagRepository(t mockConstructorTestingTNewTagRepository) *TagRepository
NewTagRepository creates a new instance of TagRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TagRepository) EXPECT ¶
func (_m *TagRepository) EXPECT() *TagRepository_Expecter
type TagRepository_Create_Call ¶
TagRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*TagRepository_Create_Call) Return ¶
func (_c *TagRepository_Create_Call) Return(_a0 error) *TagRepository_Create_Call
func (*TagRepository_Create_Call) Run ¶
func (_c *TagRepository_Create_Call) Run(run func(ctx context.Context, _a1 *tag.Tag)) *TagRepository_Create_Call
func (*TagRepository_Create_Call) RunAndReturn ¶ added in v0.5.3
func (_c *TagRepository_Create_Call) RunAndReturn(run func(context.Context, *tag.Tag) error) *TagRepository_Create_Call
type TagRepository_Delete_Call ¶
TagRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*TagRepository_Delete_Call) Return ¶
func (_c *TagRepository_Delete_Call) Return(_a0 error) *TagRepository_Delete_Call
func (*TagRepository_Delete_Call) Run ¶
func (_c *TagRepository_Delete_Call) Run(run func(ctx context.Context, filter tag.Tag)) *TagRepository_Delete_Call
func (*TagRepository_Delete_Call) RunAndReturn ¶ added in v0.5.3
func (_c *TagRepository_Delete_Call) RunAndReturn(run func(context.Context, tag.Tag) error) *TagRepository_Delete_Call
type TagRepository_Expecter ¶
type TagRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*TagRepository_Expecter) Create ¶
func (_e *TagRepository_Expecter) Create(ctx interface{}, _a1 interface{}) *TagRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 *tag.Tag
func (*TagRepository_Expecter) Delete ¶
func (_e *TagRepository_Expecter) Delete(ctx interface{}, filter interface{}) *TagRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- filter tag.Tag
func (*TagRepository_Expecter) Read ¶
func (_e *TagRepository_Expecter) Read(ctx interface{}, filter interface{}) *TagRepository_Read_Call
Read is a helper method to define mock.On call
- ctx context.Context
- filter tag.Tag
func (*TagRepository_Expecter) Update ¶
func (_e *TagRepository_Expecter) Update(ctx interface{}, _a1 interface{}) *TagRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- _a1 *tag.Tag
type TagRepository_Read_Call ¶
TagRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*TagRepository_Read_Call) Return ¶
func (_c *TagRepository_Read_Call) Return(_a0 []tag.Tag, _a1 error) *TagRepository_Read_Call
func (*TagRepository_Read_Call) Run ¶
func (_c *TagRepository_Read_Call) Run(run func(ctx context.Context, filter tag.Tag)) *TagRepository_Read_Call
func (*TagRepository_Read_Call) RunAndReturn ¶ added in v0.5.3
func (_c *TagRepository_Read_Call) RunAndReturn(run func(context.Context, tag.Tag) ([]tag.Tag, error)) *TagRepository_Read_Call
type TagRepository_Update_Call ¶
TagRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*TagRepository_Update_Call) Return ¶
func (_c *TagRepository_Update_Call) Return(_a0 error) *TagRepository_Update_Call
func (*TagRepository_Update_Call) Run ¶
func (_c *TagRepository_Update_Call) Run(run func(ctx context.Context, _a1 *tag.Tag)) *TagRepository_Update_Call
func (*TagRepository_Update_Call) RunAndReturn ¶ added in v0.5.3
func (_c *TagRepository_Update_Call) RunAndReturn(run func(context.Context, *tag.Tag) error) *TagRepository_Update_Call
type TagTemplateRepository ¶
TagTemplateRepository is an autogenerated mock type for the TagTemplateRepository type
func NewTagTemplateRepository ¶ added in v0.5.3
func NewTagTemplateRepository(t mockConstructorTestingTNewTagTemplateRepository) *TagTemplateRepository
NewTagTemplateRepository creates a new instance of TagTemplateRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TagTemplateRepository) Create ¶
Create provides a mock function with given fields: ctx, template
func (*TagTemplateRepository) Delete ¶
func (_m *TagTemplateRepository) Delete(ctx context.Context, templateURN string) error
Delete provides a mock function with given fields: ctx, templateURN
func (*TagTemplateRepository) EXPECT ¶
func (_m *TagTemplateRepository) EXPECT() *TagTemplateRepository_Expecter
func (*TagTemplateRepository) Read ¶
func (_m *TagTemplateRepository) Read(ctx context.Context, templateURN string) ([]tag.Template, error)
Read provides a mock function with given fields: ctx, templateURN
type TagTemplateRepository_Create_Call ¶
TagTemplateRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*TagTemplateRepository_Create_Call) Return ¶
func (_c *TagTemplateRepository_Create_Call) Return(_a0 error) *TagTemplateRepository_Create_Call
func (*TagTemplateRepository_Create_Call) Run ¶
func (_c *TagTemplateRepository_Create_Call) Run(run func(ctx context.Context, template *tag.Template)) *TagTemplateRepository_Create_Call
func (*TagTemplateRepository_Create_Call) RunAndReturn ¶ added in v0.5.3
func (_c *TagTemplateRepository_Create_Call) RunAndReturn(run func(context.Context, *tag.Template) error) *TagTemplateRepository_Create_Call
type TagTemplateRepository_Delete_Call ¶
TagTemplateRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*TagTemplateRepository_Delete_Call) Return ¶
func (_c *TagTemplateRepository_Delete_Call) Return(_a0 error) *TagTemplateRepository_Delete_Call
func (*TagTemplateRepository_Delete_Call) Run ¶
func (_c *TagTemplateRepository_Delete_Call) Run(run func(ctx context.Context, templateURN string)) *TagTemplateRepository_Delete_Call
func (*TagTemplateRepository_Delete_Call) RunAndReturn ¶ added in v0.5.3
func (_c *TagTemplateRepository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *TagTemplateRepository_Delete_Call
type TagTemplateRepository_Expecter ¶
type TagTemplateRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*TagTemplateRepository_Expecter) Create ¶
func (_e *TagTemplateRepository_Expecter) Create(ctx interface{}, template interface{}) *TagTemplateRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- template *tag.Template
func (*TagTemplateRepository_Expecter) Delete ¶
func (_e *TagTemplateRepository_Expecter) Delete(ctx interface{}, templateURN interface{}) *TagTemplateRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- templateURN string
func (*TagTemplateRepository_Expecter) Read ¶
func (_e *TagTemplateRepository_Expecter) Read(ctx interface{}, templateURN interface{}) *TagTemplateRepository_Read_Call
Read is a helper method to define mock.On call
- ctx context.Context
- templateURN string
func (*TagTemplateRepository_Expecter) ReadAll ¶
func (_e *TagTemplateRepository_Expecter) ReadAll(ctx interface{}) *TagTemplateRepository_ReadAll_Call
ReadAll is a helper method to define mock.On call
- ctx context.Context
func (*TagTemplateRepository_Expecter) Update ¶
func (_e *TagTemplateRepository_Expecter) Update(ctx interface{}, templateURN interface{}, template interface{}) *TagTemplateRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- templateURN string
- template *tag.Template
type TagTemplateRepository_ReadAll_Call ¶
TagTemplateRepository_ReadAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAll'
func (*TagTemplateRepository_ReadAll_Call) Return ¶
func (_c *TagTemplateRepository_ReadAll_Call) Return(_a0 []tag.Template, _a1 error) *TagTemplateRepository_ReadAll_Call
func (*TagTemplateRepository_ReadAll_Call) Run ¶
func (_c *TagTemplateRepository_ReadAll_Call) Run(run func(ctx context.Context)) *TagTemplateRepository_ReadAll_Call
func (*TagTemplateRepository_ReadAll_Call) RunAndReturn ¶ added in v0.5.3
func (_c *TagTemplateRepository_ReadAll_Call) RunAndReturn(run func(context.Context) ([]tag.Template, error)) *TagTemplateRepository_ReadAll_Call
type TagTemplateRepository_Read_Call ¶
TagTemplateRepository_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*TagTemplateRepository_Read_Call) Return ¶
func (_c *TagTemplateRepository_Read_Call) Return(_a0 []tag.Template, _a1 error) *TagTemplateRepository_Read_Call
func (*TagTemplateRepository_Read_Call) Run ¶
func (_c *TagTemplateRepository_Read_Call) Run(run func(ctx context.Context, templateURN string)) *TagTemplateRepository_Read_Call
func (*TagTemplateRepository_Read_Call) RunAndReturn ¶ added in v0.5.3
func (_c *TagTemplateRepository_Read_Call) RunAndReturn(run func(context.Context, string) ([]tag.Template, error)) *TagTemplateRepository_Read_Call
type TagTemplateRepository_Update_Call ¶
TagTemplateRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*TagTemplateRepository_Update_Call) Return ¶
func (_c *TagTemplateRepository_Update_Call) Return(_a0 error) *TagTemplateRepository_Update_Call
func (*TagTemplateRepository_Update_Call) Run ¶
func (_c *TagTemplateRepository_Update_Call) Run(run func(ctx context.Context, templateURN string, template *tag.Template)) *TagTemplateRepository_Update_Call
func (*TagTemplateRepository_Update_Call) RunAndReturn ¶ added in v0.5.3
func (_c *TagTemplateRepository_Update_Call) RunAndReturn(run func(context.Context, string, *tag.Template) error) *TagTemplateRepository_Update_Call