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

Function NewGetWorkersOptionsForAllWorkers

pkg/cmd/worker/shared/worker.go:28–34  ·  view source on GitHub ↗
(dependencies *cmd.Dependencies)

Source from the content-addressed store, hash-verified

26}
27
28func NewGetWorkersOptionsForAllWorkers(dependencies *cmd.Dependencies) *GetWorkersOptions {
29 return &GetWorkersOptions{
30 GetWorkersCallback: func() ([]*machines.Worker, error) {
31 return GetWorkers(*dependencies.Client, nil)
32 },
33 }
34}
35
36func GetWorkers(client client.Client, filter func(*machines.Worker) bool) ([]*machines.Worker, error) {
37 allWorkers, err := client.Workers.GetAll()

Callers

nothing calls this directly

Calls 1

GetWorkersFunction · 0.85

Tested by

no test coverage detected