()
| 414 | } |
| 415 | |
| 416 | func (a *Auth) ProxyInfo() string { |
| 417 | if a == nil { |
| 418 | return "" |
| 419 | } |
| 420 | proxyStr := strings.TrimSpace(a.ProxyURL) |
| 421 | if proxyStr == "" { |
| 422 | return "" |
| 423 | } |
| 424 | if idx := strings.Index(proxyStr, "://"); idx > 0 { |
| 425 | return "via " + proxyStr[:idx] + " proxy" |
| 426 | } |
| 427 | return "via proxy" |
| 428 | } |
| 429 | |
| 430 | // DisableCoolingOverride returns the auth scoped disable_cooling override when present. |
| 431 | // The value is read from metadata key "disable_cooling" (or legacy "disable-cooling"). |
no outgoing calls
no test coverage detected