Documentation ¶
Index ¶
- type AuthenticatorMock
- func (_m *AuthenticatorMock) EXPECT() *AuthenticatorMock_Expecter
- func (_m *AuthenticatorMock) Execute(_a0 heimdall.Context) (*subject.Subject, error)
- func (_m *AuthenticatorMock) IsFallbackOnErrorAllowed() bool
- func (_m *AuthenticatorMock) WithConfig(config map[string]interface{}) (authenticators.Authenticator, error)
- type AuthenticatorMock_Execute_Call
- func (_c *AuthenticatorMock_Execute_Call) Return(_a0 *subject.Subject, _a1 error) *AuthenticatorMock_Execute_Call
- func (_c *AuthenticatorMock_Execute_Call) Run(run func(_a0 heimdall.Context)) *AuthenticatorMock_Execute_Call
- func (_c *AuthenticatorMock_Execute_Call) RunAndReturn(run func(heimdall.Context) (*subject.Subject, error)) *AuthenticatorMock_Execute_Call
- type AuthenticatorMock_Expecter
- func (_e *AuthenticatorMock_Expecter) Execute(_a0 interface{}) *AuthenticatorMock_Execute_Call
- func (_e *AuthenticatorMock_Expecter) IsFallbackOnErrorAllowed() *AuthenticatorMock_IsFallbackOnErrorAllowed_Call
- func (_e *AuthenticatorMock_Expecter) WithConfig(config interface{}) *AuthenticatorMock_WithConfig_Call
- type AuthenticatorMock_IsFallbackOnErrorAllowed_Call
- func (_c *AuthenticatorMock_IsFallbackOnErrorAllowed_Call) Return(_a0 bool) *AuthenticatorMock_IsFallbackOnErrorAllowed_Call
- func (_c *AuthenticatorMock_IsFallbackOnErrorAllowed_Call) Run(run func()) *AuthenticatorMock_IsFallbackOnErrorAllowed_Call
- func (_c *AuthenticatorMock_IsFallbackOnErrorAllowed_Call) RunAndReturn(run func() bool) *AuthenticatorMock_IsFallbackOnErrorAllowed_Call
- type AuthenticatorMock_WithConfig_Call
- func (_c *AuthenticatorMock_WithConfig_Call) Return(_a0 authenticators.Authenticator, _a1 error) *AuthenticatorMock_WithConfig_Call
- func (_c *AuthenticatorMock_WithConfig_Call) Run(run func(config map[string]interface{})) *AuthenticatorMock_WithConfig_Call
- func (_c *AuthenticatorMock_WithConfig_Call) RunAndReturn(run func(map[string]interface{}) (authenticators.Authenticator, error)) *AuthenticatorMock_WithConfig_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticatorMock ¶
AuthenticatorMock is an autogenerated mock type for the Authenticator type
func NewAuthenticatorMock ¶
func NewAuthenticatorMock(t mockConstructorTestingTNewAuthenticatorMock) *AuthenticatorMock
NewAuthenticatorMock creates a new instance of AuthenticatorMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AuthenticatorMock) EXPECT ¶
func (_m *AuthenticatorMock) EXPECT() *AuthenticatorMock_Expecter
func (*AuthenticatorMock) IsFallbackOnErrorAllowed ¶
func (_m *AuthenticatorMock) IsFallbackOnErrorAllowed() bool
IsFallbackOnErrorAllowed provides a mock function with given fields:
func (*AuthenticatorMock) WithConfig ¶
func (_m *AuthenticatorMock) WithConfig(config map[string]interface{}) (authenticators.Authenticator, error)
WithConfig provides a mock function with given fields: config
type AuthenticatorMock_Execute_Call ¶
AuthenticatorMock_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*AuthenticatorMock_Execute_Call) Return ¶
func (_c *AuthenticatorMock_Execute_Call) Return(_a0 *subject.Subject, _a1 error) *AuthenticatorMock_Execute_Call
func (*AuthenticatorMock_Execute_Call) Run ¶
func (_c *AuthenticatorMock_Execute_Call) Run(run func(_a0 heimdall.Context)) *AuthenticatorMock_Execute_Call
func (*AuthenticatorMock_Execute_Call) RunAndReturn ¶
func (_c *AuthenticatorMock_Execute_Call) RunAndReturn(run func(heimdall.Context) (*subject.Subject, error)) *AuthenticatorMock_Execute_Call
type AuthenticatorMock_Expecter ¶
type AuthenticatorMock_Expecter struct {
// contains filtered or unexported fields
}
func (*AuthenticatorMock_Expecter) Execute ¶
func (_e *AuthenticatorMock_Expecter) Execute(_a0 interface{}) *AuthenticatorMock_Execute_Call
Execute is a helper method to define mock.On call
- _a0 heimdall.Context
func (*AuthenticatorMock_Expecter) IsFallbackOnErrorAllowed ¶
func (_e *AuthenticatorMock_Expecter) IsFallbackOnErrorAllowed() *AuthenticatorMock_IsFallbackOnErrorAllowed_Call
IsFallbackOnErrorAllowed is a helper method to define mock.On call
func (*AuthenticatorMock_Expecter) WithConfig ¶
func (_e *AuthenticatorMock_Expecter) WithConfig(config interface{}) *AuthenticatorMock_WithConfig_Call
WithConfig is a helper method to define mock.On call
- config map[string]interface{}
type AuthenticatorMock_IsFallbackOnErrorAllowed_Call ¶
AuthenticatorMock_IsFallbackOnErrorAllowed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsFallbackOnErrorAllowed'
func (*AuthenticatorMock_IsFallbackOnErrorAllowed_Call) Return ¶
func (_c *AuthenticatorMock_IsFallbackOnErrorAllowed_Call) Return(_a0 bool) *AuthenticatorMock_IsFallbackOnErrorAllowed_Call
func (*AuthenticatorMock_IsFallbackOnErrorAllowed_Call) Run ¶
func (_c *AuthenticatorMock_IsFallbackOnErrorAllowed_Call) Run(run func()) *AuthenticatorMock_IsFallbackOnErrorAllowed_Call
func (*AuthenticatorMock_IsFallbackOnErrorAllowed_Call) RunAndReturn ¶
func (_c *AuthenticatorMock_IsFallbackOnErrorAllowed_Call) RunAndReturn(run func() bool) *AuthenticatorMock_IsFallbackOnErrorAllowed_Call
type AuthenticatorMock_WithConfig_Call ¶
AuthenticatorMock_WithConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithConfig'
func (*AuthenticatorMock_WithConfig_Call) Return ¶
func (_c *AuthenticatorMock_WithConfig_Call) Return(_a0 authenticators.Authenticator, _a1 error) *AuthenticatorMock_WithConfig_Call
func (*AuthenticatorMock_WithConfig_Call) Run ¶
func (_c *AuthenticatorMock_WithConfig_Call) Run(run func(config map[string]interface{})) *AuthenticatorMock_WithConfig_Call
func (*AuthenticatorMock_WithConfig_Call) RunAndReturn ¶
func (_c *AuthenticatorMock_WithConfig_Call) RunAndReturn(run func(map[string]interface{}) (authenticators.Authenticator, error)) *AuthenticatorMock_WithConfig_Call