TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.
(hostname string)
| 425 | // TokenFromKeyring will retrieve the auth token for the given hostname, |
| 426 | // only searching in encrypted storage. |
| 427 | func (c *AuthConfig) TokenFromKeyring(hostname string) (string, error) { |
| 428 | return keyring.Get(keyringServiceName(hostname), "") |
| 429 | } |
| 430 | |
| 431 | // TokenFromKeyringForUser will retrieve the auth token for the given hostname |
| 432 | // and username, only searching in encrypted storage. |
no test coverage detected