(enabled, healthy, active bool)
| 536 | } |
| 537 | |
| 538 | func statusSummary(enabled, healthy, active bool) string { |
| 539 | status := "disabled" |
| 540 | if enabled { |
| 541 | health := "unhealthy" |
| 542 | if healthy { |
| 543 | health = "healthy" |
| 544 | } |
| 545 | act := "inactive" |
| 546 | if active { |
| 547 | act = "active" |
| 548 | } |
| 549 | status = fmt.Sprintf("enabled, %s, %s", health, act) |
| 550 | } |
| 551 | return status |
| 552 | } |
| 553 | |
| 554 | // label returns a string containing the label with indentation and padding. |
| 555 | func label(l string, indent, width int) string { |
no outgoing calls
no test coverage detected