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

Function GetWorker

pkg/cmd/worker/shared/worker.go:57–64  ·  view source on GitHub ↗
(client client.Client, identifier string)

Source from the content-addressed store, hash-verified

55}
56
57func GetWorker(client client.Client, identifier string) (*machines.Worker, error) {
58 worker, err := client.Workers.GetByIdentifier(identifier)
59 if err != nil {
60 return nil, err
61 }
62
63 return worker, nil
64}

Callers 1

NewGetWorkersOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected