(worker *machines.Worker)
| 94 | } |
| 95 | |
| 96 | func getHealthStatus(worker *machines.Worker) string { |
| 97 | switch worker.HealthStatus { |
| 98 | case "Healthy": |
| 99 | return output.Green(worker.HealthStatus) |
| 100 | case "Unhealthy": |
| 101 | return output.Red(worker.HealthStatus) |
| 102 | default: |
| 103 | return output.Yellow(worker.HealthStatus) |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func GetWorkerPoolMap(opts *ViewOptions) (map[string]string, error) { |
| 108 | workerPoolMap := make(map[string]string) |