MCPcopy Index your code
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / WithUserAgent

Function WithUserAgent

cmd/options.go:64–68  ·  view source on GitHub ↗

WithUserAgent sets additional user agents for Admin API tracking and should be a space separated list of additional user agents, e.g. cloud-sql-proxy-operator/0.0.1,other-agent/1.0.0

(agent string)

Source from the content-addressed store, hash-verified

62// be a space separated list of additional user agents, e.g.
63// cloud-sql-proxy-operator/0.0.1,other-agent/1.0.0
64func WithUserAgent(agent string) Option {
65 return func(c *Command) {
66 c.conf.OtherUserAgents = agent
67 }
68}
69
70// WithAutoIP enables legacy behavior of v1 and will try to connect to first IP
71// address returned by the SQL Admin API. In most cases, this flag should not

Callers 1

TestCommandOptionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCommandOptionsFunction · 0.68