(creds Creds)
| 417 | } |
| 418 | |
| 419 | func credCacheKey(creds Creds) string { |
| 420 | parts := []string{ |
| 421 | FirstEntryForKey(creds, "protocol"), |
| 422 | FirstEntryForKey(creds, "host"), |
| 423 | FirstEntryForKey(creds, "path"), |
| 424 | } |
| 425 | return strings.Join(parts, "//") |
| 426 | } |
| 427 | |
| 428 | func (c *credentialCacher) Fill(what Creds) (Creds, error) { |
| 429 | key := credCacheKey(what) |
no test coverage detected