(ctx context.Context, providerId string)
| 89 | } |
| 90 | |
| 91 | func (i *imlAIKeyService) DefaultKey(ctx context.Context, providerId string) (*Key, error) { |
| 92 | info, err := i.store.First(ctx, map[string]interface{}{"provider": providerId, "default": true}) |
| 93 | if err != nil { |
| 94 | return nil, err |
| 95 | } |
| 96 | return FromEntity(info), nil |
| 97 | } |
| 98 | |
| 99 | func (i *imlAIKeyService) KeysByProvider(ctx context.Context, providerId string) ([]*Key, error) { |
| 100 | list, err := i.store.List(ctx, map[string]interface{}{"provider": providerId}) |
nothing calls this directly
no test coverage detected