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)
| 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 |
| 64 | func 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 |
no outgoing calls