MCPcopy
hub / github.com/cloudfoundry/cli / displayPropertiesManaged

Method displayPropertiesManaged

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

Source from the content-addressed store, hash-verified

133}
134
135func (cmd ServiceCommand) displayPropertiesManaged(serviceInstanceWithDetails v7action.ServiceInstanceDetails) {
136 table := [][]string{
137 {cmd.UI.TranslateText("name:"), serviceInstanceWithDetails.Name},
138 {cmd.UI.TranslateText("guid:"), serviceInstanceWithDetails.GUID},
139 {cmd.UI.TranslateText("type:"), string(serviceInstanceWithDetails.Type)},
140 {cmd.UI.TranslateText("broker:"), serviceInstanceWithDetails.ServiceBrokerName},
141 {cmd.UI.TranslateText("offering:"), serviceInstanceWithDetails.ServiceOffering.Name},
142 {cmd.UI.TranslateText("plan:"), serviceInstanceWithDetails.ServicePlan.Name},
143 {cmd.UI.TranslateText("tags:"), serviceInstanceWithDetails.Tags.String()},
144 {cmd.UI.TranslateText("offering tags:"), serviceInstanceWithDetails.ServiceOffering.Tags.String()},
145 {cmd.UI.TranslateText("description:"), serviceInstanceWithDetails.ServiceOffering.Description},
146 {cmd.UI.TranslateText("documentation:"), serviceInstanceWithDetails.ServiceOffering.DocumentationURL},
147 {cmd.UI.TranslateText("dashboard url:"), serviceInstanceWithDetails.DashboardURL.String()},
148 }
149 cmd.UI.DisplayKeyValueTable("", table, ui.DefaultTableSpacePadding)
150 cmd.UI.DisplayNewline()
151}
152
153func (cmd ServiceCommand) displaySharingInfo(serviceInstanceWithDetails v7action.ServiceInstanceDetails) {
154 cmd.UI.DisplayText("Showing sharing info:")

Callers 1

Calls 4

TranslateTextMethod · 0.65
StringMethod · 0.65
DisplayKeyValueTableMethod · 0.65
DisplayNewlineMethod · 0.65

Tested by

no test coverage detected