mirror of
https://github.com/paralus/paralus.git
synced 2026-05-07 00:46:52 +00:00
* restructure rcloud-base as a single base controller * updated master.rest * moved sentry from internal to pkg as it is used by relay * removing unused rpc and it's dependencies * Fix usermgmt tests * Don't redefine variables in rest file Co-authored-by: Abin Simon <abin.simon@rafay.co>
23 lines
649 B
Go
23 lines
649 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/RafaySystems/rcloud-base/pkg/service"
|
|
rpcv3 "github.com/RafaySystems/rcloud-base/proto/rpc/role"
|
|
rolepbv3 "github.com/RafaySystems/rcloud-base/proto/types/rolepb/v3"
|
|
)
|
|
|
|
type rolepermissionServer struct {
|
|
service.RolepermissionService
|
|
}
|
|
|
|
// NewRolePermissionServer returns new role server implementation
|
|
func NewRolePermissionServer(ps service.RolepermissionService) rpcv3.RolepermissionServer {
|
|
return &rolepermissionServer{ps}
|
|
}
|
|
|
|
func (s *rolepermissionServer) GetRolepermissions(ctx context.Context, p *rolepbv3.RolePermission) (*rolepbv3.RolePermissionList, error) {
|
|
return s.List(ctx, p)
|
|
}
|