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