(client *client.Client)
| 43 | } |
| 44 | |
| 45 | func getAllWorkerPools(client *client.Client) ([]*workerpools.WorkerPoolListResult, error) { |
| 46 | res, err := client.WorkerPools.GetAll() |
| 47 | if err != nil { |
| 48 | return nil, err |
| 49 | } |
| 50 | |
| 51 | return util.SliceFilter(res, func(workerPool *workerpools.WorkerPoolListResult) bool { |
| 52 | return workerPool.CanAddWorkers |
| 53 | }), nil |
| 54 | } |
| 55 | |
| 56 | func FindWorkerPoolIds(opts *WorkerPoolOptions, flags *WorkerPoolFlags) ([]string, error) { |
| 57 | var ids []string |
no test coverage detected