func (i *imlProviderService) Save(ctx context.Context, id string, cfg *SetProvider) error { userId := utils.UserId(ctx) now := time.Now() info, err := i.store.First(ctx, map[string]interface{}{"uuid": id}) if err != nil { if !errors.Is(err, gorm.ErrRecordNotFound) { return err } if cfg.
(ctx context.Context, uuid string)
| 71 | //} |
| 72 | |
| 73 | func (i *imlProviderService) CheckUuidDuplicate(ctx context.Context, uuid string) bool { |
| 74 | v, _ := i.store.First(ctx, map[string]interface{}{"uuid": uuid}) |
| 75 | |
| 76 | return v != nil |
| 77 | } |
| 78 | |
| 79 | func (i *imlProviderService) GetLabels(ctx context.Context, ids ...string) map[string]string { |
| 80 | if len(ids) == 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected