Documentation
¶
Index ¶
- type Forwarder
- type Forwarder_Expecter
- type Forwarder_Forward_Call
- func (_c *Forwarder_Forward_Call) Return(_a0 *proxy.ForwardResult, _a1 error) *Forwarder_Forward_Call
- func (_c *Forwarder_Forward_Call) Run(run func(ctx context.Context, in proxy.ForwardInput)) *Forwarder_Forward_Call
- func (_c *Forwarder_Forward_Call) RunAndReturn(run func(context.Context, proxy.ForwardInput) (*proxy.ForwardResult, error)) *Forwarder_Forward_Call
- type ProviderInvoker
- func (_m *ProviderInvoker) EXPECT() *ProviderInvoker_Expecter
- func (_m *ProviderInvoker) Invoke(ctx context.Context, bk *registry.Registry, req *infracontext.RequestContext) (*proxy.ProviderResponse, error)
- func (_m *ProviderInvoker) InvokeStream(ctx context.Context, bk *registry.Registry, req *infracontext.RequestContext) (*proxy.ProviderResponse, error)
- type ProviderInvoker_Expecter
- type ProviderInvoker_InvokeStream_Call
- func (_c *ProviderInvoker_InvokeStream_Call) Return(_a0 *proxy.ProviderResponse, _a1 error) *ProviderInvoker_InvokeStream_Call
- func (_c *ProviderInvoker_InvokeStream_Call) Run(...) *ProviderInvoker_InvokeStream_Call
- func (_c *ProviderInvoker_InvokeStream_Call) RunAndReturn(...) *ProviderInvoker_InvokeStream_Call
- type ProviderInvoker_Invoke_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forwarder ¶
Forwarder is an autogenerated mock type for the Forwarder type
func NewForwarder ¶
NewForwarder creates a new instance of Forwarder. 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 (*Forwarder) EXPECT ¶
func (_m *Forwarder) EXPECT() *Forwarder_Expecter
func (*Forwarder) Forward ¶
func (_m *Forwarder) Forward(ctx context.Context, in proxy.ForwardInput) (*proxy.ForwardResult, error)
Forward provides a mock function with given fields: ctx, in
type Forwarder_Expecter ¶
type Forwarder_Expecter struct {
// contains filtered or unexported fields
}
func (*Forwarder_Expecter) Forward ¶
func (_e *Forwarder_Expecter) Forward(ctx interface{}, in interface{}) *Forwarder_Forward_Call
Forward is a helper method to define mock.On call
- ctx context.Context
- in proxy.ForwardInput
type Forwarder_Forward_Call ¶
Forwarder_Forward_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Forward'
func (*Forwarder_Forward_Call) Return ¶
func (_c *Forwarder_Forward_Call) Return(_a0 *proxy.ForwardResult, _a1 error) *Forwarder_Forward_Call
func (*Forwarder_Forward_Call) Run ¶
func (_c *Forwarder_Forward_Call) Run(run func(ctx context.Context, in proxy.ForwardInput)) *Forwarder_Forward_Call
func (*Forwarder_Forward_Call) RunAndReturn ¶
func (_c *Forwarder_Forward_Call) RunAndReturn(run func(context.Context, proxy.ForwardInput) (*proxy.ForwardResult, error)) *Forwarder_Forward_Call
type ProviderInvoker ¶
ProviderInvoker is an autogenerated mock type for the ProviderInvoker type
func NewProviderInvoker ¶
func NewProviderInvoker(t interface {
mock.TestingT
Cleanup(func())
}) *ProviderInvoker
NewProviderInvoker creates a new instance of ProviderInvoker. 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 (*ProviderInvoker) EXPECT ¶
func (_m *ProviderInvoker) EXPECT() *ProviderInvoker_Expecter
func (*ProviderInvoker) Invoke ¶
func (_m *ProviderInvoker) Invoke(ctx context.Context, bk *registry.Registry, req *infracontext.RequestContext) (*proxy.ProviderResponse, error)
Invoke provides a mock function with given fields: ctx, bk, req
func (*ProviderInvoker) InvokeStream ¶
func (_m *ProviderInvoker) InvokeStream(ctx context.Context, bk *registry.Registry, req *infracontext.RequestContext) (*proxy.ProviderResponse, error)
InvokeStream provides a mock function with given fields: ctx, bk, req
type ProviderInvoker_Expecter ¶
type ProviderInvoker_Expecter struct {
// contains filtered or unexported fields
}
func (*ProviderInvoker_Expecter) Invoke ¶
func (_e *ProviderInvoker_Expecter) Invoke(ctx interface{}, bk interface{}, req interface{}) *ProviderInvoker_Invoke_Call
Invoke is a helper method to define mock.On call
- ctx context.Context
- bk *registry.Registry
- req *infracontext.RequestContext
func (*ProviderInvoker_Expecter) InvokeStream ¶
func (_e *ProviderInvoker_Expecter) InvokeStream(ctx interface{}, bk interface{}, req interface{}) *ProviderInvoker_InvokeStream_Call
InvokeStream is a helper method to define mock.On call
- ctx context.Context
- bk *registry.Registry
- req *infracontext.RequestContext
type ProviderInvoker_InvokeStream_Call ¶
ProviderInvoker_InvokeStream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InvokeStream'
func (*ProviderInvoker_InvokeStream_Call) Return ¶
func (_c *ProviderInvoker_InvokeStream_Call) Return(_a0 *proxy.ProviderResponse, _a1 error) *ProviderInvoker_InvokeStream_Call
func (*ProviderInvoker_InvokeStream_Call) Run ¶
func (_c *ProviderInvoker_InvokeStream_Call) Run(run func(ctx context.Context, bk *registry.Registry, req *infracontext.RequestContext)) *ProviderInvoker_InvokeStream_Call
func (*ProviderInvoker_InvokeStream_Call) RunAndReturn ¶
func (_c *ProviderInvoker_InvokeStream_Call) RunAndReturn(run func(context.Context, *registry.Registry, *infracontext.RequestContext) (*proxy.ProviderResponse, error)) *ProviderInvoker_InvokeStream_Call
type ProviderInvoker_Invoke_Call ¶
ProviderInvoker_Invoke_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Invoke'
func (*ProviderInvoker_Invoke_Call) Return ¶
func (_c *ProviderInvoker_Invoke_Call) Return(_a0 *proxy.ProviderResponse, _a1 error) *ProviderInvoker_Invoke_Call
func (*ProviderInvoker_Invoke_Call) Run ¶
func (_c *ProviderInvoker_Invoke_Call) Run(run func(ctx context.Context, bk *registry.Registry, req *infracontext.RequestContext)) *ProviderInvoker_Invoke_Call
func (*ProviderInvoker_Invoke_Call) RunAndReturn ¶
func (_c *ProviderInvoker_Invoke_Call) RunAndReturn(run func(context.Context, *registry.Registry, *infracontext.RequestContext) (*proxy.ProviderResponse, error)) *ProviderInvoker_Invoke_Call