(groups []resources.SecurityGroup)
| 82 | } |
| 83 | |
| 84 | func formatSecurityGroupNames(groups []resources.SecurityGroup) string { |
| 85 | var names []string |
| 86 | |
| 87 | for _, group := range groups { |
| 88 | names = append(names, group.Name) |
| 89 | } |
| 90 | |
| 91 | return strings.Join(names, ", ") |
| 92 | } |
| 93 | |
| 94 | func (cmd SpaceCommand) displaySecurityGroupRulesTable(spaceSummary v7action.SpaceSummary) { |
| 95 | tableHeaders := []string{"security group", "destination", "ports", "protocol", "lifecycle", "description"} |