internal/handlers: add credential library pagination
This commit is contained in:
1 parent
c6e80dbe32
commit
6b03363eb8
7 files changed
+958
-321
No files matched your search
@@ -273,7 +273,12 @@ func (c *Controller) registerGrpcServices(s *grpc.Server) error {
|
||||
services.RegisterCredentialStoreServiceServer(s, cs)
|
||||
}
|
||||
if _, ok := currentServices[services.CredentialLibraryService_ServiceDesc.ServiceName]; !ok {
|
||||
cl, err := credentiallibraries.NewService(c.baseContext, c.VaultCredentialRepoFn, c.IamRepoFn)
|
||||
cl, err := credentiallibraries.NewService(
|
||||
c.baseContext,
|
||||
c.IamRepoFn,
|
||||
c.VaultCredentialRepoFn,
|
||||
c.conf.RawConfig.Controller.MaxPageSize,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to create credential library handler service: %w", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user