Documentation ¶
Index ¶
- type TemplateRepository
- func (_m *TemplateRepository) Delete(_a0 context.Context, _a1 string) error
- func (_m *TemplateRepository) EXPECT() *TemplateRepository_Expecter
- func (_m *TemplateRepository) GetByName(_a0 context.Context, _a1 string) (*template.Template, error)
- func (_m *TemplateRepository) List(_a0 context.Context, _a1 template.Filter) ([]template.Template, error)
- func (_m *TemplateRepository) Upsert(_a0 context.Context, _a1 *template.Template) error
- type TemplateRepository_Delete_Call
- func (_c *TemplateRepository_Delete_Call) Return(_a0 error) *TemplateRepository_Delete_Call
- func (_c *TemplateRepository_Delete_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateRepository_Delete_Call
- func (_c *TemplateRepository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *TemplateRepository_Delete_Call
- type TemplateRepository_Expecter
- func (_e *TemplateRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateRepository_Delete_Call
- func (_e *TemplateRepository_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateRepository_GetByName_Call
- func (_e *TemplateRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateRepository_List_Call
- func (_e *TemplateRepository_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateRepository_Upsert_Call
- type TemplateRepository_GetByName_Call
- func (_c *TemplateRepository_GetByName_Call) Return(_a0 *template.Template, _a1 error) *TemplateRepository_GetByName_Call
- func (_c *TemplateRepository_GetByName_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateRepository_GetByName_Call
- func (_c *TemplateRepository_GetByName_Call) RunAndReturn(run func(context.Context, string) (*template.Template, error)) *TemplateRepository_GetByName_Call
- type TemplateRepository_List_Call
- func (_c *TemplateRepository_List_Call) Return(_a0 []template.Template, _a1 error) *TemplateRepository_List_Call
- func (_c *TemplateRepository_List_Call) Run(run func(_a0 context.Context, _a1 template.Filter)) *TemplateRepository_List_Call
- func (_c *TemplateRepository_List_Call) RunAndReturn(run func(context.Context, template.Filter) ([]template.Template, error)) *TemplateRepository_List_Call
- type TemplateRepository_Upsert_Call
- func (_c *TemplateRepository_Upsert_Call) Return(_a0 error) *TemplateRepository_Upsert_Call
- func (_c *TemplateRepository_Upsert_Call) Run(run func(_a0 context.Context, _a1 *template.Template)) *TemplateRepository_Upsert_Call
- func (_c *TemplateRepository_Upsert_Call) RunAndReturn(run func(context.Context, *template.Template) error) *TemplateRepository_Upsert_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateRepository ¶
TemplateRepository is an autogenerated mock type for the Repository type
func NewTemplateRepository ¶
func NewTemplateRepository(t interface { mock.TestingT Cleanup(func()) }) *TemplateRepository
NewTemplateRepository creates a new instance of TemplateRepository. 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 (*TemplateRepository) Delete ¶
func (_m *TemplateRepository) Delete(_a0 context.Context, _a1 string) error
Delete provides a mock function with given fields: _a0, _a1
func (*TemplateRepository) EXPECT ¶
func (_m *TemplateRepository) EXPECT() *TemplateRepository_Expecter
func (*TemplateRepository) GetByName ¶
func (_m *TemplateRepository) GetByName(_a0 context.Context, _a1 string) (*template.Template, error)
GetByName provides a mock function with given fields: _a0, _a1
type TemplateRepository_Delete_Call ¶
TemplateRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*TemplateRepository_Delete_Call) Return ¶
func (_c *TemplateRepository_Delete_Call) Return(_a0 error) *TemplateRepository_Delete_Call
func (*TemplateRepository_Delete_Call) Run ¶
func (_c *TemplateRepository_Delete_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateRepository_Delete_Call
func (*TemplateRepository_Delete_Call) RunAndReturn ¶ added in v0.6.1
func (_c *TemplateRepository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *TemplateRepository_Delete_Call
type TemplateRepository_Expecter ¶
type TemplateRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*TemplateRepository_Expecter) Delete ¶
func (_e *TemplateRepository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateRepository_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*TemplateRepository_Expecter) GetByName ¶
func (_e *TemplateRepository_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateRepository_GetByName_Call
GetByName is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*TemplateRepository_Expecter) List ¶
func (_e *TemplateRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateRepository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 template.Filter
func (*TemplateRepository_Expecter) Upsert ¶
func (_e *TemplateRepository_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 *template.Template
type TemplateRepository_GetByName_Call ¶
TemplateRepository_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*TemplateRepository_GetByName_Call) Return ¶
func (_c *TemplateRepository_GetByName_Call) Return(_a0 *template.Template, _a1 error) *TemplateRepository_GetByName_Call
func (*TemplateRepository_GetByName_Call) Run ¶
func (_c *TemplateRepository_GetByName_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateRepository_GetByName_Call
func (*TemplateRepository_GetByName_Call) RunAndReturn ¶ added in v0.6.1
func (_c *TemplateRepository_GetByName_Call) RunAndReturn(run func(context.Context, string) (*template.Template, error)) *TemplateRepository_GetByName_Call
type TemplateRepository_List_Call ¶
TemplateRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*TemplateRepository_List_Call) Return ¶
func (_c *TemplateRepository_List_Call) Return(_a0 []template.Template, _a1 error) *TemplateRepository_List_Call
func (*TemplateRepository_List_Call) Run ¶
func (_c *TemplateRepository_List_Call) Run(run func(_a0 context.Context, _a1 template.Filter)) *TemplateRepository_List_Call
func (*TemplateRepository_List_Call) RunAndReturn ¶ added in v0.6.1
func (_c *TemplateRepository_List_Call) RunAndReturn(run func(context.Context, template.Filter) ([]template.Template, error)) *TemplateRepository_List_Call
type TemplateRepository_Upsert_Call ¶
TemplateRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*TemplateRepository_Upsert_Call) Return ¶
func (_c *TemplateRepository_Upsert_Call) Return(_a0 error) *TemplateRepository_Upsert_Call
func (*TemplateRepository_Upsert_Call) Run ¶
func (_c *TemplateRepository_Upsert_Call) Run(run func(_a0 context.Context, _a1 *template.Template)) *TemplateRepository_Upsert_Call
func (*TemplateRepository_Upsert_Call) RunAndReturn ¶ added in v0.6.1
func (_c *TemplateRepository_Upsert_Call) RunAndReturn(run func(context.Context, *template.Template) error) *TemplateRepository_Upsert_Call