TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.
(hostname string)
| 297 | // TokenFromKeyring will retrieve the auth token for the given hostname, |
| 298 | // only searching in encrypted storage. |
| 299 | func (c *AuthConfig) TokenFromKeyring(hostname string) (string, error) { |
| 300 | return keyring.Get(keyringServiceName(hostname), "") |
| 301 | } |
| 302 | |
| 303 | // TokenFromKeyringForUser will retrieve the auth token for the given hostname |
| 304 | // and username, only searching in encrypted storage. |
no test coverage detected