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

Method displaySharedTo

command/v7/service_command.go:227–233  ·  view source on GitHub ↗
(serviceInstanceWithDetails v7action.ServiceInstanceDetails)

Source from the content-addressed store, hash-verified

225}
226
227func (cmd ServiceCommand) displaySharedTo(serviceInstanceWithDetails v7action.ServiceInstanceDetails) {
228 table := [][]string{{"org", "space", "bindings"}}
229 for _, usageSummaryLine := range serviceInstanceWithDetails.SharedStatus.UsageSummary {
230 table = append(table, []string{usageSummaryLine.OrganizationName, usageSummaryLine.SpaceName, strconv.Itoa(usageSummaryLine.BoundAppCount)})
231 }
232 cmd.UI.DisplayTableWithHeader(indent, table, ui.DefaultTableSpacePadding)
233}
234
235func (cmd ServiceCommand) displayBoundApps(serviceInstanceWithDetails v7action.ServiceInstanceDetails) {
236 cmd.UI.DisplayText("Showing bound apps:")

Callers 1

displaySharingInfoMethod · 0.95

Calls 1

Tested by

no test coverage detected