Documentation ¶
Index ¶
- type NamespaceService
- func (_m *NamespaceService) Create(_a0 context.Context, _a1 *namespace.Namespace) error
- func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error
- func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
- func (_m *NamespaceService) Get(_a0 context.Context, _a1 uint64) (*namespace.Namespace, error)
- func (_m *NamespaceService) List(_a0 context.Context) ([]namespace.Namespace, error)
- func (_m *NamespaceService) Update(_a0 context.Context, _a1 *namespace.Namespace) error
- type NamespaceService_Create_Call
- type NamespaceService_Delete_Call
- type NamespaceService_Expecter
- func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call
- func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call
- func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call
- func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call
- func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call
- type NamespaceService_Get_Call
- type NamespaceService_List_Call
- type NamespaceService_Update_Call
- type RuleRepository
- func (_m *RuleRepository) Commit(ctx context.Context) error
- func (_m *RuleRepository) EXPECT() *RuleRepository_Expecter
- func (_m *RuleRepository) List(_a0 context.Context, _a1 rule.Filter) ([]rule.Rule, error)
- func (_m *RuleRepository) Rollback(ctx context.Context, err error) error
- func (_m *RuleRepository) Upsert(_a0 context.Context, _a1 *rule.Rule) error
- func (_m *RuleRepository) WithTransaction(ctx context.Context) context.Context
- type RuleRepository_Commit_Call
- type RuleRepository_Expecter
- func (_e *RuleRepository_Expecter) Commit(ctx interface{}) *RuleRepository_Commit_Call
- func (_e *RuleRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *RuleRepository_List_Call
- func (_e *RuleRepository_Expecter) Rollback(ctx interface{}, err interface{}) *RuleRepository_Rollback_Call
- func (_e *RuleRepository_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *RuleRepository_Upsert_Call
- func (_e *RuleRepository_Expecter) WithTransaction(ctx interface{}) *RuleRepository_WithTransaction_Call
- type RuleRepository_List_Call
- type RuleRepository_Rollback_Call
- type RuleRepository_Upsert_Call
- type RuleRepository_WithTransaction_Call
- type RuleUploader
- type RuleUploader_Expecter
- type RuleUploader_UpsertRule_Call
- type TemplateService
- func (_m *TemplateService) Delete(_a0 context.Context, _a1 string) error
- func (_m *TemplateService) EXPECT() *TemplateService_Expecter
- func (_m *TemplateService) GetByName(_a0 context.Context, _a1 string) (*template.Template, error)
- func (_m *TemplateService) List(_a0 context.Context, _a1 template.Filter) ([]template.Template, error)
- func (_m *TemplateService) Upsert(_a0 context.Context, _a1 *template.Template) error
- type TemplateService_Delete_Call
- type TemplateService_Expecter
- func (_e *TemplateService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateService_Delete_Call
- func (_e *TemplateService_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateService_GetByName_Call
- func (_e *TemplateService_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateService_List_Call
- func (_e *TemplateService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateService_Upsert_Call
- type TemplateService_GetByName_Call
- type TemplateService_List_Call
- type TemplateService_Upsert_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceService ¶
NamespaceService is an autogenerated mock type for the NamespaceService type
func NewNamespaceService ¶
func NewNamespaceService(t mockConstructorTestingTNewNamespaceService) *NamespaceService
NewNamespaceService creates a new instance of NamespaceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NamespaceService) Delete ¶
func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error
Delete provides a mock function with given fields: _a0, _a1
func (*NamespaceService) EXPECT ¶
func (_m *NamespaceService) EXPECT() *NamespaceService_Expecter
type NamespaceService_Create_Call ¶
NamespaceService_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*NamespaceService_Create_Call) Return ¶
func (_c *NamespaceService_Create_Call) Return(_a0 error) *NamespaceService_Create_Call
func (*NamespaceService_Create_Call) Run ¶
func (_c *NamespaceService_Create_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Create_Call
type NamespaceService_Delete_Call ¶
NamespaceService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*NamespaceService_Delete_Call) Return ¶
func (_c *NamespaceService_Delete_Call) Return(_a0 error) *NamespaceService_Delete_Call
func (*NamespaceService_Delete_Call) Run ¶
func (_c *NamespaceService_Delete_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Delete_Call
type NamespaceService_Expecter ¶
type NamespaceService_Expecter struct {
// contains filtered or unexported fields
}
func (*NamespaceService_Expecter) Create ¶
func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 *namespace.Namespace
func (*NamespaceService_Expecter) Delete ¶
func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*NamespaceService_Expecter) Get ¶
func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call
Get is a helper method to define mock.On call
- _a0 context.Context
- _a1 uint64
func (*NamespaceService_Expecter) List ¶
func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
func (*NamespaceService_Expecter) Update ¶
func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call
Update is a helper method to define mock.On call
- _a0 context.Context
- _a1 *namespace.Namespace
type NamespaceService_Get_Call ¶
NamespaceService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*NamespaceService_Get_Call) Return ¶
func (_c *NamespaceService_Get_Call) Return(_a0 *namespace.Namespace, _a1 error) *NamespaceService_Get_Call
func (*NamespaceService_Get_Call) Run ¶
func (_c *NamespaceService_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *NamespaceService_Get_Call
type NamespaceService_List_Call ¶
NamespaceService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*NamespaceService_List_Call) Return ¶
func (_c *NamespaceService_List_Call) Return(_a0 []namespace.Namespace, _a1 error) *NamespaceService_List_Call
func (*NamespaceService_List_Call) Run ¶
func (_c *NamespaceService_List_Call) Run(run func(_a0 context.Context)) *NamespaceService_List_Call
type NamespaceService_Update_Call ¶
NamespaceService_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*NamespaceService_Update_Call) Return ¶
func (_c *NamespaceService_Update_Call) Return(_a0 error) *NamespaceService_Update_Call
func (*NamespaceService_Update_Call) Run ¶
func (_c *NamespaceService_Update_Call) Run(run func(_a0 context.Context, _a1 *namespace.Namespace)) *NamespaceService_Update_Call
type RuleRepository ¶
RuleRepository is an autogenerated mock type for the Repository type
func NewRuleRepository ¶
func NewRuleRepository(t mockConstructorTestingTNewRuleRepository) *RuleRepository
NewRuleRepository creates a new instance of RuleRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RuleRepository) Commit ¶
func (_m *RuleRepository) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*RuleRepository) EXPECT ¶
func (_m *RuleRepository) EXPECT() *RuleRepository_Expecter
func (*RuleRepository) Rollback ¶
func (_m *RuleRepository) Rollback(ctx context.Context, err error) error
Rollback provides a mock function with given fields: ctx, err
func (*RuleRepository) WithTransaction ¶
func (_m *RuleRepository) WithTransaction(ctx context.Context) context.Context
WithTransaction provides a mock function with given fields: ctx
type RuleRepository_Commit_Call ¶
RuleRepository_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*RuleRepository_Commit_Call) Return ¶
func (_c *RuleRepository_Commit_Call) Return(_a0 error) *RuleRepository_Commit_Call
func (*RuleRepository_Commit_Call) Run ¶
func (_c *RuleRepository_Commit_Call) Run(run func(ctx context.Context)) *RuleRepository_Commit_Call
type RuleRepository_Expecter ¶
type RuleRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*RuleRepository_Expecter) Commit ¶
func (_e *RuleRepository_Expecter) Commit(ctx interface{}) *RuleRepository_Commit_Call
Commit is a helper method to define mock.On call
- ctx context.Context
func (*RuleRepository_Expecter) List ¶
func (_e *RuleRepository_Expecter) List(_a0 interface{}, _a1 interface{}) *RuleRepository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 rule.Filter
func (*RuleRepository_Expecter) Rollback ¶
func (_e *RuleRepository_Expecter) Rollback(ctx interface{}, err interface{}) *RuleRepository_Rollback_Call
Rollback is a helper method to define mock.On call
- ctx context.Context
- err error
func (*RuleRepository_Expecter) Upsert ¶
func (_e *RuleRepository_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *RuleRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 *rule.Rule
func (*RuleRepository_Expecter) WithTransaction ¶
func (_e *RuleRepository_Expecter) WithTransaction(ctx interface{}) *RuleRepository_WithTransaction_Call
WithTransaction is a helper method to define mock.On call
- ctx context.Context
type RuleRepository_List_Call ¶
RuleRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*RuleRepository_List_Call) Return ¶
func (_c *RuleRepository_List_Call) Return(_a0 []rule.Rule, _a1 error) *RuleRepository_List_Call
func (*RuleRepository_List_Call) Run ¶
func (_c *RuleRepository_List_Call) Run(run func(_a0 context.Context, _a1 rule.Filter)) *RuleRepository_List_Call
type RuleRepository_Rollback_Call ¶
RuleRepository_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*RuleRepository_Rollback_Call) Return ¶
func (_c *RuleRepository_Rollback_Call) Return(_a0 error) *RuleRepository_Rollback_Call
func (*RuleRepository_Rollback_Call) Run ¶
func (_c *RuleRepository_Rollback_Call) Run(run func(ctx context.Context, err error)) *RuleRepository_Rollback_Call
type RuleRepository_Upsert_Call ¶
RuleRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*RuleRepository_Upsert_Call) Return ¶
func (_c *RuleRepository_Upsert_Call) Return(_a0 error) *RuleRepository_Upsert_Call
func (*RuleRepository_Upsert_Call) Run ¶
func (_c *RuleRepository_Upsert_Call) Run(run func(_a0 context.Context, _a1 *rule.Rule)) *RuleRepository_Upsert_Call
type RuleRepository_WithTransaction_Call ¶
RuleRepository_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'
func (*RuleRepository_WithTransaction_Call) Return ¶
func (_c *RuleRepository_WithTransaction_Call) Return(_a0 context.Context) *RuleRepository_WithTransaction_Call
func (*RuleRepository_WithTransaction_Call) Run ¶
func (_c *RuleRepository_WithTransaction_Call) Run(run func(ctx context.Context)) *RuleRepository_WithTransaction_Call
type RuleUploader ¶ added in v0.5.0
RuleUploader is an autogenerated mock type for the RuleUploader type
func NewRuleUploader ¶ added in v0.5.0
func NewRuleUploader(t mockConstructorTestingTNewRuleUploader) *RuleUploader
NewRuleUploader creates a new instance of RuleUploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RuleUploader) EXPECT ¶ added in v0.5.0
func (_m *RuleUploader) EXPECT() *RuleUploader_Expecter
func (*RuleUploader) UpsertRule ¶ added in v0.5.0
func (_m *RuleUploader) UpsertRule(ctx context.Context, namespaceURN string, prov provider.Provider, rl *rule.Rule, templateToUpdate *template.Template) error
UpsertRule provides a mock function with given fields: ctx, namespaceURN, prov, rl, templateToUpdate
type RuleUploader_Expecter ¶ added in v0.5.0
type RuleUploader_Expecter struct {
// contains filtered or unexported fields
}
func (*RuleUploader_Expecter) UpsertRule ¶ added in v0.5.0
func (_e *RuleUploader_Expecter) UpsertRule(ctx interface{}, namespaceURN interface{}, prov interface{}, rl interface{}, templateToUpdate interface{}) *RuleUploader_UpsertRule_Call
UpsertRule is a helper method to define mock.On call
- ctx context.Context
- namespaceURN string
- prov provider.Provider
- rl *rule.Rule
- templateToUpdate *template.Template
type RuleUploader_UpsertRule_Call ¶ added in v0.5.0
RuleUploader_UpsertRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertRule'
func (*RuleUploader_UpsertRule_Call) Return ¶ added in v0.5.0
func (_c *RuleUploader_UpsertRule_Call) Return(_a0 error) *RuleUploader_UpsertRule_Call
type TemplateService ¶
TemplateService is an autogenerated mock type for the TemplateService type
func NewTemplateService ¶
func NewTemplateService(t mockConstructorTestingTNewTemplateService) *TemplateService
NewTemplateService creates a new instance of TemplateService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TemplateService) Delete ¶
func (_m *TemplateService) Delete(_a0 context.Context, _a1 string) error
Delete provides a mock function with given fields: _a0, _a1
func (*TemplateService) EXPECT ¶
func (_m *TemplateService) EXPECT() *TemplateService_Expecter
type TemplateService_Delete_Call ¶
TemplateService_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*TemplateService_Delete_Call) Return ¶
func (_c *TemplateService_Delete_Call) Return(_a0 error) *TemplateService_Delete_Call
func (*TemplateService_Delete_Call) Run ¶
func (_c *TemplateService_Delete_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateService_Delete_Call
type TemplateService_Expecter ¶
type TemplateService_Expecter struct {
// contains filtered or unexported fields
}
func (*TemplateService_Expecter) Delete ¶
func (_e *TemplateService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *TemplateService_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*TemplateService_Expecter) GetByName ¶
func (_e *TemplateService_Expecter) GetByName(_a0 interface{}, _a1 interface{}) *TemplateService_GetByName_Call
GetByName is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*TemplateService_Expecter) List ¶
func (_e *TemplateService_Expecter) List(_a0 interface{}, _a1 interface{}) *TemplateService_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 template.Filter
func (*TemplateService_Expecter) Upsert ¶
func (_e *TemplateService_Expecter) Upsert(_a0 interface{}, _a1 interface{}) *TemplateService_Upsert_Call
Upsert is a helper method to define mock.On call
- _a0 context.Context
- _a1 *template.Template
type TemplateService_GetByName_Call ¶
TemplateService_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*TemplateService_GetByName_Call) Return ¶
func (_c *TemplateService_GetByName_Call) Return(_a0 *template.Template, _a1 error) *TemplateService_GetByName_Call
func (*TemplateService_GetByName_Call) Run ¶
func (_c *TemplateService_GetByName_Call) Run(run func(_a0 context.Context, _a1 string)) *TemplateService_GetByName_Call
type TemplateService_List_Call ¶
TemplateService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*TemplateService_List_Call) Return ¶
func (_c *TemplateService_List_Call) Return(_a0 []template.Template, _a1 error) *TemplateService_List_Call
func (*TemplateService_List_Call) Run ¶
func (_c *TemplateService_List_Call) Run(run func(_a0 context.Context, _a1 template.Filter)) *TemplateService_List_Call
type TemplateService_Upsert_Call ¶
TemplateService_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*TemplateService_Upsert_Call) Return ¶
func (_c *TemplateService_Upsert_Call) Return(_a0 error) *TemplateService_Upsert_Call
func (*TemplateService_Upsert_Call) Run ¶
func (_c *TemplateService_Upsert_Call) Run(run func(_a0 context.Context, _a1 *template.Template)) *TemplateService_Upsert_Call