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

Function NewCreateTargetProxyOptions

pkg/machinescommon/proxy.go:52–59  ·  view source on GitHub ↗
(dependencies *cmd.Dependencies)

Source from the content-addressed store, hash-verified

50}
51
52func NewCreateTargetProxyOptions(dependencies *cmd.Dependencies) *CreateTargetProxyOptions {
53 return &CreateTargetProxyOptions{
54 Dependencies: dependencies,
55 GetAllProxiesCallback: func() ([]*proxies.Proxy, error) {
56 return getAllProxies(*dependencies.Client)
57 },
58 }
59}
60
61func RegisterCreateTargetProxyFlags(cmd *cobra.Command, proxyFlags *CreateTargetProxyFlags, description string) {
62 cmd.Flags().StringVar(&proxyFlags.Proxy.Value, FlagProxy, "", fmt.Sprintf("Select whether to use a proxy to connect to this %s. If omitted, will connect directly.", description))

Callers 5

NewCreateOptionsFunction · 0.92
NewCreateOptionsFunction · 0.92

Calls 1

getAllProxiesFunction · 0.85