(ctx context.Context, auth *coreauth.Auth)
| 670 | } |
| 671 | |
| 672 | func (s *Service) applyCoreAuthAddOrUpdate(ctx context.Context, auth *coreauth.Auth) { |
| 673 | auth = s.prepareCoreAuthForModelRegistration(ctx, auth) |
| 674 | if auth == nil { |
| 675 | return |
| 676 | } |
| 677 | s.completeModelRegistrationForAuth(ctx, auth) |
| 678 | s.syncPluginRuntime(ctx) |
| 679 | } |
| 680 | |
| 681 | func (s *Service) prepareCoreAuthForModelRegistration(ctx context.Context, auth *coreauth.Auth) *coreauth.Auth { |
| 682 | if s == nil || s.coreManager == nil || auth == nil || auth.ID == "" { |