{"modulePath":"github.com/OctopusDeploy/cli","version":"v1.7.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package shared\n\n## Functions\n\n```go\nfunc GetWorker(client client.Client, identifier string) (workerpools.IWorkerPool, error)\n```\n\n```go\nfunc GetWorkerPools(client client.Client) ([]*workerpools.WorkerPoolListResult, error)\n```\n\n```go\nfunc ViewRun(opts *ViewOptions, contributeDetails ContributeDetailsCallback) error\n```\n\n## Types\n\n```go\ntype ContributeDetailsCallback func(opts *ViewOptions, workerPool workerpools.IWorkerPool) ([]*output.DataRow, error)\n```\n\n```go\ntype GetWorkerPoolCallback func(identifer string) (workerpools.IWorkerPool, error)\n```\n\n```go\ntype GetWorkerPoolsCallback func() ([]*workerpools.WorkerPoolListResult, error)\n```\n\n```go\ntype GetWorkerPoolsOptions struct {\n\tGetWorkerPoolsCallback\n\tGetWorkerPoolCallback\n}\n```\n\n```go\nfunc NewGetWorkerPoolsOptions(dependencies *cmd.Dependencies) *GetWorkerPoolsOptions\n```\n\n```go\ntype ViewFlags struct {\n\t*machinescommon.WebFlags\n}\n```\n\n```go\nfunc NewViewFlags() *ViewFlags\n```\n\n```go\ntype ViewOptions struct {\n\t*cmd.Dependencies\n\tIdOrName string\n\t*ViewFlags\n}\n```\n\n```go\nfunc NewViewOptions(viewFlags *ViewFlags, dependencies *cmd.Dependencies, args []string) *ViewOptions\n```\n\n","path":"github.com/OctopusDeploy/cli/pkg/cmd/workerpool/shared","name":"shared","synopsis":"","isRedistributable":true}
