MCPcopy
hub / github.com/google/seesaw / statusSummary

Function statusSummary

cli/show.go:538–552  ·  view source on GitHub ↗
(enabled, healthy, active bool)

Source from the content-addressed store, hash-verified

536}
537
538func 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.
555func label(l string, indent, width int) string {

Callers 2

destSummaryFunction · 0.85
printVserverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected