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

Function getWorkers

pkg/cmd/workerpool/view/view.go:179–185  ·  view source on GitHub ↗
(opts *shared.ViewOptions, workerPool workerpools.IWorkerPool)

Source from the content-addressed store, hash-verified

177}
178
179func getWorkers(opts *shared.ViewOptions, workerPool workerpools.IWorkerPool) ([]*machines.Worker, error) {
180 if workerPool.GetWorkerPoolType() == workerpools.WorkerPoolTypeStatic {
181 return opts.Client.WorkerPools.GetWorkers(workerPool)
182 }
183 // Dynamic worker pools don't have static workers
184 return []*machines.Worker{}, nil
185}
186
187func calculateWorkerStats(workers []*machines.Worker) WorkerStats {
188 stats := WorkerStats{}

Callers 3

getWorkerPoolAsJsonFunction · 0.85
getWorkerPoolAsTableRowFunction · 0.85
getWorkerPoolAsBasicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected