Documentation
¶
Overview ¶
Package mock_authorize is a generated GoMock package.
Index ¶
- type MockAuthorizerClient
- func (m *MockAuthorizerClient) Authorize(ctx context.Context, in *authorize.Identity, opts ...grpc.CallOption) (*authorize.AuthorizeReply, error)
- func (m *MockAuthorizerClient) EXPECT() *MockAuthorizerClientMockRecorder
- func (m *MockAuthorizerClient) IsAdmin(ctx context.Context, in *authorize.Identity, opts ...grpc.CallOption) (*authorize.IsAdminReply, error)
- type MockAuthorizerClientMockRecorder
- type MockAuthorizerServer
- func (m *MockAuthorizerServer) Authorize(arg0 context.Context, arg1 *authorize.Identity) (*authorize.AuthorizeReply, error)
- func (m *MockAuthorizerServer) EXPECT() *MockAuthorizerServerMockRecorder
- func (m *MockAuthorizerServer) IsAdmin(arg0 context.Context, arg1 *authorize.Identity) (*authorize.IsAdminReply, error)
- type MockAuthorizerServerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthorizerClient ¶
type MockAuthorizerClient struct {
// contains filtered or unexported fields
}
MockAuthorizerClient is a mock of AuthorizerClient interface
func NewMockAuthorizerClient ¶
func NewMockAuthorizerClient(ctrl *gomock.Controller) *MockAuthorizerClient
NewMockAuthorizerClient creates a new mock instance
func (*MockAuthorizerClient) Authorize ¶
func (m *MockAuthorizerClient) Authorize(ctx context.Context, in *authorize.Identity, opts ...grpc.CallOption) (*authorize.AuthorizeReply, error)
Authorize mocks base method
func (*MockAuthorizerClient) EXPECT ¶
func (m *MockAuthorizerClient) EXPECT() *MockAuthorizerClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAuthorizerClient) IsAdmin ¶ added in v0.0.5
func (m *MockAuthorizerClient) IsAdmin(ctx context.Context, in *authorize.Identity, opts ...grpc.CallOption) (*authorize.IsAdminReply, error)
IsAdmin mocks base method
type MockAuthorizerClientMockRecorder ¶
type MockAuthorizerClientMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizerClientMockRecorder is the mock recorder for MockAuthorizerClient
func (*MockAuthorizerClientMockRecorder) Authorize ¶
func (mr *MockAuthorizerClientMockRecorder) Authorize(ctx, in interface{}, opts ...interface{}) *gomock.Call
Authorize indicates an expected call of Authorize
func (*MockAuthorizerClientMockRecorder) IsAdmin ¶ added in v0.0.5
func (mr *MockAuthorizerClientMockRecorder) IsAdmin(ctx, in interface{}, opts ...interface{}) *gomock.Call
IsAdmin indicates an expected call of IsAdmin
type MockAuthorizerServer ¶ added in v0.0.5
type MockAuthorizerServer struct {
// contains filtered or unexported fields
}
MockAuthorizerServer is a mock of AuthorizerServer interface
func NewMockAuthorizerServer ¶ added in v0.0.5
func NewMockAuthorizerServer(ctrl *gomock.Controller) *MockAuthorizerServer
NewMockAuthorizerServer creates a new mock instance
func (*MockAuthorizerServer) Authorize ¶ added in v0.0.5
func (m *MockAuthorizerServer) Authorize(arg0 context.Context, arg1 *authorize.Identity) (*authorize.AuthorizeReply, error)
Authorize mocks base method
func (*MockAuthorizerServer) EXPECT ¶ added in v0.0.5
func (m *MockAuthorizerServer) EXPECT() *MockAuthorizerServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAuthorizerServer) IsAdmin ¶ added in v0.0.5
func (m *MockAuthorizerServer) IsAdmin(arg0 context.Context, arg1 *authorize.Identity) (*authorize.IsAdminReply, error)
IsAdmin mocks base method
type MockAuthorizerServerMockRecorder ¶ added in v0.0.5
type MockAuthorizerServerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizerServerMockRecorder is the mock recorder for MockAuthorizerServer
func (*MockAuthorizerServerMockRecorder) Authorize ¶ added in v0.0.5
func (mr *MockAuthorizerServerMockRecorder) Authorize(arg0, arg1 interface{}) *gomock.Call
Authorize indicates an expected call of Authorize
func (*MockAuthorizerServerMockRecorder) IsAdmin ¶ added in v0.0.5
func (mr *MockAuthorizerServerMockRecorder) IsAdmin(arg0, arg1 interface{}) *gomock.Call
IsAdmin indicates an expected call of IsAdmin