internal/handlers: add pagination to storage policies
This commit is contained in:
1 parent
b454b28912
commit
07be75b7be
5 files changed
+275
-99
No files matched your search
@@ -227,6 +227,7 @@ func (c *Controller) registerGrpcServices(s *grpc.Server) error {
|
||||
ps, err := policies.NewServiceFn(
|
||||
c.baseContext,
|
||||
c.IamRepoFn,
|
||||
c.conf.RawConfig.Controller.MaxPageSize,
|
||||
c.ControllerExtension,
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
@@ -37,6 +37,7 @@ var (
|
||||
// NewServiceFn returns a policy service which is not implemented in OSS
|
||||
var NewServiceFn = func(ctx context.Context,
|
||||
iamRepoFn common.IamRepoFactory,
|
||||
maxPageSize uint,
|
||||
controllerExt internalglobals.ControllerExtension,
|
||||
) (pbs.PolicyServiceServer, error) {
|
||||
return &Service{}, nil
|
||||
|
||||
Reference in new issue
Block a user