Documentation ¶
Index ¶
- type FactoryMock
- func (_m *FactoryMock) CreateAuthenticator(version string, id string, conf config.MechanismConfig) (authenticators.Authenticator, error)
- func (_m *FactoryMock) CreateAuthorizer(version string, id string, conf config.MechanismConfig) (authorizers.Authorizer, error)
- func (_m *FactoryMock) CreateContextualizer(version string, id string, conf config.MechanismConfig) (contextualizers.Contextualizer, error)
- func (_m *FactoryMock) CreateErrorHandler(version string, id string, conf config.MechanismConfig) (errorhandlers.ErrorHandler, error)
- func (_m *FactoryMock) CreateUnifier(version string, id string, conf config.MechanismConfig) (unifiers.Unifier, error)
- func (_m *FactoryMock) EXPECT() *FactoryMock_Expecter
- type FactoryMock_CreateAuthenticator_Call
- func (_c *FactoryMock_CreateAuthenticator_Call) Return(_a0 authenticators.Authenticator, _a1 error) *FactoryMock_CreateAuthenticator_Call
- func (_c *FactoryMock_CreateAuthenticator_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *FactoryMock_CreateAuthenticator_Call
- func (_c *FactoryMock_CreateAuthenticator_Call) RunAndReturn(...) *FactoryMock_CreateAuthenticator_Call
- type FactoryMock_CreateAuthorizer_Call
- func (_c *FactoryMock_CreateAuthorizer_Call) Return(_a0 authorizers.Authorizer, _a1 error) *FactoryMock_CreateAuthorizer_Call
- func (_c *FactoryMock_CreateAuthorizer_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *FactoryMock_CreateAuthorizer_Call
- func (_c *FactoryMock_CreateAuthorizer_Call) RunAndReturn(...) *FactoryMock_CreateAuthorizer_Call
- type FactoryMock_CreateContextualizer_Call
- func (_c *FactoryMock_CreateContextualizer_Call) Return(_a0 contextualizers.Contextualizer, _a1 error) *FactoryMock_CreateContextualizer_Call
- func (_c *FactoryMock_CreateContextualizer_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *FactoryMock_CreateContextualizer_Call
- func (_c *FactoryMock_CreateContextualizer_Call) RunAndReturn(...) *FactoryMock_CreateContextualizer_Call
- type FactoryMock_CreateErrorHandler_Call
- func (_c *FactoryMock_CreateErrorHandler_Call) Return(_a0 errorhandlers.ErrorHandler, _a1 error) *FactoryMock_CreateErrorHandler_Call
- func (_c *FactoryMock_CreateErrorHandler_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *FactoryMock_CreateErrorHandler_Call
- func (_c *FactoryMock_CreateErrorHandler_Call) RunAndReturn(...) *FactoryMock_CreateErrorHandler_Call
- type FactoryMock_CreateUnifier_Call
- func (_c *FactoryMock_CreateUnifier_Call) Return(_a0 unifiers.Unifier, _a1 error) *FactoryMock_CreateUnifier_Call
- func (_c *FactoryMock_CreateUnifier_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *FactoryMock_CreateUnifier_Call
- func (_c *FactoryMock_CreateUnifier_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (unifiers.Unifier, error)) *FactoryMock_CreateUnifier_Call
- type FactoryMock_Expecter
- func (_e *FactoryMock_Expecter) CreateAuthenticator(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateAuthenticator_Call
- func (_e *FactoryMock_Expecter) CreateAuthorizer(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateAuthorizer_Call
- func (_e *FactoryMock_Expecter) CreateContextualizer(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateContextualizer_Call
- func (_e *FactoryMock_Expecter) CreateErrorHandler(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateErrorHandler_Call
- func (_e *FactoryMock_Expecter) CreateUnifier(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateUnifier_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) CreateAuthenticator ¶
func (_m *FactoryMock) CreateAuthenticator(version string, id string, conf config.MechanismConfig) (authenticators.Authenticator, error)
CreateAuthenticator provides a mock function with given fields: version, id, conf
func (*FactoryMock) CreateAuthorizer ¶
func (_m *FactoryMock) CreateAuthorizer(version string, id string, conf config.MechanismConfig) (authorizers.Authorizer, error)
CreateAuthorizer provides a mock function with given fields: version, id, conf
func (*FactoryMock) CreateContextualizer ¶
func (_m *FactoryMock) CreateContextualizer(version string, id string, conf config.MechanismConfig) (contextualizers.Contextualizer, error)
CreateContextualizer provides a mock function with given fields: version, id, conf
func (*FactoryMock) CreateErrorHandler ¶
func (_m *FactoryMock) CreateErrorHandler(version string, id string, conf config.MechanismConfig) (errorhandlers.ErrorHandler, error)
CreateErrorHandler provides a mock function with given fields: version, id, conf
func (*FactoryMock) CreateUnifier ¶
func (_m *FactoryMock) CreateUnifier(version string, id string, conf config.MechanismConfig) (unifiers.Unifier, error)
CreateUnifier provides a mock function with given fields: version, id, conf
func (*FactoryMock) EXPECT ¶
func (_m *FactoryMock) EXPECT() *FactoryMock_Expecter
type FactoryMock_CreateAuthenticator_Call ¶
FactoryMock_CreateAuthenticator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAuthenticator'
func (*FactoryMock_CreateAuthenticator_Call) Return ¶
func (_c *FactoryMock_CreateAuthenticator_Call) Return(_a0 authenticators.Authenticator, _a1 error) *FactoryMock_CreateAuthenticator_Call
func (*FactoryMock_CreateAuthenticator_Call) Run ¶
func (_c *FactoryMock_CreateAuthenticator_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *FactoryMock_CreateAuthenticator_Call
func (*FactoryMock_CreateAuthenticator_Call) RunAndReturn ¶
func (_c *FactoryMock_CreateAuthenticator_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (authenticators.Authenticator, error)) *FactoryMock_CreateAuthenticator_Call
type FactoryMock_CreateAuthorizer_Call ¶
FactoryMock_CreateAuthorizer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAuthorizer'
func (*FactoryMock_CreateAuthorizer_Call) Return ¶
func (_c *FactoryMock_CreateAuthorizer_Call) Return(_a0 authorizers.Authorizer, _a1 error) *FactoryMock_CreateAuthorizer_Call
func (*FactoryMock_CreateAuthorizer_Call) Run ¶
func (_c *FactoryMock_CreateAuthorizer_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *FactoryMock_CreateAuthorizer_Call
func (*FactoryMock_CreateAuthorizer_Call) RunAndReturn ¶
func (_c *FactoryMock_CreateAuthorizer_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (authorizers.Authorizer, error)) *FactoryMock_CreateAuthorizer_Call
type FactoryMock_CreateContextualizer_Call ¶
FactoryMock_CreateContextualizer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateContextualizer'
func (*FactoryMock_CreateContextualizer_Call) Return ¶
func (_c *FactoryMock_CreateContextualizer_Call) Return(_a0 contextualizers.Contextualizer, _a1 error) *FactoryMock_CreateContextualizer_Call
func (*FactoryMock_CreateContextualizer_Call) Run ¶
func (_c *FactoryMock_CreateContextualizer_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *FactoryMock_CreateContextualizer_Call
func (*FactoryMock_CreateContextualizer_Call) RunAndReturn ¶
func (_c *FactoryMock_CreateContextualizer_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (contextualizers.Contextualizer, error)) *FactoryMock_CreateContextualizer_Call
type FactoryMock_CreateErrorHandler_Call ¶
FactoryMock_CreateErrorHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateErrorHandler'
func (*FactoryMock_CreateErrorHandler_Call) Return ¶
func (_c *FactoryMock_CreateErrorHandler_Call) Return(_a0 errorhandlers.ErrorHandler, _a1 error) *FactoryMock_CreateErrorHandler_Call
func (*FactoryMock_CreateErrorHandler_Call) Run ¶
func (_c *FactoryMock_CreateErrorHandler_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *FactoryMock_CreateErrorHandler_Call
func (*FactoryMock_CreateErrorHandler_Call) RunAndReturn ¶
func (_c *FactoryMock_CreateErrorHandler_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (errorhandlers.ErrorHandler, error)) *FactoryMock_CreateErrorHandler_Call
type FactoryMock_CreateUnifier_Call ¶
FactoryMock_CreateUnifier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUnifier'
func (*FactoryMock_CreateUnifier_Call) Return ¶
func (_c *FactoryMock_CreateUnifier_Call) Return(_a0 unifiers.Unifier, _a1 error) *FactoryMock_CreateUnifier_Call
func (*FactoryMock_CreateUnifier_Call) Run ¶
func (_c *FactoryMock_CreateUnifier_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *FactoryMock_CreateUnifier_Call
func (*FactoryMock_CreateUnifier_Call) RunAndReturn ¶
func (_c *FactoryMock_CreateUnifier_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (unifiers.Unifier, error)) *FactoryMock_CreateUnifier_Call
type FactoryMock_Expecter ¶
type FactoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*FactoryMock_Expecter) CreateAuthenticator ¶
func (_e *FactoryMock_Expecter) CreateAuthenticator(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateAuthenticator_Call
CreateAuthenticator is a helper method to define mock.On call
- version string
- id string
- conf config.MechanismConfig
func (*FactoryMock_Expecter) CreateAuthorizer ¶
func (_e *FactoryMock_Expecter) CreateAuthorizer(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateAuthorizer_Call
CreateAuthorizer is a helper method to define mock.On call
- version string
- id string
- conf config.MechanismConfig
func (*FactoryMock_Expecter) CreateContextualizer ¶
func (_e *FactoryMock_Expecter) CreateContextualizer(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateContextualizer_Call
CreateContextualizer is a helper method to define mock.On call
- version string
- id string
- conf config.MechanismConfig
func (*FactoryMock_Expecter) CreateErrorHandler ¶
func (_e *FactoryMock_Expecter) CreateErrorHandler(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateErrorHandler_Call
CreateErrorHandler is a helper method to define mock.On call
- version string
- id string
- conf config.MechanismConfig
func (*FactoryMock_Expecter) CreateUnifier ¶
func (_e *FactoryMock_Expecter) CreateUnifier(version interface{}, id interface{}, conf interface{}) *FactoryMock_CreateUnifier_Call
CreateUnifier is a helper method to define mock.On call
- version string
- id string
- conf config.MechanismConfig