(ctx context.Context, ids ...string)
| 77 | } |
| 78 | |
| 79 | func (i *imlProviderService) GetLabels(ctx context.Context, ids ...string) map[string]string { |
| 80 | if len(ids) == 0 { |
| 81 | return nil |
| 82 | } |
| 83 | list, err := i.store.ListQuery(ctx, "`uuid` in (?)", []interface{}{ids}, "id") |
| 84 | if err != nil { |
| 85 | return nil |
| 86 | } |
| 87 | return utils.SliceToMapO(list, func(i *ai.Provider) (string, string) { |
| 88 | return i.UUID, i.Name |
| 89 | }) |
| 90 | } |
| 91 | |
| 92 | func (i *imlProviderService) OnComplete() { |
| 93 | i.IServiceGet = universally.NewGet[Provider, ai.Provider](i.store, FromEntity) |
nothing calls this directly
no outgoing calls
no test coverage detected