MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / getInstances

Function getInstances

commands/mta_command.go:156–164  ·  view source on GitHub ↗
(processes []models.ApplicationProcessStatistics)

Source from the content-addressed store, hash-verified

154}
155
156func getInstances(processes []models.ApplicationProcessStatistics) string {
157 var runningProcesses []models.ApplicationProcessStatistics
158 for _, process := range processes {
159 if process.State == "RUNNING" {
160 runningProcesses = append(runningProcesses, process)
161 }
162 }
163 return strconv.Itoa(len(runningProcesses)) + "/" + strconv.Itoa(len(processes))
164}
165
166func formatRoutes(routes []models.ApplicationRoute) string {
167 var urls []string

Callers 1

executeInternalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected