(restrictResources bool, resources []*adminv1.ResourceName)
| 618 | } |
| 619 | |
| 620 | func formatResourceNamesPB(restrictResources bool, resources []*adminv1.ResourceName) string { |
| 621 | if !restrictResources { |
| 622 | return "all" |
| 623 | } |
| 624 | if len(resources) == 0 { |
| 625 | return "none" |
| 626 | } |
| 627 | var parts []string |
| 628 | for _, r := range resources { |
| 629 | parts = append(parts, fmt.Sprintf("%s/%s", r.Type, r.Name)) |
| 630 | } |
| 631 | sort.Strings(parts) |
| 632 | return strings.Join(parts, ", ") |
| 633 | } |
| 634 | |
| 635 | func (p *Printer) PrintModelPartitions(partitions []*runtimev1.ModelPartition) { |
| 636 | if len(partitions) == 0 { |
no outgoing calls
no test coverage detected