Documentation ¶
Index ¶
- 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) Outputs() map[string]interface{}
- func (_m *ContextMock) Request() *heimdall.Request
- func (_m *ContextMock) SetPipelineError(err error)
- 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) Outputs() *ContextMock_Outputs_Call
- func (_e *ContextMock_Expecter) Request() *ContextMock_Request_Call
- func (_e *ContextMock_Expecter) SetPipelineError(err interface{}) *ContextMock_SetPipelineError_Call
- type ContextMock_Outputs_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 RequestFunctionsMock
- func (_m *RequestFunctionsMock) Body() interface{}
- func (_m *RequestFunctionsMock) Cookie(name string) string
- func (_m *RequestFunctionsMock) EXPECT() *RequestFunctionsMock_Expecter
- func (_m *RequestFunctionsMock) Header(name string) string
- func (_m *RequestFunctionsMock) Headers() map[string]string
- type RequestFunctionsMock_Body_Call
- type RequestFunctionsMock_Cookie_Call
- func (_c *RequestFunctionsMock_Cookie_Call) Return(_a0 string) *RequestFunctionsMock_Cookie_Call
- func (_c *RequestFunctionsMock_Cookie_Call) Run(run func(name string)) *RequestFunctionsMock_Cookie_Call
- func (_c *RequestFunctionsMock_Cookie_Call) RunAndReturn(run func(string) string) *RequestFunctionsMock_Cookie_Call
- type RequestFunctionsMock_Expecter
- func (_e *RequestFunctionsMock_Expecter) Body() *RequestFunctionsMock_Body_Call
- func (_e *RequestFunctionsMock_Expecter) Cookie(name interface{}) *RequestFunctionsMock_Cookie_Call
- func (_e *RequestFunctionsMock_Expecter) Header(name interface{}) *RequestFunctionsMock_Header_Call
- func (_e *RequestFunctionsMock_Expecter) Headers() *RequestFunctionsMock_Headers_Call
- type RequestFunctionsMock_Header_Call
- func (_c *RequestFunctionsMock_Header_Call) Return(_a0 string) *RequestFunctionsMock_Header_Call
- func (_c *RequestFunctionsMock_Header_Call) Run(run func(name string)) *RequestFunctionsMock_Header_Call
- func (_c *RequestFunctionsMock_Header_Call) RunAndReturn(run func(string) string) *RequestFunctionsMock_Header_Call
- type RequestFunctionsMock_Headers_Call
- func (_c *RequestFunctionsMock_Headers_Call) Return(_a0 map[string]string) *RequestFunctionsMock_Headers_Call
- func (_c *RequestFunctionsMock_Headers_Call) Run(run func()) *RequestFunctionsMock_Headers_Call
- func (_c *RequestFunctionsMock_Headers_Call) RunAndReturn(run func() map[string]string) *RequestFunctionsMock_Headers_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextMock ¶
ContextMock is an autogenerated mock type for the Context type
func NewContextMock ¶
func NewContextMock(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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) Outputs ¶
func (_m *ContextMock) Outputs() map[string]interface{}
Outputs provides a mock function with given fields:
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
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) Outputs ¶
func (_e *ContextMock_Expecter) Outputs() *ContextMock_Outputs_Call
Outputs is a helper method to define mock.On call
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
type ContextMock_Outputs_Call ¶
ContextMock_Outputs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Outputs'
func (*ContextMock_Outputs_Call) Return ¶
func (_c *ContextMock_Outputs_Call) Return(_a0 map[string]interface{}) *ContextMock_Outputs_Call
func (*ContextMock_Outputs_Call) Run ¶
func (_c *ContextMock_Outputs_Call) Run(run func()) *ContextMock_Outputs_Call
func (*ContextMock_Outputs_Call) RunAndReturn ¶
func (_c *ContextMock_Outputs_Call) RunAndReturn(run func() map[string]interface{}) *ContextMock_Outputs_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 RequestFunctionsMock ¶
RequestFunctionsMock is an autogenerated mock type for the RequestFunctions type
func NewRequestFunctionsMock ¶
func NewRequestFunctionsMock(t interface { mock.TestingT Cleanup(func()) }) *RequestFunctionsMock
NewRequestFunctionsMock creates a new instance of RequestFunctionsMock. 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 (*RequestFunctionsMock) Body ¶
func (_m *RequestFunctionsMock) Body() interface{}
Body provides a mock function with given fields:
func (*RequestFunctionsMock) Cookie ¶
func (_m *RequestFunctionsMock) Cookie(name string) string
Cookie provides a mock function with given fields: name
func (*RequestFunctionsMock) EXPECT ¶
func (_m *RequestFunctionsMock) EXPECT() *RequestFunctionsMock_Expecter
func (*RequestFunctionsMock) Header ¶
func (_m *RequestFunctionsMock) Header(name string) string
Header provides a mock function with given fields: name
func (*RequestFunctionsMock) Headers ¶
func (_m *RequestFunctionsMock) Headers() map[string]string
Headers provides a mock function with given fields:
type RequestFunctionsMock_Body_Call ¶
RequestFunctionsMock_Body_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Body'
func (*RequestFunctionsMock_Body_Call) Return ¶
func (_c *RequestFunctionsMock_Body_Call) Return(_a0 interface{}) *RequestFunctionsMock_Body_Call
func (*RequestFunctionsMock_Body_Call) Run ¶
func (_c *RequestFunctionsMock_Body_Call) Run(run func()) *RequestFunctionsMock_Body_Call
func (*RequestFunctionsMock_Body_Call) RunAndReturn ¶
func (_c *RequestFunctionsMock_Body_Call) RunAndReturn(run func() interface{}) *RequestFunctionsMock_Body_Call
type RequestFunctionsMock_Cookie_Call ¶
RequestFunctionsMock_Cookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cookie'
func (*RequestFunctionsMock_Cookie_Call) Return ¶
func (_c *RequestFunctionsMock_Cookie_Call) Return(_a0 string) *RequestFunctionsMock_Cookie_Call
func (*RequestFunctionsMock_Cookie_Call) Run ¶
func (_c *RequestFunctionsMock_Cookie_Call) Run(run func(name string)) *RequestFunctionsMock_Cookie_Call
func (*RequestFunctionsMock_Cookie_Call) RunAndReturn ¶
func (_c *RequestFunctionsMock_Cookie_Call) RunAndReturn(run func(string) string) *RequestFunctionsMock_Cookie_Call
type RequestFunctionsMock_Expecter ¶
type RequestFunctionsMock_Expecter struct {
// contains filtered or unexported fields
}
func (*RequestFunctionsMock_Expecter) Body ¶
func (_e *RequestFunctionsMock_Expecter) Body() *RequestFunctionsMock_Body_Call
Body is a helper method to define mock.On call
func (*RequestFunctionsMock_Expecter) Cookie ¶
func (_e *RequestFunctionsMock_Expecter) Cookie(name interface{}) *RequestFunctionsMock_Cookie_Call
Cookie is a helper method to define mock.On call
- name string
func (*RequestFunctionsMock_Expecter) Header ¶
func (_e *RequestFunctionsMock_Expecter) Header(name interface{}) *RequestFunctionsMock_Header_Call
Header is a helper method to define mock.On call
- name string
func (*RequestFunctionsMock_Expecter) Headers ¶
func (_e *RequestFunctionsMock_Expecter) Headers() *RequestFunctionsMock_Headers_Call
Headers is a helper method to define mock.On call
type RequestFunctionsMock_Header_Call ¶
RequestFunctionsMock_Header_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Header'
func (*RequestFunctionsMock_Header_Call) Return ¶
func (_c *RequestFunctionsMock_Header_Call) Return(_a0 string) *RequestFunctionsMock_Header_Call
func (*RequestFunctionsMock_Header_Call) Run ¶
func (_c *RequestFunctionsMock_Header_Call) Run(run func(name string)) *RequestFunctionsMock_Header_Call
func (*RequestFunctionsMock_Header_Call) RunAndReturn ¶
func (_c *RequestFunctionsMock_Header_Call) RunAndReturn(run func(string) string) *RequestFunctionsMock_Header_Call
type RequestFunctionsMock_Headers_Call ¶
RequestFunctionsMock_Headers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Headers'
func (*RequestFunctionsMock_Headers_Call) Return ¶
func (_c *RequestFunctionsMock_Headers_Call) Return(_a0 map[string]string) *RequestFunctionsMock_Headers_Call
func (*RequestFunctionsMock_Headers_Call) Run ¶
func (_c *RequestFunctionsMock_Headers_Call) Run(run func()) *RequestFunctionsMock_Headers_Call
func (*RequestFunctionsMock_Headers_Call) RunAndReturn ¶
func (_c *RequestFunctionsMock_Headers_Call) RunAndReturn(run func() map[string]string) *RequestFunctionsMock_Headers_Call