(partitions []*runtimev1.ModelPartition)
| 642 | } |
| 643 | |
| 644 | func toModelPartitionsTable(partitions []*runtimev1.ModelPartition) []*modelPartition { |
| 645 | res := make([]*modelPartition, 0, len(partitions)) |
| 646 | for _, s := range partitions { |
| 647 | res = append(res, toModelPartitionRow(s)) |
| 648 | } |
| 649 | return res |
| 650 | } |
| 651 | |
| 652 | func toModelPartitionRow(s *runtimev1.ModelPartition) *modelPartition { |
| 653 | data, err := json.Marshal(s.Data) |
no test coverage detected