TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.
(hostname string)
| 311 | // TokenFromKeyring will retrieve the auth token for the given hostname, |
| 312 | // only searching in encrypted storage. |
| 313 | func (c *AuthConfig) TokenFromKeyring(hostname string) (string, error) { |
| 314 | return keyring.Get(keyringServiceName(hostname), "") |
| 315 | } |
| 316 | |
| 317 | // TokenFromKeyringForUser will retrieve the auth token for the given hostname |
| 318 | // and username, only searching in encrypted storage. |
no test coverage detected