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

Function GetWorkerPoolMap

pkg/cmd/worker/shared/view.go:107–118  ·  view source on GitHub ↗
(opts *ViewOptions)

Source from the content-addressed store, hash-verified

105}
106
107func 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
120func resolveValues(keys []string, lookup map[string]string) []string {
121 var values []string

Callers 4

getWorkerAsJsonFunction · 0.92
getWorkerAsTableRowFunction · 0.92
getWorkerAsBasicFunction · 0.92
ViewRunFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected