(ctx context.Context, currentUser string, deployType int, id int64, paths []string)
| 818 | } |
| 819 | |
| 820 | func (c *ModelComponent) DeleteRuntimeFrameworkModes(ctx context.Context, currentUser string, deployType int, id int64, paths []string) ([]string, error) { |
| 821 | models, err := c.ms.ListByPath(ctx, paths) |
| 822 | if err != nil { |
| 823 | return nil, err |
| 824 | } |
| 825 | |
| 826 | var failedModels []string |
| 827 | for _, model := range models { |
| 828 | err = c.rrtfms.Delete(ctx, id, model.Repository.ID, deployType) |
| 829 | if err != nil { |
| 830 | failedModels = append(failedModels, model.Repository.Path) |
| 831 | } |
| 832 | } |
| 833 | |
| 834 | return failedModels, nil |
| 835 | } |
| 836 | |
| 837 | func (c *ModelComponent) ListModelsOfRuntimeFrameworks(ctx context.Context, currentUser, search, sort string, per, page int, deployType int) ([]types.Model, int, error) { |
| 838 | var ( |
no test coverage detected