(opts *ViewOptions)
| 105 | } |
| 106 | |
| 107 | func GetWorkerPoolMap(opts *ViewOptions) (map[string]string, error) { |
| 108 | workerPoolMap := make(map[string]string) |
| 109 | |
| 110 | allEnvs, err := opts.Client.WorkerPools.GetAll() |
| 111 | if err != nil { |
| 112 | return nil, err |
| 113 | } |
| 114 | for _, e := range allEnvs { |
| 115 | workerPoolMap[e.ID] = e.Name |
| 116 | } |
| 117 | return workerPoolMap, nil |
| 118 | } |
| 119 | |
| 120 | func resolveValues(keys []string, lookup map[string]string) []string { |
| 121 | var values []string |
no outgoing calls
no test coverage detected