Documentation ¶
Overview ¶
Package role_mock is a generated GoMock package.
Index ¶
- type MockRoleAPIClient
- func (m *MockRoleAPIClient) AssignRole(ctx context.Context, in *v1.AssignRoleRequest, opts ...grpc.CallOption) (*v1.AssignRoleResponse, error)
- func (m *MockRoleAPIClient) Authorize(ctx context.Context, in *v1.AuthorizeRequest, opts ...grpc.CallOption) (*v1.AuthorizeResponse, error)
- func (m *MockRoleAPIClient) CreateRole(ctx context.Context, in *v1.CreateRoleRequest, opts ...grpc.CallOption) (*v1.CreateRoleResponse, error)
- func (m *MockRoleAPIClient) DeleteRoles(ctx context.Context, in *v1.DeleteRolesRequest, opts ...grpc.CallOption) (*v1.DeleteRolesResponse, error)
- func (m *MockRoleAPIClient) EXPECT() *MockRoleAPIClientMockRecorder
- func (m *MockRoleAPIClient) GetAssignedRoles(ctx context.Context, in *v1.GetAssignedRolesRequest, opts ...grpc.CallOption) (*v1.GetAssignedRolesResponse, error)
- func (m *MockRoleAPIClient) GetRole(ctx context.Context, in *v1.GetRoleRequest, opts ...grpc.CallOption) (*v1.GetRoleResponse, error)
- func (m *MockRoleAPIClient) RemovePermissions(ctx context.Context, in *v1.RemovePermissionsRequest, opts ...grpc.CallOption) (*v1.RemovePermissionsResponse, error)
- func (m *MockRoleAPIClient) RevokeRole(ctx context.Context, in *v1.RevokeRoleRequest, opts ...grpc.CallOption) (*v1.RevokeRoleResponse, error)
- func (m *MockRoleAPIClient) RevokeRoles(ctx context.Context, in *v1.RevokeRolesRequest, opts ...grpc.CallOption) (*v1.RevokeRolesResponse, error)
- func (m *MockRoleAPIClient) UpdateRole(ctx context.Context, in *v1.UpdateRoleRequest, opts ...grpc.CallOption) (*v1.UpdateRoleResponse, error)
- type MockRoleAPIClientMockRecorder
- func (mr *MockRoleAPIClientMockRecorder) AssignRole(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRoleAPIClientMockRecorder) Authorize(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRoleAPIClientMockRecorder) CreateRole(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRoleAPIClientMockRecorder) DeleteRoles(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRoleAPIClientMockRecorder) GetAssignedRoles(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRoleAPIClientMockRecorder) GetRole(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRoleAPIClientMockRecorder) RemovePermissions(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRoleAPIClientMockRecorder) RevokeRole(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRoleAPIClientMockRecorder) RevokeRoles(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockRoleAPIClientMockRecorder) UpdateRole(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockRoleAPIServer
- func (m *MockRoleAPIServer) AssignRole(arg0 context.Context, arg1 *v1.AssignRoleRequest) (*v1.AssignRoleResponse, error)
- func (m *MockRoleAPIServer) Authorize(arg0 context.Context, arg1 *v1.AuthorizeRequest) (*v1.AuthorizeResponse, error)
- func (m *MockRoleAPIServer) CreateRole(arg0 context.Context, arg1 *v1.CreateRoleRequest) (*v1.CreateRoleResponse, error)
- func (m *MockRoleAPIServer) DeleteRoles(arg0 context.Context, arg1 *v1.DeleteRolesRequest) (*v1.DeleteRolesResponse, error)
- func (m *MockRoleAPIServer) EXPECT() *MockRoleAPIServerMockRecorder
- func (m *MockRoleAPIServer) GetAssignedRoles(arg0 context.Context, arg1 *v1.GetAssignedRolesRequest) (*v1.GetAssignedRolesResponse, error)
- func (m *MockRoleAPIServer) GetRole(arg0 context.Context, arg1 *v1.GetRoleRequest) (*v1.GetRoleResponse, error)
- func (m *MockRoleAPIServer) RemovePermissions(arg0 context.Context, arg1 *v1.RemovePermissionsRequest) (*v1.RemovePermissionsResponse, error)
- func (m *MockRoleAPIServer) RevokeRole(arg0 context.Context, arg1 *v1.RevokeRoleRequest) (*v1.RevokeRoleResponse, error)
- func (m *MockRoleAPIServer) RevokeRoles(arg0 context.Context, arg1 *v1.RevokeRolesRequest) (*v1.RevokeRolesResponse, error)
- func (m *MockRoleAPIServer) UpdateRole(arg0 context.Context, arg1 *v1.UpdateRoleRequest) (*v1.UpdateRoleResponse, error)
- type MockRoleAPIServerMockRecorder
- func (mr *MockRoleAPIServerMockRecorder) AssignRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleAPIServerMockRecorder) Authorize(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleAPIServerMockRecorder) CreateRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleAPIServerMockRecorder) DeleteRoles(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleAPIServerMockRecorder) GetAssignedRoles(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleAPIServerMockRecorder) GetRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleAPIServerMockRecorder) RemovePermissions(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleAPIServerMockRecorder) RevokeRole(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleAPIServerMockRecorder) RevokeRoles(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRoleAPIServerMockRecorder) UpdateRole(arg0, arg1 interface{}) *gomock.Call
- type MockUnsafeRoleAPIServer
- type MockUnsafeRoleAPIServerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRoleAPIClient ¶
type MockRoleAPIClient struct {
// contains filtered or unexported fields
}
MockRoleAPIClient is a mock of RoleAPIClient interface.
func NewMockRoleAPIClient ¶
func NewMockRoleAPIClient(ctrl *gomock.Controller) *MockRoleAPIClient
NewMockRoleAPIClient creates a new mock instance.
func (*MockRoleAPIClient) AssignRole ¶
func (m *MockRoleAPIClient) AssignRole(ctx context.Context, in *v1.AssignRoleRequest, opts ...grpc.CallOption) (*v1.AssignRoleResponse, error)
AssignRole mocks base method.
func (*MockRoleAPIClient) Authorize ¶ added in v0.2.33
func (m *MockRoleAPIClient) Authorize(ctx context.Context, in *v1.AuthorizeRequest, opts ...grpc.CallOption) (*v1.AuthorizeResponse, error)
Authorize mocks base method.
func (*MockRoleAPIClient) CreateRole ¶
func (m *MockRoleAPIClient) CreateRole(ctx context.Context, in *v1.CreateRoleRequest, opts ...grpc.CallOption) (*v1.CreateRoleResponse, error)
CreateRole mocks base method.
func (*MockRoleAPIClient) DeleteRoles ¶
func (m *MockRoleAPIClient) DeleteRoles(ctx context.Context, in *v1.DeleteRolesRequest, opts ...grpc.CallOption) (*v1.DeleteRolesResponse, error)
DeleteRoles mocks base method.
func (*MockRoleAPIClient) EXPECT ¶
func (m *MockRoleAPIClient) EXPECT() *MockRoleAPIClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRoleAPIClient) GetAssignedRoles ¶
func (m *MockRoleAPIClient) GetAssignedRoles(ctx context.Context, in *v1.GetAssignedRolesRequest, opts ...grpc.CallOption) (*v1.GetAssignedRolesResponse, error)
GetAssignedRoles mocks base method.
func (*MockRoleAPIClient) GetRole ¶
func (m *MockRoleAPIClient) GetRole(ctx context.Context, in *v1.GetRoleRequest, opts ...grpc.CallOption) (*v1.GetRoleResponse, error)
GetRole mocks base method.
func (*MockRoleAPIClient) RemovePermissions ¶
func (m *MockRoleAPIClient) RemovePermissions(ctx context.Context, in *v1.RemovePermissionsRequest, opts ...grpc.CallOption) (*v1.RemovePermissionsResponse, error)
RemovePermissions mocks base method.
func (*MockRoleAPIClient) RevokeRole ¶
func (m *MockRoleAPIClient) RevokeRole(ctx context.Context, in *v1.RevokeRoleRequest, opts ...grpc.CallOption) (*v1.RevokeRoleResponse, error)
RevokeRole mocks base method.
func (*MockRoleAPIClient) RevokeRoles ¶
func (m *MockRoleAPIClient) RevokeRoles(ctx context.Context, in *v1.RevokeRolesRequest, opts ...grpc.CallOption) (*v1.RevokeRolesResponse, error)
RevokeRoles mocks base method.
func (*MockRoleAPIClient) UpdateRole ¶
func (m *MockRoleAPIClient) UpdateRole(ctx context.Context, in *v1.UpdateRoleRequest, opts ...grpc.CallOption) (*v1.UpdateRoleResponse, error)
UpdateRole mocks base method.
type MockRoleAPIClientMockRecorder ¶
type MockRoleAPIClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRoleAPIClientMockRecorder is the mock recorder for MockRoleAPIClient.
func (*MockRoleAPIClientMockRecorder) AssignRole ¶
func (mr *MockRoleAPIClientMockRecorder) AssignRole(ctx, in interface{}, opts ...interface{}) *gomock.Call
AssignRole indicates an expected call of AssignRole.
func (*MockRoleAPIClientMockRecorder) Authorize ¶ added in v0.2.33
func (mr *MockRoleAPIClientMockRecorder) Authorize(ctx, in interface{}, opts ...interface{}) *gomock.Call
Authorize indicates an expected call of Authorize.
func (*MockRoleAPIClientMockRecorder) CreateRole ¶
func (mr *MockRoleAPIClientMockRecorder) CreateRole(ctx, in interface{}, opts ...interface{}) *gomock.Call
CreateRole indicates an expected call of CreateRole.
func (*MockRoleAPIClientMockRecorder) DeleteRoles ¶
func (mr *MockRoleAPIClientMockRecorder) DeleteRoles(ctx, in interface{}, opts ...interface{}) *gomock.Call
DeleteRoles indicates an expected call of DeleteRoles.
func (*MockRoleAPIClientMockRecorder) GetAssignedRoles ¶
func (mr *MockRoleAPIClientMockRecorder) GetAssignedRoles(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetAssignedRoles indicates an expected call of GetAssignedRoles.
func (*MockRoleAPIClientMockRecorder) GetRole ¶
func (mr *MockRoleAPIClientMockRecorder) GetRole(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetRole indicates an expected call of GetRole.
func (*MockRoleAPIClientMockRecorder) RemovePermissions ¶
func (mr *MockRoleAPIClientMockRecorder) RemovePermissions(ctx, in interface{}, opts ...interface{}) *gomock.Call
RemovePermissions indicates an expected call of RemovePermissions.
func (*MockRoleAPIClientMockRecorder) RevokeRole ¶
func (mr *MockRoleAPIClientMockRecorder) RevokeRole(ctx, in interface{}, opts ...interface{}) *gomock.Call
RevokeRole indicates an expected call of RevokeRole.
func (*MockRoleAPIClientMockRecorder) RevokeRoles ¶
func (mr *MockRoleAPIClientMockRecorder) RevokeRoles(ctx, in interface{}, opts ...interface{}) *gomock.Call
RevokeRoles indicates an expected call of RevokeRoles.
func (*MockRoleAPIClientMockRecorder) UpdateRole ¶
func (mr *MockRoleAPIClientMockRecorder) UpdateRole(ctx, in interface{}, opts ...interface{}) *gomock.Call
UpdateRole indicates an expected call of UpdateRole.
type MockRoleAPIServer ¶
type MockRoleAPIServer struct {
// contains filtered or unexported fields
}
MockRoleAPIServer is a mock of RoleAPIServer interface.
func NewMockRoleAPIServer ¶
func NewMockRoleAPIServer(ctrl *gomock.Controller) *MockRoleAPIServer
NewMockRoleAPIServer creates a new mock instance.
func (*MockRoleAPIServer) AssignRole ¶
func (m *MockRoleAPIServer) AssignRole(arg0 context.Context, arg1 *v1.AssignRoleRequest) (*v1.AssignRoleResponse, error)
AssignRole mocks base method.
func (*MockRoleAPIServer) Authorize ¶ added in v0.2.33
func (m *MockRoleAPIServer) Authorize(arg0 context.Context, arg1 *v1.AuthorizeRequest) (*v1.AuthorizeResponse, error)
Authorize mocks base method.
func (*MockRoleAPIServer) CreateRole ¶
func (m *MockRoleAPIServer) CreateRole(arg0 context.Context, arg1 *v1.CreateRoleRequest) (*v1.CreateRoleResponse, error)
CreateRole mocks base method.
func (*MockRoleAPIServer) DeleteRoles ¶
func (m *MockRoleAPIServer) DeleteRoles(arg0 context.Context, arg1 *v1.DeleteRolesRequest) (*v1.DeleteRolesResponse, error)
DeleteRoles mocks base method.
func (*MockRoleAPIServer) EXPECT ¶
func (m *MockRoleAPIServer) EXPECT() *MockRoleAPIServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRoleAPIServer) GetAssignedRoles ¶
func (m *MockRoleAPIServer) GetAssignedRoles(arg0 context.Context, arg1 *v1.GetAssignedRolesRequest) (*v1.GetAssignedRolesResponse, error)
GetAssignedRoles mocks base method.
func (*MockRoleAPIServer) GetRole ¶
func (m *MockRoleAPIServer) GetRole(arg0 context.Context, arg1 *v1.GetRoleRequest) (*v1.GetRoleResponse, error)
GetRole mocks base method.
func (*MockRoleAPIServer) RemovePermissions ¶
func (m *MockRoleAPIServer) RemovePermissions(arg0 context.Context, arg1 *v1.RemovePermissionsRequest) (*v1.RemovePermissionsResponse, error)
RemovePermissions mocks base method.
func (*MockRoleAPIServer) RevokeRole ¶
func (m *MockRoleAPIServer) RevokeRole(arg0 context.Context, arg1 *v1.RevokeRoleRequest) (*v1.RevokeRoleResponse, error)
RevokeRole mocks base method.
func (*MockRoleAPIServer) RevokeRoles ¶
func (m *MockRoleAPIServer) RevokeRoles(arg0 context.Context, arg1 *v1.RevokeRolesRequest) (*v1.RevokeRolesResponse, error)
RevokeRoles mocks base method.
func (*MockRoleAPIServer) UpdateRole ¶
func (m *MockRoleAPIServer) UpdateRole(arg0 context.Context, arg1 *v1.UpdateRoleRequest) (*v1.UpdateRoleResponse, error)
UpdateRole mocks base method.
type MockRoleAPIServerMockRecorder ¶
type MockRoleAPIServerMockRecorder struct {
// contains filtered or unexported fields
}
MockRoleAPIServerMockRecorder is the mock recorder for MockRoleAPIServer.
func (*MockRoleAPIServerMockRecorder) AssignRole ¶
func (mr *MockRoleAPIServerMockRecorder) AssignRole(arg0, arg1 interface{}) *gomock.Call
AssignRole indicates an expected call of AssignRole.
func (*MockRoleAPIServerMockRecorder) Authorize ¶ added in v0.2.33
func (mr *MockRoleAPIServerMockRecorder) Authorize(arg0, arg1 interface{}) *gomock.Call
Authorize indicates an expected call of Authorize.
func (*MockRoleAPIServerMockRecorder) CreateRole ¶
func (mr *MockRoleAPIServerMockRecorder) CreateRole(arg0, arg1 interface{}) *gomock.Call
CreateRole indicates an expected call of CreateRole.
func (*MockRoleAPIServerMockRecorder) DeleteRoles ¶
func (mr *MockRoleAPIServerMockRecorder) DeleteRoles(arg0, arg1 interface{}) *gomock.Call
DeleteRoles indicates an expected call of DeleteRoles.
func (*MockRoleAPIServerMockRecorder) GetAssignedRoles ¶
func (mr *MockRoleAPIServerMockRecorder) GetAssignedRoles(arg0, arg1 interface{}) *gomock.Call
GetAssignedRoles indicates an expected call of GetAssignedRoles.
func (*MockRoleAPIServerMockRecorder) GetRole ¶
func (mr *MockRoleAPIServerMockRecorder) GetRole(arg0, arg1 interface{}) *gomock.Call
GetRole indicates an expected call of GetRole.
func (*MockRoleAPIServerMockRecorder) RemovePermissions ¶
func (mr *MockRoleAPIServerMockRecorder) RemovePermissions(arg0, arg1 interface{}) *gomock.Call
RemovePermissions indicates an expected call of RemovePermissions.
func (*MockRoleAPIServerMockRecorder) RevokeRole ¶
func (mr *MockRoleAPIServerMockRecorder) RevokeRole(arg0, arg1 interface{}) *gomock.Call
RevokeRole indicates an expected call of RevokeRole.
func (*MockRoleAPIServerMockRecorder) RevokeRoles ¶
func (mr *MockRoleAPIServerMockRecorder) RevokeRoles(arg0, arg1 interface{}) *gomock.Call
RevokeRoles indicates an expected call of RevokeRoles.
func (*MockRoleAPIServerMockRecorder) UpdateRole ¶
func (mr *MockRoleAPIServerMockRecorder) UpdateRole(arg0, arg1 interface{}) *gomock.Call
UpdateRole indicates an expected call of UpdateRole.
type MockUnsafeRoleAPIServer ¶
type MockUnsafeRoleAPIServer struct {
// contains filtered or unexported fields
}
MockUnsafeRoleAPIServer is a mock of UnsafeRoleAPIServer interface.
func NewMockUnsafeRoleAPIServer ¶
func NewMockUnsafeRoleAPIServer(ctrl *gomock.Controller) *MockUnsafeRoleAPIServer
NewMockUnsafeRoleAPIServer creates a new mock instance.
func (*MockUnsafeRoleAPIServer) EXPECT ¶
func (m *MockUnsafeRoleAPIServer) EXPECT() *MockUnsafeRoleAPIServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnsafeRoleAPIServerMockRecorder ¶
type MockUnsafeRoleAPIServerMockRecorder struct {
// contains filtered or unexported fields
}
MockUnsafeRoleAPIServerMockRecorder is the mock recorder for MockUnsafeRoleAPIServer.