SetDefaultHost will override any host resolution and return the given host and source for all calls to DefaultHost. Use for testing purposes only.
(host, source string)
| 492 | // SetDefaultHost will override any host resolution and return the given |
| 493 | // host and source for all calls to DefaultHost. Use for testing purposes only. |
| 494 | func (c *AuthConfig) SetDefaultHost(host, source string) { |
| 495 | c.defaultHostOverride = func() (string, string) { |
| 496 | return host, source |
| 497 | } |
| 498 | } |
| 499 | |
| 500 | // Login will set user, git protocol, and auth token for the given hostname. |
| 501 | // If the encrypt option is specified it will first try to store the auth token |
no outgoing calls