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

Function ContributeProxy

pkg/cmd/worker/shared/view.go:75–85  ·  view source on GitHub ↗
(opts *ViewOptions, proxyID string)

Source from the content-addressed store, hash-verified

73}
74
75func ContributeProxy(opts *ViewOptions, proxyID string) ([]*output.DataRow, error) {
76 if proxyID != "" {
77 proxy, err := opts.Client.Proxies.GetById(proxyID)
78 if err != nil {
79 return nil, err
80 }
81 return []*output.DataRow{output.NewDataRow("Proxy", proxy.GetName())}, nil
82 }
83
84 return []*output.DataRow{output.NewDataRow("Proxy", "None")}, nil
85}
86
87func ContributeAccount(opts *ViewOptions, accountID string) ([]*output.DataRow, error) {
88 account, err := opts.Client.Accounts.GetByID(accountID)

Callers 2

contributeEndpointFunction · 0.92
contributeEndpointFunction · 0.92

Calls 2

NewDataRowFunction · 0.92
GetNameMethod · 0.65

Tested by

no test coverage detected