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