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) 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) Request() *ContextMock_Request_Call
- func (_e *ContextMock_Expecter) SetPipelineError(err interface{}) *ContextMock_SetPipelineError_Call
- func (_e *ContextMock_Expecter) Signer() *ContextMock_Signer_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
- type JWTSignerMock
- type JWTSignerMock_Expecter
- type JWTSignerMock_Hash_Call
- type JWTSignerMock_Keys_Call
- type JWTSignerMock_Sign_Call
- func (_c *JWTSignerMock_Sign_Call) Return(_a0 string, _a1 error) *JWTSignerMock_Sign_Call
- func (_c *JWTSignerMock_Sign_Call) Run(run func(sub string, ttl time.Duration, claims map[string]interface{})) *JWTSignerMock_Sign_Call
- func (_c *JWTSignerMock_Sign_Call) RunAndReturn(run func(string, time.Duration, map[string]interface{}) (string, error)) *JWTSignerMock_Sign_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 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) 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) 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_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
type JWTSignerMock ¶
JWTSignerMock is an autogenerated mock type for the JWTSigner type
func NewJWTSignerMock ¶
func NewJWTSignerMock(t mockConstructorTestingTNewJWTSignerMock) *JWTSignerMock
NewJWTSignerMock creates a new instance of JWTSignerMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*JWTSignerMock) EXPECT ¶
func (_m *JWTSignerMock) EXPECT() *JWTSignerMock_Expecter
func (*JWTSignerMock) Hash ¶
func (_m *JWTSignerMock) Hash() []byte
Hash provides a mock function with given fields:
func (*JWTSignerMock) Keys ¶
func (_m *JWTSignerMock) Keys() []jose.JSONWebKey
Keys provides a mock function with given fields:
type JWTSignerMock_Expecter ¶
type JWTSignerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*JWTSignerMock_Expecter) Hash ¶
func (_e *JWTSignerMock_Expecter) Hash() *JWTSignerMock_Hash_Call
Hash is a helper method to define mock.On call
func (*JWTSignerMock_Expecter) Keys ¶
func (_e *JWTSignerMock_Expecter) Keys() *JWTSignerMock_Keys_Call
Keys is a helper method to define mock.On call
func (*JWTSignerMock_Expecter) Sign ¶
func (_e *JWTSignerMock_Expecter) Sign(sub interface{}, ttl interface{}, claims interface{}) *JWTSignerMock_Sign_Call
Sign is a helper method to define mock.On call
- sub string
- ttl time.Duration
- claims map[string]interface{}
type JWTSignerMock_Hash_Call ¶
JWTSignerMock_Hash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hash'
func (*JWTSignerMock_Hash_Call) Return ¶
func (_c *JWTSignerMock_Hash_Call) Return(_a0 []byte) *JWTSignerMock_Hash_Call
func (*JWTSignerMock_Hash_Call) Run ¶
func (_c *JWTSignerMock_Hash_Call) Run(run func()) *JWTSignerMock_Hash_Call
func (*JWTSignerMock_Hash_Call) RunAndReturn ¶
func (_c *JWTSignerMock_Hash_Call) RunAndReturn(run func() []byte) *JWTSignerMock_Hash_Call
type JWTSignerMock_Keys_Call ¶
JWTSignerMock_Keys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Keys'
func (*JWTSignerMock_Keys_Call) Return ¶
func (_c *JWTSignerMock_Keys_Call) Return(_a0 []jose.JSONWebKey) *JWTSignerMock_Keys_Call
func (*JWTSignerMock_Keys_Call) Run ¶
func (_c *JWTSignerMock_Keys_Call) Run(run func()) *JWTSignerMock_Keys_Call
func (*JWTSignerMock_Keys_Call) RunAndReturn ¶
func (_c *JWTSignerMock_Keys_Call) RunAndReturn(run func() []jose.JSONWebKey) *JWTSignerMock_Keys_Call
type JWTSignerMock_Sign_Call ¶
JWTSignerMock_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'
func (*JWTSignerMock_Sign_Call) Return ¶
func (_c *JWTSignerMock_Sign_Call) Return(_a0 string, _a1 error) *JWTSignerMock_Sign_Call
func (*JWTSignerMock_Sign_Call) Run ¶
func (_c *JWTSignerMock_Sign_Call) Run(run func(sub string, ttl time.Duration, claims map[string]interface{})) *JWTSignerMock_Sign_Call
func (*JWTSignerMock_Sign_Call) RunAndReturn ¶
func (_c *JWTSignerMock_Sign_Call) RunAndReturn(run func(string, time.Duration, map[string]interface{}) (string, error)) *JWTSignerMock_Sign_Call
type RequestFunctionsMock ¶
RequestFunctionsMock is an autogenerated mock type for the RequestFunctions type
func NewRequestFunctionsMock ¶
func NewRequestFunctionsMock(t mockConstructorTestingTNewRequestFunctionsMock) *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.
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