TokenFromKeyring will retrieve the auth token for the given hostname, only searching in encrypted storage.
(hostname string)
| 317 | // TokenFromKeyring will retrieve the auth token for the given hostname, |
| 318 | // only searching in encrypted storage. |
| 319 | func (c *AuthConfig) TokenFromKeyring(hostname string) (string, error) { |
| 320 | return keyring.Get(keyringServiceName(hostname), "") |
| 321 | } |
| 322 | |
| 323 | // TokenFromKeyringForUser will retrieve the auth token for the given hostname |
| 324 | // and username, only searching in encrypted storage. |
no test coverage detected