(ctx context.Context)
| 222 | } |
| 223 | |
| 224 | func (s *Service) refreshPluginModelRegistrations(ctx context.Context) { |
| 225 | if s == nil || s.pluginHost == nil || s.coreManager == nil { |
| 226 | return |
| 227 | } |
| 228 | s.registerModelsForAuthBatch(ctx, s.coreManager.List()) |
| 229 | } |
| 230 | |
| 231 | func (s *Service) registerModelsForAuthBatch(ctx context.Context, auths []*coreauth.Auth) { |
| 232 | if s == nil || s.coreManager == nil || len(auths) == 0 { |
no test coverage detected