Documentation ¶
Index ¶
- 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
- type RepositoryMock_Expecter
- 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(_a0 *url.URL)) *RepositoryMock_FindRule_Call
- func (_c *RepositoryMock_FindRule_Call) RunAndReturn(run func(*url.URL) (rule.Rule, error)) *RepositoryMock_FindRule_Call
- type RuleMock
- type RuleMock_Execute_Call
- type RuleMock_Expecter
- func (_e *RuleMock_Expecter) Execute(_a0 interface{}) *RuleMock_Execute_Call
- func (_e *RuleMock_Expecter) ID() *RuleMock_ID_Call
- func (_e *RuleMock_Expecter) MatchesMethod(_a0 interface{}) *RuleMock_MatchesMethod_Call
- func (_e *RuleMock_Expecter) MatchesURL(_a0 interface{}) *RuleMock_MatchesURL_Call
- func (_e *RuleMock_Expecter) SrcID() *RuleMock_SrcID_Call
- type RuleMock_ID_Call
- type RuleMock_MatchesMethod_Call
- type RuleMock_MatchesURL_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 FactoryMock ¶
FactoryMock is an autogenerated mock type for the Factory type
func NewFactoryMock ¶
func NewFactoryMock(t mockConstructorTestingTNewFactoryMock) *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.
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 mockConstructorTestingTNewRepositoryMock) *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.
func (*RepositoryMock) EXPECT ¶
func (_m *RepositoryMock) EXPECT() *RepositoryMock_Expecter
type RepositoryMock_Expecter ¶
type RepositoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RepositoryMock_Expecter) FindRule ¶
func (_e *RepositoryMock_Expecter) FindRule(_a0 interface{}) *RepositoryMock_FindRule_Call
FindRule is a helper method to define mock.On call
- _a0 *url.URL
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(_a0 *url.URL)) *RepositoryMock_FindRule_Call
func (*RepositoryMock_FindRule_Call) RunAndReturn ¶
func (_c *RepositoryMock_FindRule_Call) RunAndReturn(run func(*url.URL) (rule.Rule, error)) *RepositoryMock_FindRule_Call
type RuleMock ¶
RuleMock is an autogenerated mock type for the Rule type
func NewRuleMock ¶
func NewRuleMock(t mockConstructorTestingTNewRuleMock) *RuleMock
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.
func (*RuleMock) EXPECT ¶
func (_m *RuleMock) EXPECT() *RuleMock_Expecter
func (*RuleMock) MatchesMethod ¶
MatchesMethod provides a mock function with given fields: _a0
func (*RuleMock) MatchesURL ¶
MatchesURL provides a mock function with given fields: _a0
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 *url.URL, _a1 error) *RuleMock_Execute_Call
func (*RuleMock_Execute_Call) Run ¶
func (_c *RuleMock_Execute_Call) Run(run func(_a0 heimdall.Context)) *RuleMock_Execute_Call
func (*RuleMock_Execute_Call) RunAndReturn ¶
func (_c *RuleMock_Execute_Call) RunAndReturn(run func(heimdall.Context) (*url.URL, error)) *RuleMock_Execute_Call
type RuleMock_Expecter ¶
type RuleMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RuleMock_Expecter) Execute ¶
func (_e *RuleMock_Expecter) Execute(_a0 interface{}) *RuleMock_Execute_Call
Execute is a helper method to define mock.On call
- _a0 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) MatchesMethod ¶
func (_e *RuleMock_Expecter) MatchesMethod(_a0 interface{}) *RuleMock_MatchesMethod_Call
MatchesMethod is a helper method to define mock.On call
- _a0 string
func (*RuleMock_Expecter) MatchesURL ¶
func (_e *RuleMock_Expecter) MatchesURL(_a0 interface{}) *RuleMock_MatchesURL_Call
MatchesURL is a helper method to define mock.On call
- _a0 *url.URL
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_MatchesMethod_Call ¶
RuleMock_MatchesMethod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MatchesMethod'
func (*RuleMock_MatchesMethod_Call) Return ¶
func (_c *RuleMock_MatchesMethod_Call) Return(_a0 bool) *RuleMock_MatchesMethod_Call
func (*RuleMock_MatchesMethod_Call) Run ¶
func (_c *RuleMock_MatchesMethod_Call) Run(run func(_a0 string)) *RuleMock_MatchesMethod_Call
func (*RuleMock_MatchesMethod_Call) RunAndReturn ¶
func (_c *RuleMock_MatchesMethod_Call) RunAndReturn(run func(string) bool) *RuleMock_MatchesMethod_Call
type RuleMock_MatchesURL_Call ¶
RuleMock_MatchesURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MatchesURL'
func (*RuleMock_MatchesURL_Call) Return ¶
func (_c *RuleMock_MatchesURL_Call) Return(_a0 bool) *RuleMock_MatchesURL_Call
func (*RuleMock_MatchesURL_Call) Run ¶
func (_c *RuleMock_MatchesURL_Call) Run(run func(_a0 *url.URL)) *RuleMock_MatchesURL_Call
func (*RuleMock_MatchesURL_Call) RunAndReturn ¶
func (_c *RuleMock_MatchesURL_Call) RunAndReturn(run func(*url.URL) bool) *RuleMock_MatchesURL_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