()
| 425 | } |
| 426 | |
| 427 | func (c *AuthConfig) Hosts() []string { |
| 428 | if c.hostsOverride != nil { |
| 429 | return c.hostsOverride() |
| 430 | } |
| 431 | return ghauth.KnownHosts() |
| 432 | } |
| 433 | |
| 434 | // APIHostForHost returns the api_host configured for host, reporting false when |
| 435 | // the host has no api_host set. It is the inverse of HostForAPIHost. |