Documentation ¶
Index ¶
- type ContextFactoryMock
- type ContextFactoryMock_Create_Call
- func (_c *ContextFactoryMock_Create_Call) Return(_a0 request.Context) *ContextFactoryMock_Create_Call
- func (_c *ContextFactoryMock_Create_Call) Run(run func(rw http.ResponseWriter, req *http.Request)) *ContextFactoryMock_Create_Call
- func (_c *ContextFactoryMock_Create_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request) request.Context) *ContextFactoryMock_Create_Call
- type ContextFactoryMock_Expecter
- type ContextMock
- func (_m *ContextMock) AddCookieForUpstream(name string, value string)
- func (_m *ContextMock) AddHeaderForUpstream(name string, value string)
- func (_m *ContextMock) AppContext() context.Context
- func (_m *ContextMock) EXPECT() *ContextMock_Expecter
- func (_m *ContextMock) Finalize(_a0 rule.Backend) error
- func (_m *ContextMock) Request() *heimdall.Request
- func (_m *ContextMock) SetPipelineError(err error)
- func (_m *ContextMock) Signer() heimdall.JWTSigner
- type ContextMock_AddCookieForUpstream_Call
- func (_c *ContextMock_AddCookieForUpstream_Call) Return() *ContextMock_AddCookieForUpstream_Call
- func (_c *ContextMock_AddCookieForUpstream_Call) Run(run func(name string, value string)) *ContextMock_AddCookieForUpstream_Call
- func (_c *ContextMock_AddCookieForUpstream_Call) RunAndReturn(run func(string, string)) *ContextMock_AddCookieForUpstream_Call
- type ContextMock_AddHeaderForUpstream_Call
- func (_c *ContextMock_AddHeaderForUpstream_Call) Return() *ContextMock_AddHeaderForUpstream_Call
- func (_c *ContextMock_AddHeaderForUpstream_Call) Run(run func(name string, value string)) *ContextMock_AddHeaderForUpstream_Call
- func (_c *ContextMock_AddHeaderForUpstream_Call) RunAndReturn(run func(string, string)) *ContextMock_AddHeaderForUpstream_Call
- type ContextMock_AppContext_Call
- type ContextMock_Expecter
- func (_e *ContextMock_Expecter) AddCookieForUpstream(name interface{}, value interface{}) *ContextMock_AddCookieForUpstream_Call
- func (_e *ContextMock_Expecter) AddHeaderForUpstream(name interface{}, value interface{}) *ContextMock_AddHeaderForUpstream_Call
- func (_e *ContextMock_Expecter) AppContext() *ContextMock_AppContext_Call
- func (_e *ContextMock_Expecter) Finalize(_a0 interface{}) *ContextMock_Finalize_Call
- func (_e *ContextMock_Expecter) Request() *ContextMock_Request_Call
- func (_e *ContextMock_Expecter) SetPipelineError(err interface{}) *ContextMock_SetPipelineError_Call
- func (_e *ContextMock_Expecter) Signer() *ContextMock_Signer_Call
- type ContextMock_Finalize_Call
- type ContextMock_Request_Call
- type ContextMock_SetPipelineError_Call
- func (_c *ContextMock_SetPipelineError_Call) Return() *ContextMock_SetPipelineError_Call
- func (_c *ContextMock_SetPipelineError_Call) Run(run func(err error)) *ContextMock_SetPipelineError_Call
- func (_c *ContextMock_SetPipelineError_Call) RunAndReturn(run func(error)) *ContextMock_SetPipelineError_Call
- type ContextMock_Signer_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextFactoryMock ¶
ContextFactoryMock is an autogenerated mock type for the ContextFactory type
func NewContextFactoryMock ¶
func NewContextFactoryMock(t mockConstructorTestingTNewContextFactoryMock) *ContextFactoryMock
NewContextFactoryMock creates a new instance of ContextFactoryMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ContextFactoryMock) Create ¶
func (_m *ContextFactoryMock) Create(rw http.ResponseWriter, req *http.Request) request.Context
Create provides a mock function with given fields: rw, req
func (*ContextFactoryMock) EXPECT ¶
func (_m *ContextFactoryMock) EXPECT() *ContextFactoryMock_Expecter
type ContextFactoryMock_Create_Call ¶
ContextFactoryMock_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*ContextFactoryMock_Create_Call) Return ¶
func (_c *ContextFactoryMock_Create_Call) Return(_a0 request.Context) *ContextFactoryMock_Create_Call
func (*ContextFactoryMock_Create_Call) Run ¶
func (_c *ContextFactoryMock_Create_Call) Run(run func(rw http.ResponseWriter, req *http.Request)) *ContextFactoryMock_Create_Call
func (*ContextFactoryMock_Create_Call) RunAndReturn ¶
func (_c *ContextFactoryMock_Create_Call) RunAndReturn(run func(http.ResponseWriter, *http.Request) request.Context) *ContextFactoryMock_Create_Call
type ContextFactoryMock_Expecter ¶
type ContextFactoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ContextFactoryMock_Expecter) Create ¶
func (_e *ContextFactoryMock_Expecter) Create(rw interface{}, req interface{}) *ContextFactoryMock_Create_Call
Create is a helper method to define mock.On call
- rw http.ResponseWriter
- req *http.Request
type ContextMock ¶
ContextMock is an autogenerated mock type for the Context type
func NewContextMock ¶
func NewContextMock(t mockConstructorTestingTNewContextMock) *ContextMock
NewContextMock creates a new instance of ContextMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ContextMock) AddCookieForUpstream ¶
func (_m *ContextMock) AddCookieForUpstream(name string, value string)
AddCookieForUpstream provides a mock function with given fields: name, value
func (*ContextMock) AddHeaderForUpstream ¶
func (_m *ContextMock) AddHeaderForUpstream(name string, value string)
AddHeaderForUpstream provides a mock function with given fields: name, value
func (*ContextMock) AppContext ¶
func (_m *ContextMock) AppContext() context.Context
AppContext provides a mock function with given fields:
func (*ContextMock) EXPECT ¶
func (_m *ContextMock) EXPECT() *ContextMock_Expecter
func (*ContextMock) Finalize ¶
func (_m *ContextMock) Finalize(_a0 rule.Backend) error
Finalize provides a mock function with given fields: _a0
func (*ContextMock) Request ¶
func (_m *ContextMock) Request() *heimdall.Request
Request provides a mock function with given fields:
func (*ContextMock) SetPipelineError ¶
func (_m *ContextMock) SetPipelineError(err error)
SetPipelineError provides a mock function with given fields: err
func (*ContextMock) Signer ¶
func (_m *ContextMock) Signer() heimdall.JWTSigner
Signer provides a mock function with given fields:
type ContextMock_AddCookieForUpstream_Call ¶
ContextMock_AddCookieForUpstream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddCookieForUpstream'
func (*ContextMock_AddCookieForUpstream_Call) Return ¶
func (_c *ContextMock_AddCookieForUpstream_Call) Return() *ContextMock_AddCookieForUpstream_Call
func (*ContextMock_AddCookieForUpstream_Call) Run ¶
func (_c *ContextMock_AddCookieForUpstream_Call) Run(run func(name string, value string)) *ContextMock_AddCookieForUpstream_Call
func (*ContextMock_AddCookieForUpstream_Call) RunAndReturn ¶
func (_c *ContextMock_AddCookieForUpstream_Call) RunAndReturn(run func(string, string)) *ContextMock_AddCookieForUpstream_Call
type ContextMock_AddHeaderForUpstream_Call ¶
ContextMock_AddHeaderForUpstream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddHeaderForUpstream'
func (*ContextMock_AddHeaderForUpstream_Call) Return ¶
func (_c *ContextMock_AddHeaderForUpstream_Call) Return() *ContextMock_AddHeaderForUpstream_Call
func (*ContextMock_AddHeaderForUpstream_Call) Run ¶
func (_c *ContextMock_AddHeaderForUpstream_Call) Run(run func(name string, value string)) *ContextMock_AddHeaderForUpstream_Call
func (*ContextMock_AddHeaderForUpstream_Call) RunAndReturn ¶
func (_c *ContextMock_AddHeaderForUpstream_Call) RunAndReturn(run func(string, string)) *ContextMock_AddHeaderForUpstream_Call
type ContextMock_AppContext_Call ¶
ContextMock_AppContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AppContext'
func (*ContextMock_AppContext_Call) Return ¶
func (_c *ContextMock_AppContext_Call) Return(_a0 context.Context) *ContextMock_AppContext_Call
func (*ContextMock_AppContext_Call) Run ¶
func (_c *ContextMock_AppContext_Call) Run(run func()) *ContextMock_AppContext_Call
func (*ContextMock_AppContext_Call) RunAndReturn ¶
func (_c *ContextMock_AppContext_Call) RunAndReturn(run func() context.Context) *ContextMock_AppContext_Call
type ContextMock_Expecter ¶
type ContextMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ContextMock_Expecter) AddCookieForUpstream ¶
func (_e *ContextMock_Expecter) AddCookieForUpstream(name interface{}, value interface{}) *ContextMock_AddCookieForUpstream_Call
AddCookieForUpstream is a helper method to define mock.On call
- name string
- value string
func (*ContextMock_Expecter) AddHeaderForUpstream ¶
func (_e *ContextMock_Expecter) AddHeaderForUpstream(name interface{}, value interface{}) *ContextMock_AddHeaderForUpstream_Call
AddHeaderForUpstream is a helper method to define mock.On call
- name string
- value string
func (*ContextMock_Expecter) AppContext ¶
func (_e *ContextMock_Expecter) AppContext() *ContextMock_AppContext_Call
AppContext is a helper method to define mock.On call
func (*ContextMock_Expecter) Finalize ¶
func (_e *ContextMock_Expecter) Finalize(_a0 interface{}) *ContextMock_Finalize_Call
Finalize is a helper method to define mock.On call
- _a0 rule.Backend
func (*ContextMock_Expecter) Request ¶
func (_e *ContextMock_Expecter) Request() *ContextMock_Request_Call
Request is a helper method to define mock.On call
func (*ContextMock_Expecter) SetPipelineError ¶
func (_e *ContextMock_Expecter) SetPipelineError(err interface{}) *ContextMock_SetPipelineError_Call
SetPipelineError is a helper method to define mock.On call
- err error
func (*ContextMock_Expecter) Signer ¶
func (_e *ContextMock_Expecter) Signer() *ContextMock_Signer_Call
Signer is a helper method to define mock.On call
type ContextMock_Finalize_Call ¶
ContextMock_Finalize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Finalize'
func (*ContextMock_Finalize_Call) Return ¶
func (_c *ContextMock_Finalize_Call) Return(_a0 error) *ContextMock_Finalize_Call
func (*ContextMock_Finalize_Call) Run ¶
func (_c *ContextMock_Finalize_Call) Run(run func(_a0 rule.Backend)) *ContextMock_Finalize_Call
func (*ContextMock_Finalize_Call) RunAndReturn ¶
func (_c *ContextMock_Finalize_Call) RunAndReturn(run func(rule.Backend) error) *ContextMock_Finalize_Call
type ContextMock_Request_Call ¶
ContextMock_Request_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Request'
func (*ContextMock_Request_Call) Return ¶
func (_c *ContextMock_Request_Call) Return(_a0 *heimdall.Request) *ContextMock_Request_Call
func (*ContextMock_Request_Call) Run ¶
func (_c *ContextMock_Request_Call) Run(run func()) *ContextMock_Request_Call
func (*ContextMock_Request_Call) RunAndReturn ¶
func (_c *ContextMock_Request_Call) RunAndReturn(run func() *heimdall.Request) *ContextMock_Request_Call
type ContextMock_SetPipelineError_Call ¶
ContextMock_SetPipelineError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPipelineError'
func (*ContextMock_SetPipelineError_Call) Return ¶
func (_c *ContextMock_SetPipelineError_Call) Return() *ContextMock_SetPipelineError_Call
func (*ContextMock_SetPipelineError_Call) Run ¶
func (_c *ContextMock_SetPipelineError_Call) Run(run func(err error)) *ContextMock_SetPipelineError_Call
func (*ContextMock_SetPipelineError_Call) RunAndReturn ¶
func (_c *ContextMock_SetPipelineError_Call) RunAndReturn(run func(error)) *ContextMock_SetPipelineError_Call
type ContextMock_Signer_Call ¶
ContextMock_Signer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signer'
func (*ContextMock_Signer_Call) Return ¶
func (_c *ContextMock_Signer_Call) Return(_a0 heimdall.JWTSigner) *ContextMock_Signer_Call
func (*ContextMock_Signer_Call) Run ¶
func (_c *ContextMock_Signer_Call) Run(run func()) *ContextMock_Signer_Call
func (*ContextMock_Signer_Call) RunAndReturn ¶
func (_c *ContextMock_Signer_Call) RunAndReturn(run func() heimdall.JWTSigner) *ContextMock_Signer_Call