MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / getAllWorkerPools

Function getAllWorkerPools

pkg/cmd/worker/shared/workerpool.go:45–54  ·  view source on GitHub ↗
(client *client.Client)

Source from the content-addressed store, hash-verified

43}
44
45func 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
56func FindWorkerPoolIds(opts *WorkerPoolOptions, flags *WorkerPoolFlags) ([]string, error) {
57 var ids []string

Callers 1

NewWorkerPoolOptionsFunction · 0.70

Calls 1

SliceFilterFunction · 0.92

Tested by

no test coverage detected