Documentation ¶
Index ¶
- type MechanismFactoryMock
- func (_m *MechanismFactoryMock) CreateAuthenticator(version string, id string, conf config.MechanismConfig) (authenticators.Authenticator, error)
- func (_m *MechanismFactoryMock) CreateAuthorizer(version string, id string, conf config.MechanismConfig) (authorizers.Authorizer, error)
- func (_m *MechanismFactoryMock) CreateContextualizer(version string, id string, conf config.MechanismConfig) (contextualizers.Contextualizer, error)
- func (_m *MechanismFactoryMock) CreateErrorHandler(version string, id string, conf config.MechanismConfig) (errorhandlers.ErrorHandler, error)
- func (_m *MechanismFactoryMock) CreateFinalizer(version string, id string, conf config.MechanismConfig) (finalizers.Finalizer, error)
- func (_m *MechanismFactoryMock) EXPECT() *MechanismFactoryMock_Expecter
- type MechanismFactoryMock_CreateAuthenticator_Call
- func (_c *MechanismFactoryMock_CreateAuthenticator_Call) Return(_a0 authenticators.Authenticator, _a1 error) *MechanismFactoryMock_CreateAuthenticator_Call
- func (_c *MechanismFactoryMock_CreateAuthenticator_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *MechanismFactoryMock_CreateAuthenticator_Call
- func (_c *MechanismFactoryMock_CreateAuthenticator_Call) RunAndReturn(...) *MechanismFactoryMock_CreateAuthenticator_Call
- type MechanismFactoryMock_CreateAuthorizer_Call
- func (_c *MechanismFactoryMock_CreateAuthorizer_Call) Return(_a0 authorizers.Authorizer, _a1 error) *MechanismFactoryMock_CreateAuthorizer_Call
- func (_c *MechanismFactoryMock_CreateAuthorizer_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *MechanismFactoryMock_CreateAuthorizer_Call
- func (_c *MechanismFactoryMock_CreateAuthorizer_Call) RunAndReturn(...) *MechanismFactoryMock_CreateAuthorizer_Call
- type MechanismFactoryMock_CreateContextualizer_Call
- func (_c *MechanismFactoryMock_CreateContextualizer_Call) Return(_a0 contextualizers.Contextualizer, _a1 error) *MechanismFactoryMock_CreateContextualizer_Call
- func (_c *MechanismFactoryMock_CreateContextualizer_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *MechanismFactoryMock_CreateContextualizer_Call
- func (_c *MechanismFactoryMock_CreateContextualizer_Call) RunAndReturn(...) *MechanismFactoryMock_CreateContextualizer_Call
- type MechanismFactoryMock_CreateErrorHandler_Call
- func (_c *MechanismFactoryMock_CreateErrorHandler_Call) Return(_a0 errorhandlers.ErrorHandler, _a1 error) *MechanismFactoryMock_CreateErrorHandler_Call
- func (_c *MechanismFactoryMock_CreateErrorHandler_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *MechanismFactoryMock_CreateErrorHandler_Call
- func (_c *MechanismFactoryMock_CreateErrorHandler_Call) RunAndReturn(...) *MechanismFactoryMock_CreateErrorHandler_Call
- type MechanismFactoryMock_CreateFinalizer_Call
- func (_c *MechanismFactoryMock_CreateFinalizer_Call) Return(_a0 finalizers.Finalizer, _a1 error) *MechanismFactoryMock_CreateFinalizer_Call
- func (_c *MechanismFactoryMock_CreateFinalizer_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *MechanismFactoryMock_CreateFinalizer_Call
- func (_c *MechanismFactoryMock_CreateFinalizer_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (finalizers.Finalizer, error)) *MechanismFactoryMock_CreateFinalizer_Call
- type MechanismFactoryMock_Expecter
- func (_e *MechanismFactoryMock_Expecter) CreateAuthenticator(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateAuthenticator_Call
- func (_e *MechanismFactoryMock_Expecter) CreateAuthorizer(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateAuthorizer_Call
- func (_e *MechanismFactoryMock_Expecter) CreateContextualizer(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateContextualizer_Call
- func (_e *MechanismFactoryMock_Expecter) CreateErrorHandler(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateErrorHandler_Call
- func (_e *MechanismFactoryMock_Expecter) CreateFinalizer(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateFinalizer_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MechanismFactoryMock ¶
MechanismFactoryMock is an autogenerated mock type for the MechanismFactory type
func NewMechanismFactoryMock ¶
func NewMechanismFactoryMock(t interface { mock.TestingT Cleanup(func()) }) *MechanismFactoryMock
NewMechanismFactoryMock creates a new instance of MechanismFactoryMock. 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 (*MechanismFactoryMock) CreateAuthenticator ¶
func (_m *MechanismFactoryMock) CreateAuthenticator(version string, id string, conf config.MechanismConfig) (authenticators.Authenticator, error)
CreateAuthenticator provides a mock function with given fields: version, id, conf
func (*MechanismFactoryMock) CreateAuthorizer ¶
func (_m *MechanismFactoryMock) CreateAuthorizer(version string, id string, conf config.MechanismConfig) (authorizers.Authorizer, error)
CreateAuthorizer provides a mock function with given fields: version, id, conf
func (*MechanismFactoryMock) CreateContextualizer ¶
func (_m *MechanismFactoryMock) CreateContextualizer(version string, id string, conf config.MechanismConfig) (contextualizers.Contextualizer, error)
CreateContextualizer provides a mock function with given fields: version, id, conf
func (*MechanismFactoryMock) CreateErrorHandler ¶
func (_m *MechanismFactoryMock) CreateErrorHandler(version string, id string, conf config.MechanismConfig) (errorhandlers.ErrorHandler, error)
CreateErrorHandler provides a mock function with given fields: version, id, conf
func (*MechanismFactoryMock) CreateFinalizer ¶
func (_m *MechanismFactoryMock) CreateFinalizer(version string, id string, conf config.MechanismConfig) (finalizers.Finalizer, error)
CreateFinalizer provides a mock function with given fields: version, id, conf
func (*MechanismFactoryMock) EXPECT ¶
func (_m *MechanismFactoryMock) EXPECT() *MechanismFactoryMock_Expecter
type MechanismFactoryMock_CreateAuthenticator_Call ¶
MechanismFactoryMock_CreateAuthenticator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAuthenticator'
func (*MechanismFactoryMock_CreateAuthenticator_Call) Return ¶
func (_c *MechanismFactoryMock_CreateAuthenticator_Call) Return(_a0 authenticators.Authenticator, _a1 error) *MechanismFactoryMock_CreateAuthenticator_Call
func (*MechanismFactoryMock_CreateAuthenticator_Call) Run ¶
func (_c *MechanismFactoryMock_CreateAuthenticator_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *MechanismFactoryMock_CreateAuthenticator_Call
func (*MechanismFactoryMock_CreateAuthenticator_Call) RunAndReturn ¶
func (_c *MechanismFactoryMock_CreateAuthenticator_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (authenticators.Authenticator, error)) *MechanismFactoryMock_CreateAuthenticator_Call
type MechanismFactoryMock_CreateAuthorizer_Call ¶
MechanismFactoryMock_CreateAuthorizer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAuthorizer'
func (*MechanismFactoryMock_CreateAuthorizer_Call) Return ¶
func (_c *MechanismFactoryMock_CreateAuthorizer_Call) Return(_a0 authorizers.Authorizer, _a1 error) *MechanismFactoryMock_CreateAuthorizer_Call
func (*MechanismFactoryMock_CreateAuthorizer_Call) Run ¶
func (_c *MechanismFactoryMock_CreateAuthorizer_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *MechanismFactoryMock_CreateAuthorizer_Call
func (*MechanismFactoryMock_CreateAuthorizer_Call) RunAndReturn ¶
func (_c *MechanismFactoryMock_CreateAuthorizer_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (authorizers.Authorizer, error)) *MechanismFactoryMock_CreateAuthorizer_Call
type MechanismFactoryMock_CreateContextualizer_Call ¶
MechanismFactoryMock_CreateContextualizer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateContextualizer'
func (*MechanismFactoryMock_CreateContextualizer_Call) Return ¶
func (_c *MechanismFactoryMock_CreateContextualizer_Call) Return(_a0 contextualizers.Contextualizer, _a1 error) *MechanismFactoryMock_CreateContextualizer_Call
func (*MechanismFactoryMock_CreateContextualizer_Call) Run ¶
func (_c *MechanismFactoryMock_CreateContextualizer_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *MechanismFactoryMock_CreateContextualizer_Call
func (*MechanismFactoryMock_CreateContextualizer_Call) RunAndReturn ¶
func (_c *MechanismFactoryMock_CreateContextualizer_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (contextualizers.Contextualizer, error)) *MechanismFactoryMock_CreateContextualizer_Call
type MechanismFactoryMock_CreateErrorHandler_Call ¶
MechanismFactoryMock_CreateErrorHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateErrorHandler'
func (*MechanismFactoryMock_CreateErrorHandler_Call) Return ¶
func (_c *MechanismFactoryMock_CreateErrorHandler_Call) Return(_a0 errorhandlers.ErrorHandler, _a1 error) *MechanismFactoryMock_CreateErrorHandler_Call
func (*MechanismFactoryMock_CreateErrorHandler_Call) Run ¶
func (_c *MechanismFactoryMock_CreateErrorHandler_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *MechanismFactoryMock_CreateErrorHandler_Call
func (*MechanismFactoryMock_CreateErrorHandler_Call) RunAndReturn ¶
func (_c *MechanismFactoryMock_CreateErrorHandler_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (errorhandlers.ErrorHandler, error)) *MechanismFactoryMock_CreateErrorHandler_Call
type MechanismFactoryMock_CreateFinalizer_Call ¶
MechanismFactoryMock_CreateFinalizer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFinalizer'
func (*MechanismFactoryMock_CreateFinalizer_Call) Return ¶
func (_c *MechanismFactoryMock_CreateFinalizer_Call) Return(_a0 finalizers.Finalizer, _a1 error) *MechanismFactoryMock_CreateFinalizer_Call
func (*MechanismFactoryMock_CreateFinalizer_Call) Run ¶
func (_c *MechanismFactoryMock_CreateFinalizer_Call) Run(run func(version string, id string, conf config.MechanismConfig)) *MechanismFactoryMock_CreateFinalizer_Call
func (*MechanismFactoryMock_CreateFinalizer_Call) RunAndReturn ¶
func (_c *MechanismFactoryMock_CreateFinalizer_Call) RunAndReturn(run func(string, string, config.MechanismConfig) (finalizers.Finalizer, error)) *MechanismFactoryMock_CreateFinalizer_Call
type MechanismFactoryMock_Expecter ¶
type MechanismFactoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*MechanismFactoryMock_Expecter) CreateAuthenticator ¶
func (_e *MechanismFactoryMock_Expecter) CreateAuthenticator(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateAuthenticator_Call
CreateAuthenticator is a helper method to define mock.On call
- version string
- id string
- conf config.MechanismConfig
func (*MechanismFactoryMock_Expecter) CreateAuthorizer ¶
func (_e *MechanismFactoryMock_Expecter) CreateAuthorizer(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateAuthorizer_Call
CreateAuthorizer is a helper method to define mock.On call
- version string
- id string
- conf config.MechanismConfig
func (*MechanismFactoryMock_Expecter) CreateContextualizer ¶
func (_e *MechanismFactoryMock_Expecter) CreateContextualizer(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateContextualizer_Call
CreateContextualizer is a helper method to define mock.On call
- version string
- id string
- conf config.MechanismConfig
func (*MechanismFactoryMock_Expecter) CreateErrorHandler ¶
func (_e *MechanismFactoryMock_Expecter) CreateErrorHandler(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateErrorHandler_Call
CreateErrorHandler is a helper method to define mock.On call
- version string
- id string
- conf config.MechanismConfig
func (*MechanismFactoryMock_Expecter) CreateFinalizer ¶
func (_e *MechanismFactoryMock_Expecter) CreateFinalizer(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateFinalizer_Call
CreateFinalizer is a helper method to define mock.On call
- version string
- id string
- conf config.MechanismConfig