Documentation ¶
Index ¶
- type BackendMock
- type BackendMock_Expecter
- type BackendMock_URL_Call
- type ExecutorMock
- type ExecutorMock_Execute_Call
- func (_c *ExecutorMock_Execute_Call) Return(_a0 rule.Backend, _a1 error) *ExecutorMock_Execute_Call
- func (_c *ExecutorMock_Execute_Call) Run(run func(ctx heimdall.Context)) *ExecutorMock_Execute_Call
- func (_c *ExecutorMock_Execute_Call) RunAndReturn(run func(heimdall.Context) (rule.Backend, error)) *ExecutorMock_Execute_Call
- type ExecutorMock_Expecter
- type FactoryMock
- type FactoryMock_CreateRule_Call
- func (_c *FactoryMock_CreateRule_Call) Return(_a0 rule.Rule, _a1 error) *FactoryMock_CreateRule_Call
- func (_c *FactoryMock_CreateRule_Call) Run(run func(version string, srcID string, ruleConfig config.Rule)) *FactoryMock_CreateRule_Call
- func (_c *FactoryMock_CreateRule_Call) RunAndReturn(run func(string, string, config.Rule) (rule.Rule, error)) *FactoryMock_CreateRule_Call
- type FactoryMock_DefaultRule_Call
- type FactoryMock_Expecter
- type FactoryMock_HasDefaultRule_Call
- type RepositoryMock
- func (_m *RepositoryMock) AddRuleSet(srcID string, rules []rule.Rule) error
- func (_m *RepositoryMock) DeleteRuleSet(srcID string) error
- func (_m *RepositoryMock) EXPECT() *RepositoryMock_Expecter
- func (_m *RepositoryMock) FindRule(ctx heimdall.Context) (rule.Rule, error)
- func (_m *RepositoryMock) UpdateRuleSet(srcID string, rules []rule.Rule) error
- type RepositoryMock_AddRuleSet_Call
- func (_c *RepositoryMock_AddRuleSet_Call) Return(_a0 error) *RepositoryMock_AddRuleSet_Call
- func (_c *RepositoryMock_AddRuleSet_Call) Run(run func(srcID string, rules []rule.Rule)) *RepositoryMock_AddRuleSet_Call
- func (_c *RepositoryMock_AddRuleSet_Call) RunAndReturn(run func(string, []rule.Rule) error) *RepositoryMock_AddRuleSet_Call
- type RepositoryMock_DeleteRuleSet_Call
- func (_c *RepositoryMock_DeleteRuleSet_Call) Return(_a0 error) *RepositoryMock_DeleteRuleSet_Call
- func (_c *RepositoryMock_DeleteRuleSet_Call) Run(run func(srcID string)) *RepositoryMock_DeleteRuleSet_Call
- func (_c *RepositoryMock_DeleteRuleSet_Call) RunAndReturn(run func(string) error) *RepositoryMock_DeleteRuleSet_Call
- type RepositoryMock_Expecter
- func (_e *RepositoryMock_Expecter) AddRuleSet(srcID interface{}, rules interface{}) *RepositoryMock_AddRuleSet_Call
- func (_e *RepositoryMock_Expecter) DeleteRuleSet(srcID interface{}) *RepositoryMock_DeleteRuleSet_Call
- func (_e *RepositoryMock_Expecter) FindRule(ctx interface{}) *RepositoryMock_FindRule_Call
- func (_e *RepositoryMock_Expecter) UpdateRuleSet(srcID interface{}, rules interface{}) *RepositoryMock_UpdateRuleSet_Call
- type RepositoryMock_FindRule_Call
- func (_c *RepositoryMock_FindRule_Call) Return(_a0 rule.Rule, _a1 error) *RepositoryMock_FindRule_Call
- func (_c *RepositoryMock_FindRule_Call) Run(run func(ctx heimdall.Context)) *RepositoryMock_FindRule_Call
- func (_c *RepositoryMock_FindRule_Call) RunAndReturn(run func(heimdall.Context) (rule.Rule, error)) *RepositoryMock_FindRule_Call
- type RepositoryMock_UpdateRuleSet_Call
- func (_c *RepositoryMock_UpdateRuleSet_Call) Return(_a0 error) *RepositoryMock_UpdateRuleSet_Call
- func (_c *RepositoryMock_UpdateRuleSet_Call) Run(run func(srcID string, rules []rule.Rule)) *RepositoryMock_UpdateRuleSet_Call
- func (_c *RepositoryMock_UpdateRuleSet_Call) RunAndReturn(run func(string, []rule.Rule) error) *RepositoryMock_UpdateRuleSet_Call
- type RuleMock
- func (_m *RuleMock) AllowsBacktracking() bool
- func (_m *RuleMock) EXPECT() *RuleMock_Expecter
- func (_m *RuleMock) EqualTo(other rule.Rule) bool
- func (_m *RuleMock) Execute(ctx heimdall.Context) (rule.Backend, error)
- func (_m *RuleMock) ID() string
- func (_m *RuleMock) Routes() []rule.Route
- func (_m *RuleMock) SameAs(other rule.Rule) bool
- func (_m *RuleMock) SrcID() string
- type RuleMock_AllowsBacktracking_Call
- type RuleMock_EqualTo_Call
- type RuleMock_Execute_Call
- func (_c *RuleMock_Execute_Call) Return(_a0 rule.Backend, _a1 error) *RuleMock_Execute_Call
- func (_c *RuleMock_Execute_Call) Run(run func(ctx heimdall.Context)) *RuleMock_Execute_Call
- func (_c *RuleMock_Execute_Call) RunAndReturn(run func(heimdall.Context) (rule.Backend, error)) *RuleMock_Execute_Call
- type RuleMock_Expecter
- func (_e *RuleMock_Expecter) AllowsBacktracking() *RuleMock_AllowsBacktracking_Call
- func (_e *RuleMock_Expecter) EqualTo(other interface{}) *RuleMock_EqualTo_Call
- func (_e *RuleMock_Expecter) Execute(ctx interface{}) *RuleMock_Execute_Call
- func (_e *RuleMock_Expecter) ID() *RuleMock_ID_Call
- func (_e *RuleMock_Expecter) Routes() *RuleMock_Routes_Call
- func (_e *RuleMock_Expecter) SameAs(other interface{}) *RuleMock_SameAs_Call
- func (_e *RuleMock_Expecter) SrcID() *RuleMock_SrcID_Call
- type RuleMock_ID_Call
- type RuleMock_Routes_Call
- type RuleMock_SameAs_Call
- type RuleMock_SrcID_Call
- type RuleSetProcessorMock
- type RuleSetProcessorMock_Expecter
- func (_e *RuleSetProcessorMock_Expecter) OnCreated(ruleSet interface{}) *RuleSetProcessorMock_OnCreated_Call
- func (_e *RuleSetProcessorMock_Expecter) OnDeleted(ruleSet interface{}) *RuleSetProcessorMock_OnDeleted_Call
- func (_e *RuleSetProcessorMock_Expecter) OnUpdated(ruleSet interface{}) *RuleSetProcessorMock_OnUpdated_Call
- type RuleSetProcessorMock_OnCreated_Call
- func (_c *RuleSetProcessorMock_OnCreated_Call) Return(_a0 error) *RuleSetProcessorMock_OnCreated_Call
- func (_c *RuleSetProcessorMock_OnCreated_Call) Run(run func(ruleSet *config.RuleSet)) *RuleSetProcessorMock_OnCreated_Call
- func (_c *RuleSetProcessorMock_OnCreated_Call) RunAndReturn(run func(*config.RuleSet) error) *RuleSetProcessorMock_OnCreated_Call
- type RuleSetProcessorMock_OnDeleted_Call
- func (_c *RuleSetProcessorMock_OnDeleted_Call) Return(_a0 error) *RuleSetProcessorMock_OnDeleted_Call
- func (_c *RuleSetProcessorMock_OnDeleted_Call) Run(run func(ruleSet *config.RuleSet)) *RuleSetProcessorMock_OnDeleted_Call
- func (_c *RuleSetProcessorMock_OnDeleted_Call) RunAndReturn(run func(*config.RuleSet) error) *RuleSetProcessorMock_OnDeleted_Call
- type RuleSetProcessorMock_OnUpdated_Call
- func (_c *RuleSetProcessorMock_OnUpdated_Call) Return(_a0 error) *RuleSetProcessorMock_OnUpdated_Call
- func (_c *RuleSetProcessorMock_OnUpdated_Call) Run(run func(ruleSet *config.RuleSet)) *RuleSetProcessorMock_OnUpdated_Call
- func (_c *RuleSetProcessorMock_OnUpdated_Call) RunAndReturn(run func(*config.RuleSet) error) *RuleSetProcessorMock_OnUpdated_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendMock ¶
BackendMock is an autogenerated mock type for the Backend type
func NewBackendMock ¶
func NewBackendMock(t mockConstructorTestingTNewBackendMock) *BackendMock
NewBackendMock creates a new instance of BackendMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BackendMock) EXPECT ¶
func (_m *BackendMock) EXPECT() *BackendMock_Expecter
func (*BackendMock) URL ¶
func (_m *BackendMock) URL() *url.URL
URL provides a mock function with given fields:
type BackendMock_Expecter ¶
type BackendMock_Expecter struct {
// contains filtered or unexported fields
}
func (*BackendMock_Expecter) URL ¶
func (_e *BackendMock_Expecter) URL() *BackendMock_URL_Call
URL is a helper method to define mock.On call
type BackendMock_URL_Call ¶
BackendMock_URL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'URL'
func (*BackendMock_URL_Call) Return ¶
func (_c *BackendMock_URL_Call) Return(_a0 *url.URL) *BackendMock_URL_Call
func (*BackendMock_URL_Call) Run ¶
func (_c *BackendMock_URL_Call) Run(run func()) *BackendMock_URL_Call
func (*BackendMock_URL_Call) RunAndReturn ¶
func (_c *BackendMock_URL_Call) RunAndReturn(run func() *url.URL) *BackendMock_URL_Call
type ExecutorMock ¶
ExecutorMock is an autogenerated mock type for the Executor type
func NewExecutorMock ¶
func NewExecutorMock(t mockConstructorTestingTNewExecutorMock) *ExecutorMock
NewExecutorMock creates a new instance of ExecutorMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExecutorMock) EXPECT ¶
func (_m *ExecutorMock) EXPECT() *ExecutorMock_Expecter
type ExecutorMock_Execute_Call ¶
ExecutorMock_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*ExecutorMock_Execute_Call) Return ¶
func (_c *ExecutorMock_Execute_Call) Return(_a0 rule.Backend, _a1 error) *ExecutorMock_Execute_Call
func (*ExecutorMock_Execute_Call) Run ¶
func (_c *ExecutorMock_Execute_Call) Run(run func(ctx heimdall.Context)) *ExecutorMock_Execute_Call
func (*ExecutorMock_Execute_Call) RunAndReturn ¶
func (_c *ExecutorMock_Execute_Call) RunAndReturn(run func(heimdall.Context) (rule.Backend, error)) *ExecutorMock_Execute_Call
type ExecutorMock_Expecter ¶
type ExecutorMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ExecutorMock_Expecter) Execute ¶
func (_e *ExecutorMock_Expecter) Execute(ctx interface{}) *ExecutorMock_Execute_Call
Execute is a helper method to define mock.On call
- ctx heimdall.Context
type FactoryMock ¶
FactoryMock is an autogenerated mock type for the Factory type
func NewFactoryMock ¶
func NewFactoryMock(t interface { mock.TestingT Cleanup(func()) }) *FactoryMock
NewFactoryMock creates a new instance of FactoryMock. 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 (*FactoryMock) CreateRule ¶
func (_m *FactoryMock) CreateRule(version string, srcID string, ruleConfig config.Rule) (rule.Rule, error)
CreateRule provides a mock function with given fields: version, srcID, ruleConfig
func (*FactoryMock) DefaultRule ¶
func (_m *FactoryMock) DefaultRule() rule.Rule
DefaultRule provides a mock function with given fields:
func (*FactoryMock) EXPECT ¶
func (_m *FactoryMock) EXPECT() *FactoryMock_Expecter
func (*FactoryMock) HasDefaultRule ¶
func (_m *FactoryMock) HasDefaultRule() bool
HasDefaultRule provides a mock function with given fields:
type FactoryMock_CreateRule_Call ¶
FactoryMock_CreateRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRule'
func (*FactoryMock_CreateRule_Call) Return ¶
func (_c *FactoryMock_CreateRule_Call) Return(_a0 rule.Rule, _a1 error) *FactoryMock_CreateRule_Call
func (*FactoryMock_CreateRule_Call) Run ¶
func (_c *FactoryMock_CreateRule_Call) Run(run func(version string, srcID string, ruleConfig config.Rule)) *FactoryMock_CreateRule_Call
func (*FactoryMock_CreateRule_Call) RunAndReturn ¶
func (_c *FactoryMock_CreateRule_Call) RunAndReturn(run func(string, string, config.Rule) (rule.Rule, error)) *FactoryMock_CreateRule_Call
type FactoryMock_DefaultRule_Call ¶
FactoryMock_DefaultRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DefaultRule'
func (*FactoryMock_DefaultRule_Call) Return ¶
func (_c *FactoryMock_DefaultRule_Call) Return(_a0 rule.Rule) *FactoryMock_DefaultRule_Call
func (*FactoryMock_DefaultRule_Call) Run ¶
func (_c *FactoryMock_DefaultRule_Call) Run(run func()) *FactoryMock_DefaultRule_Call
func (*FactoryMock_DefaultRule_Call) RunAndReturn ¶
func (_c *FactoryMock_DefaultRule_Call) RunAndReturn(run func() rule.Rule) *FactoryMock_DefaultRule_Call
type FactoryMock_Expecter ¶
type FactoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*FactoryMock_Expecter) CreateRule ¶
func (_e *FactoryMock_Expecter) CreateRule(version interface{}, srcID interface{}, ruleConfig interface{}) *FactoryMock_CreateRule_Call
CreateRule is a helper method to define mock.On call
- version string
- srcID string
- ruleConfig config.Rule
func (*FactoryMock_Expecter) DefaultRule ¶
func (_e *FactoryMock_Expecter) DefaultRule() *FactoryMock_DefaultRule_Call
DefaultRule is a helper method to define mock.On call
func (*FactoryMock_Expecter) HasDefaultRule ¶
func (_e *FactoryMock_Expecter) HasDefaultRule() *FactoryMock_HasDefaultRule_Call
HasDefaultRule is a helper method to define mock.On call
type FactoryMock_HasDefaultRule_Call ¶
FactoryMock_HasDefaultRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasDefaultRule'
func (*FactoryMock_HasDefaultRule_Call) Return ¶
func (_c *FactoryMock_HasDefaultRule_Call) Return(_a0 bool) *FactoryMock_HasDefaultRule_Call
func (*FactoryMock_HasDefaultRule_Call) Run ¶
func (_c *FactoryMock_HasDefaultRule_Call) Run(run func()) *FactoryMock_HasDefaultRule_Call
func (*FactoryMock_HasDefaultRule_Call) RunAndReturn ¶
func (_c *FactoryMock_HasDefaultRule_Call) RunAndReturn(run func() bool) *FactoryMock_HasDefaultRule_Call
type RepositoryMock ¶
RepositoryMock is an autogenerated mock type for the Repository type
func NewRepositoryMock ¶
func NewRepositoryMock(t interface { mock.TestingT Cleanup(func()) }) *RepositoryMock
NewRepositoryMock creates a new instance of RepositoryMock. 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 (*RepositoryMock) AddRuleSet ¶
func (_m *RepositoryMock) AddRuleSet(srcID string, rules []rule.Rule) error
AddRuleSet provides a mock function with given fields: srcID, rules
func (*RepositoryMock) DeleteRuleSet ¶
func (_m *RepositoryMock) DeleteRuleSet(srcID string) error
DeleteRuleSet provides a mock function with given fields: srcID
func (*RepositoryMock) EXPECT ¶
func (_m *RepositoryMock) EXPECT() *RepositoryMock_Expecter
func (*RepositoryMock) UpdateRuleSet ¶
func (_m *RepositoryMock) UpdateRuleSet(srcID string, rules []rule.Rule) error
UpdateRuleSet provides a mock function with given fields: srcID, rules
type RepositoryMock_AddRuleSet_Call ¶
RepositoryMock_AddRuleSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRuleSet'
func (*RepositoryMock_AddRuleSet_Call) Return ¶
func (_c *RepositoryMock_AddRuleSet_Call) Return(_a0 error) *RepositoryMock_AddRuleSet_Call
func (*RepositoryMock_AddRuleSet_Call) Run ¶
func (_c *RepositoryMock_AddRuleSet_Call) Run(run func(srcID string, rules []rule.Rule)) *RepositoryMock_AddRuleSet_Call
func (*RepositoryMock_AddRuleSet_Call) RunAndReturn ¶
func (_c *RepositoryMock_AddRuleSet_Call) RunAndReturn(run func(string, []rule.Rule) error) *RepositoryMock_AddRuleSet_Call
type RepositoryMock_DeleteRuleSet_Call ¶
RepositoryMock_DeleteRuleSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRuleSet'
func (*RepositoryMock_DeleteRuleSet_Call) Return ¶
func (_c *RepositoryMock_DeleteRuleSet_Call) Return(_a0 error) *RepositoryMock_DeleteRuleSet_Call
func (*RepositoryMock_DeleteRuleSet_Call) Run ¶
func (_c *RepositoryMock_DeleteRuleSet_Call) Run(run func(srcID string)) *RepositoryMock_DeleteRuleSet_Call
func (*RepositoryMock_DeleteRuleSet_Call) RunAndReturn ¶
func (_c *RepositoryMock_DeleteRuleSet_Call) RunAndReturn(run func(string) error) *RepositoryMock_DeleteRuleSet_Call
type RepositoryMock_Expecter ¶
type RepositoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RepositoryMock_Expecter) AddRuleSet ¶
func (_e *RepositoryMock_Expecter) AddRuleSet(srcID interface{}, rules interface{}) *RepositoryMock_AddRuleSet_Call
AddRuleSet is a helper method to define mock.On call
- srcID string
- rules []rule.Rule
func (*RepositoryMock_Expecter) DeleteRuleSet ¶
func (_e *RepositoryMock_Expecter) DeleteRuleSet(srcID interface{}) *RepositoryMock_DeleteRuleSet_Call
DeleteRuleSet is a helper method to define mock.On call
- srcID string
func (*RepositoryMock_Expecter) FindRule ¶
func (_e *RepositoryMock_Expecter) FindRule(ctx interface{}) *RepositoryMock_FindRule_Call
FindRule is a helper method to define mock.On call
- ctx heimdall.Context
func (*RepositoryMock_Expecter) UpdateRuleSet ¶
func (_e *RepositoryMock_Expecter) UpdateRuleSet(srcID interface{}, rules interface{}) *RepositoryMock_UpdateRuleSet_Call
UpdateRuleSet is a helper method to define mock.On call
- srcID string
- rules []rule.Rule
type RepositoryMock_FindRule_Call ¶
RepositoryMock_FindRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindRule'
func (*RepositoryMock_FindRule_Call) Return ¶
func (_c *RepositoryMock_FindRule_Call) Return(_a0 rule.Rule, _a1 error) *RepositoryMock_FindRule_Call
func (*RepositoryMock_FindRule_Call) Run ¶
func (_c *RepositoryMock_FindRule_Call) Run(run func(ctx heimdall.Context)) *RepositoryMock_FindRule_Call
func (*RepositoryMock_FindRule_Call) RunAndReturn ¶
func (_c *RepositoryMock_FindRule_Call) RunAndReturn(run func(heimdall.Context) (rule.Rule, error)) *RepositoryMock_FindRule_Call
type RepositoryMock_UpdateRuleSet_Call ¶
RepositoryMock_UpdateRuleSet_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateRuleSet'
func (*RepositoryMock_UpdateRuleSet_Call) Return ¶
func (_c *RepositoryMock_UpdateRuleSet_Call) Return(_a0 error) *RepositoryMock_UpdateRuleSet_Call
func (*RepositoryMock_UpdateRuleSet_Call) Run ¶
func (_c *RepositoryMock_UpdateRuleSet_Call) Run(run func(srcID string, rules []rule.Rule)) *RepositoryMock_UpdateRuleSet_Call
func (*RepositoryMock_UpdateRuleSet_Call) RunAndReturn ¶
func (_c *RepositoryMock_UpdateRuleSet_Call) RunAndReturn(run func(string, []rule.Rule) error) *RepositoryMock_UpdateRuleSet_Call
type RuleMock ¶
RuleMock is an autogenerated mock type for the Rule type
func NewRuleMock ¶
NewRuleMock creates a new instance of RuleMock. 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 (*RuleMock) AllowsBacktracking ¶
AllowsBacktracking provides a mock function with given fields:
func (*RuleMock) EXPECT ¶
func (_m *RuleMock) EXPECT() *RuleMock_Expecter
type RuleMock_AllowsBacktracking_Call ¶
RuleMock_AllowsBacktracking_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowsBacktracking'
func (*RuleMock_AllowsBacktracking_Call) Return ¶
func (_c *RuleMock_AllowsBacktracking_Call) Return(_a0 bool) *RuleMock_AllowsBacktracking_Call
func (*RuleMock_AllowsBacktracking_Call) Run ¶
func (_c *RuleMock_AllowsBacktracking_Call) Run(run func()) *RuleMock_AllowsBacktracking_Call
func (*RuleMock_AllowsBacktracking_Call) RunAndReturn ¶
func (_c *RuleMock_AllowsBacktracking_Call) RunAndReturn(run func() bool) *RuleMock_AllowsBacktracking_Call
type RuleMock_EqualTo_Call ¶
RuleMock_EqualTo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EqualTo'
func (*RuleMock_EqualTo_Call) Return ¶
func (_c *RuleMock_EqualTo_Call) Return(_a0 bool) *RuleMock_EqualTo_Call
func (*RuleMock_EqualTo_Call) Run ¶
func (_c *RuleMock_EqualTo_Call) Run(run func(other rule.Rule)) *RuleMock_EqualTo_Call
func (*RuleMock_EqualTo_Call) RunAndReturn ¶
func (_c *RuleMock_EqualTo_Call) RunAndReturn(run func(rule.Rule) bool) *RuleMock_EqualTo_Call
type RuleMock_Execute_Call ¶
RuleMock_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*RuleMock_Execute_Call) Return ¶
func (_c *RuleMock_Execute_Call) Return(_a0 rule.Backend, _a1 error) *RuleMock_Execute_Call
func (*RuleMock_Execute_Call) Run ¶
func (_c *RuleMock_Execute_Call) Run(run func(ctx heimdall.Context)) *RuleMock_Execute_Call
func (*RuleMock_Execute_Call) RunAndReturn ¶
func (_c *RuleMock_Execute_Call) RunAndReturn(run func(heimdall.Context) (rule.Backend, error)) *RuleMock_Execute_Call
type RuleMock_Expecter ¶
type RuleMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RuleMock_Expecter) AllowsBacktracking ¶
func (_e *RuleMock_Expecter) AllowsBacktracking() *RuleMock_AllowsBacktracking_Call
AllowsBacktracking is a helper method to define mock.On call
func (*RuleMock_Expecter) EqualTo ¶
func (_e *RuleMock_Expecter) EqualTo(other interface{}) *RuleMock_EqualTo_Call
EqualTo is a helper method to define mock.On call
- other rule.Rule
func (*RuleMock_Expecter) Execute ¶
func (_e *RuleMock_Expecter) Execute(ctx interface{}) *RuleMock_Execute_Call
Execute is a helper method to define mock.On call
- ctx heimdall.Context
func (*RuleMock_Expecter) ID ¶
func (_e *RuleMock_Expecter) ID() *RuleMock_ID_Call
ID is a helper method to define mock.On call
func (*RuleMock_Expecter) Routes ¶
func (_e *RuleMock_Expecter) Routes() *RuleMock_Routes_Call
Routes is a helper method to define mock.On call
func (*RuleMock_Expecter) SameAs ¶
func (_e *RuleMock_Expecter) SameAs(other interface{}) *RuleMock_SameAs_Call
SameAs is a helper method to define mock.On call
- other rule.Rule
func (*RuleMock_Expecter) SrcID ¶
func (_e *RuleMock_Expecter) SrcID() *RuleMock_SrcID_Call
SrcID is a helper method to define mock.On call
type RuleMock_ID_Call ¶
RuleMock_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*RuleMock_ID_Call) Return ¶
func (_c *RuleMock_ID_Call) Return(_a0 string) *RuleMock_ID_Call
func (*RuleMock_ID_Call) Run ¶
func (_c *RuleMock_ID_Call) Run(run func()) *RuleMock_ID_Call
func (*RuleMock_ID_Call) RunAndReturn ¶
func (_c *RuleMock_ID_Call) RunAndReturn(run func() string) *RuleMock_ID_Call
type RuleMock_Routes_Call ¶
RuleMock_Routes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Routes'
func (*RuleMock_Routes_Call) Return ¶
func (_c *RuleMock_Routes_Call) Return(_a0 []rule.Route) *RuleMock_Routes_Call
func (*RuleMock_Routes_Call) Run ¶
func (_c *RuleMock_Routes_Call) Run(run func()) *RuleMock_Routes_Call
func (*RuleMock_Routes_Call) RunAndReturn ¶
func (_c *RuleMock_Routes_Call) RunAndReturn(run func() []rule.Route) *RuleMock_Routes_Call
type RuleMock_SameAs_Call ¶
RuleMock_SameAs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SameAs'
func (*RuleMock_SameAs_Call) Return ¶
func (_c *RuleMock_SameAs_Call) Return(_a0 bool) *RuleMock_SameAs_Call
func (*RuleMock_SameAs_Call) Run ¶
func (_c *RuleMock_SameAs_Call) Run(run func(other rule.Rule)) *RuleMock_SameAs_Call
func (*RuleMock_SameAs_Call) RunAndReturn ¶
func (_c *RuleMock_SameAs_Call) RunAndReturn(run func(rule.Rule) bool) *RuleMock_SameAs_Call
type RuleMock_SrcID_Call ¶
RuleMock_SrcID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SrcID'
func (*RuleMock_SrcID_Call) Return ¶
func (_c *RuleMock_SrcID_Call) Return(_a0 string) *RuleMock_SrcID_Call
func (*RuleMock_SrcID_Call) Run ¶
func (_c *RuleMock_SrcID_Call) Run(run func()) *RuleMock_SrcID_Call
func (*RuleMock_SrcID_Call) RunAndReturn ¶
func (_c *RuleMock_SrcID_Call) RunAndReturn(run func() string) *RuleMock_SrcID_Call
type RuleSetProcessorMock ¶
RuleSetProcessorMock is an autogenerated mock type for the SetProcessor type
func NewRuleSetProcessorMock ¶
func NewRuleSetProcessorMock(t mockConstructorTestingTNewRuleSetProcessorMock) *RuleSetProcessorMock
NewRuleSetProcessorMock creates a new instance of RuleSetProcessorMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RuleSetProcessorMock) EXPECT ¶
func (_m *RuleSetProcessorMock) EXPECT() *RuleSetProcessorMock_Expecter
func (*RuleSetProcessorMock) OnCreated ¶
func (_m *RuleSetProcessorMock) OnCreated(ruleSet *config.RuleSet) error
OnCreated provides a mock function with given fields: ruleSet
type RuleSetProcessorMock_Expecter ¶
type RuleSetProcessorMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RuleSetProcessorMock_Expecter) OnCreated ¶
func (_e *RuleSetProcessorMock_Expecter) OnCreated(ruleSet interface{}) *RuleSetProcessorMock_OnCreated_Call
OnCreated is a helper method to define mock.On call
- ruleSet *config.RuleSet
func (*RuleSetProcessorMock_Expecter) OnDeleted ¶
func (_e *RuleSetProcessorMock_Expecter) OnDeleted(ruleSet interface{}) *RuleSetProcessorMock_OnDeleted_Call
OnDeleted is a helper method to define mock.On call
- ruleSet *config.RuleSet
func (*RuleSetProcessorMock_Expecter) OnUpdated ¶
func (_e *RuleSetProcessorMock_Expecter) OnUpdated(ruleSet interface{}) *RuleSetProcessorMock_OnUpdated_Call
OnUpdated is a helper method to define mock.On call
- ruleSet *config.RuleSet
type RuleSetProcessorMock_OnCreated_Call ¶
RuleSetProcessorMock_OnCreated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnCreated'
func (*RuleSetProcessorMock_OnCreated_Call) Return ¶
func (_c *RuleSetProcessorMock_OnCreated_Call) Return(_a0 error) *RuleSetProcessorMock_OnCreated_Call
func (*RuleSetProcessorMock_OnCreated_Call) Run ¶
func (_c *RuleSetProcessorMock_OnCreated_Call) Run(run func(ruleSet *config.RuleSet)) *RuleSetProcessorMock_OnCreated_Call
func (*RuleSetProcessorMock_OnCreated_Call) RunAndReturn ¶
func (_c *RuleSetProcessorMock_OnCreated_Call) RunAndReturn(run func(*config.RuleSet) error) *RuleSetProcessorMock_OnCreated_Call
type RuleSetProcessorMock_OnDeleted_Call ¶
RuleSetProcessorMock_OnDeleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDeleted'
func (*RuleSetProcessorMock_OnDeleted_Call) Return ¶
func (_c *RuleSetProcessorMock_OnDeleted_Call) Return(_a0 error) *RuleSetProcessorMock_OnDeleted_Call
func (*RuleSetProcessorMock_OnDeleted_Call) Run ¶
func (_c *RuleSetProcessorMock_OnDeleted_Call) Run(run func(ruleSet *config.RuleSet)) *RuleSetProcessorMock_OnDeleted_Call
func (*RuleSetProcessorMock_OnDeleted_Call) RunAndReturn ¶
func (_c *RuleSetProcessorMock_OnDeleted_Call) RunAndReturn(run func(*config.RuleSet) error) *RuleSetProcessorMock_OnDeleted_Call
type RuleSetProcessorMock_OnUpdated_Call ¶
RuleSetProcessorMock_OnUpdated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnUpdated'
func (*RuleSetProcessorMock_OnUpdated_Call) Return ¶
func (_c *RuleSetProcessorMock_OnUpdated_Call) Return(_a0 error) *RuleSetProcessorMock_OnUpdated_Call
func (*RuleSetProcessorMock_OnUpdated_Call) Run ¶
func (_c *RuleSetProcessorMock_OnUpdated_Call) Run(run func(ruleSet *config.RuleSet)) *RuleSetProcessorMock_OnUpdated_Call
func (*RuleSetProcessorMock_OnUpdated_Call) RunAndReturn ¶
func (_c *RuleSetProcessorMock_OnUpdated_Call) RunAndReturn(run func(*config.RuleSet) error) *RuleSetProcessorMock_OnUpdated_Call