TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.
(hostname string)
| 401 | // TokenFromKeyring will retrieve the auth token for the given hostname, |
| 402 | // only searching in encrypted storage. |
| 403 | func (c *AuthConfig) TokenFromKeyring(hostname string) (string, error) { |
| 404 | return keyring.Get(keyringServiceName(hostname), "") |
| 405 | } |
| 406 | |
| 407 | // TokenFromKeyringForUser will retrieve the auth token for the given hostname |
| 408 | // and username, only searching in encrypted storage. |
no test coverage detected