MCPcopy Index your code
hub / github.com/cloudfoundry/cli / formatSecurityGroupNames

Function formatSecurityGroupNames

command/v7/space_command.go:84–92  ·  view source on GitHub ↗
(groups []resources.SecurityGroup)

Source from the content-addressed store, hash-verified

82}
83
84func 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
94func (cmd SpaceCommand) displaySecurityGroupRulesTable(spaceSummary v7action.SpaceSummary) {
95 tableHeaders := []string{"security group", "destination", "ports", "protocol", "lifecycle", "description"}

Callers 1

ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected