Documentation
¶
Index ¶
- type Gatekeeper
- func (_mock *Gatekeeper) Context(ctx context.Context) (context.Context, error)
- func (_mock *Gatekeeper) ContextWithRequest(ctx context.Context, req interface{}) (context.Context, error)
- func (_m *Gatekeeper) EXPECT() *Gatekeeper_Expecter
- func (_mock *Gatekeeper) StreamServerInterceptor() grpc.StreamServerInterceptor
- func (_mock *Gatekeeper) UnaryServerInterceptor() grpc.UnaryServerInterceptor
- type Gatekeeper_ContextWithRequest_Call
- func (_c *Gatekeeper_ContextWithRequest_Call) Return(context1 context.Context, err error) *Gatekeeper_ContextWithRequest_Call
- func (_c *Gatekeeper_ContextWithRequest_Call) Run(run func(ctx context.Context, req interface{})) *Gatekeeper_ContextWithRequest_Call
- func (_c *Gatekeeper_ContextWithRequest_Call) RunAndReturn(run func(ctx context.Context, req interface{}) (context.Context, error)) *Gatekeeper_ContextWithRequest_Call
- type Gatekeeper_Context_Call
- func (_c *Gatekeeper_Context_Call) Return(context1 context.Context, err error) *Gatekeeper_Context_Call
- func (_c *Gatekeeper_Context_Call) Run(run func(ctx context.Context)) *Gatekeeper_Context_Call
- func (_c *Gatekeeper_Context_Call) RunAndReturn(run func(ctx context.Context) (context.Context, error)) *Gatekeeper_Context_Call
- type Gatekeeper_Expecter
- func (_e *Gatekeeper_Expecter) Context(ctx interface{}) *Gatekeeper_Context_Call
- func (_e *Gatekeeper_Expecter) ContextWithRequest(ctx interface{}, req interface{}) *Gatekeeper_ContextWithRequest_Call
- func (_e *Gatekeeper_Expecter) StreamServerInterceptor() *Gatekeeper_StreamServerInterceptor_Call
- func (_e *Gatekeeper_Expecter) UnaryServerInterceptor() *Gatekeeper_UnaryServerInterceptor_Call
- type Gatekeeper_StreamServerInterceptor_Call
- func (_c *Gatekeeper_StreamServerInterceptor_Call) Return(streamServerInterceptor grpc.StreamServerInterceptor) *Gatekeeper_StreamServerInterceptor_Call
- func (_c *Gatekeeper_StreamServerInterceptor_Call) Run(run func()) *Gatekeeper_StreamServerInterceptor_Call
- func (_c *Gatekeeper_StreamServerInterceptor_Call) RunAndReturn(run func() grpc.StreamServerInterceptor) *Gatekeeper_StreamServerInterceptor_Call
- type Gatekeeper_UnaryServerInterceptor_Call
- func (_c *Gatekeeper_UnaryServerInterceptor_Call) Return(unaryServerInterceptor grpc.UnaryServerInterceptor) *Gatekeeper_UnaryServerInterceptor_Call
- func (_c *Gatekeeper_UnaryServerInterceptor_Call) Run(run func()) *Gatekeeper_UnaryServerInterceptor_Call
- func (_c *Gatekeeper_UnaryServerInterceptor_Call) RunAndReturn(run func() grpc.UnaryServerInterceptor) *Gatekeeper_UnaryServerInterceptor_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gatekeeper ¶
Gatekeeper is an autogenerated mock type for the Gatekeeper type
func NewGatekeeper ¶
func NewGatekeeper(t interface {
mock.TestingT
Cleanup(func())
}) *Gatekeeper
NewGatekeeper creates a new instance of Gatekeeper. 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 (*Gatekeeper) ContextWithRequest ¶
func (_mock *Gatekeeper) ContextWithRequest(ctx context.Context, req interface{}) (context.Context, error)
ContextWithRequest provides a mock function for the type Gatekeeper
func (*Gatekeeper) EXPECT ¶
func (_m *Gatekeeper) EXPECT() *Gatekeeper_Expecter
func (*Gatekeeper) StreamServerInterceptor ¶
func (_mock *Gatekeeper) StreamServerInterceptor() grpc.StreamServerInterceptor
StreamServerInterceptor provides a mock function for the type Gatekeeper
func (*Gatekeeper) UnaryServerInterceptor ¶
func (_mock *Gatekeeper) UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor provides a mock function for the type Gatekeeper
type Gatekeeper_ContextWithRequest_Call ¶
Gatekeeper_ContextWithRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ContextWithRequest'
func (*Gatekeeper_ContextWithRequest_Call) Return ¶
func (_c *Gatekeeper_ContextWithRequest_Call) Return(context1 context.Context, err error) *Gatekeeper_ContextWithRequest_Call
func (*Gatekeeper_ContextWithRequest_Call) Run ¶
func (_c *Gatekeeper_ContextWithRequest_Call) Run(run func(ctx context.Context, req interface{})) *Gatekeeper_ContextWithRequest_Call
func (*Gatekeeper_ContextWithRequest_Call) RunAndReturn ¶
func (_c *Gatekeeper_ContextWithRequest_Call) RunAndReturn(run func(ctx context.Context, req interface{}) (context.Context, error)) *Gatekeeper_ContextWithRequest_Call
type Gatekeeper_Context_Call ¶
Gatekeeper_Context_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Context'
func (*Gatekeeper_Context_Call) Return ¶
func (_c *Gatekeeper_Context_Call) Return(context1 context.Context, err error) *Gatekeeper_Context_Call
func (*Gatekeeper_Context_Call) Run ¶
func (_c *Gatekeeper_Context_Call) Run(run func(ctx context.Context)) *Gatekeeper_Context_Call
func (*Gatekeeper_Context_Call) RunAndReturn ¶
func (_c *Gatekeeper_Context_Call) RunAndReturn(run func(ctx context.Context) (context.Context, error)) *Gatekeeper_Context_Call
type Gatekeeper_Expecter ¶
type Gatekeeper_Expecter struct {
// contains filtered or unexported fields
}
func (*Gatekeeper_Expecter) Context ¶
func (_e *Gatekeeper_Expecter) Context(ctx interface{}) *Gatekeeper_Context_Call
Context is a helper method to define mock.On call
- ctx context.Context
func (*Gatekeeper_Expecter) ContextWithRequest ¶
func (_e *Gatekeeper_Expecter) ContextWithRequest(ctx interface{}, req interface{}) *Gatekeeper_ContextWithRequest_Call
ContextWithRequest is a helper method to define mock.On call
- ctx context.Context
- req interface{}
func (*Gatekeeper_Expecter) StreamServerInterceptor ¶
func (_e *Gatekeeper_Expecter) StreamServerInterceptor() *Gatekeeper_StreamServerInterceptor_Call
StreamServerInterceptor is a helper method to define mock.On call
func (*Gatekeeper_Expecter) UnaryServerInterceptor ¶
func (_e *Gatekeeper_Expecter) UnaryServerInterceptor() *Gatekeeper_UnaryServerInterceptor_Call
UnaryServerInterceptor is a helper method to define mock.On call
type Gatekeeper_StreamServerInterceptor_Call ¶
Gatekeeper_StreamServerInterceptor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamServerInterceptor'
func (*Gatekeeper_StreamServerInterceptor_Call) Return ¶
func (_c *Gatekeeper_StreamServerInterceptor_Call) Return(streamServerInterceptor grpc.StreamServerInterceptor) *Gatekeeper_StreamServerInterceptor_Call
func (*Gatekeeper_StreamServerInterceptor_Call) Run ¶
func (_c *Gatekeeper_StreamServerInterceptor_Call) Run(run func()) *Gatekeeper_StreamServerInterceptor_Call
func (*Gatekeeper_StreamServerInterceptor_Call) RunAndReturn ¶
func (_c *Gatekeeper_StreamServerInterceptor_Call) RunAndReturn(run func() grpc.StreamServerInterceptor) *Gatekeeper_StreamServerInterceptor_Call
type Gatekeeper_UnaryServerInterceptor_Call ¶
Gatekeeper_UnaryServerInterceptor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnaryServerInterceptor'
func (*Gatekeeper_UnaryServerInterceptor_Call) Return ¶
func (_c *Gatekeeper_UnaryServerInterceptor_Call) Return(unaryServerInterceptor grpc.UnaryServerInterceptor) *Gatekeeper_UnaryServerInterceptor_Call
func (*Gatekeeper_UnaryServerInterceptor_Call) Run ¶
func (_c *Gatekeeper_UnaryServerInterceptor_Call) Run(run func()) *Gatekeeper_UnaryServerInterceptor_Call
func (*Gatekeeper_UnaryServerInterceptor_Call) RunAndReturn ¶
func (_c *Gatekeeper_UnaryServerInterceptor_Call) RunAndReturn(run func() grpc.UnaryServerInterceptor) *Gatekeeper_UnaryServerInterceptor_Call