ActiveToken will retrieve the active auth token for the given hostname, searching environment variables, general configuration, and finally encrypted storage.
(hostname string)
| 140 | // ActiveToken will retrieve the active auth token for the given hostname, searching environment variables, |
| 141 | // general configuration, and finally encrypted storage. |
| 142 | ActiveToken(hostname string) (token string, source string) |
| 143 | |
| 144 | // ActiveTokenType reports what kind of credential the active token for the |
| 145 | // hostname is, so a caller can decide whether it will do without handling |
no outgoing calls