- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getCachedCredentials (0.49 sec)
-
pkg/credentialprovider/plugin/plugin.go
if matched, _ := credentialprovider.URLsMatchStr(matchImage, image); matched { return true } } return false } // getCachedCredentials returns a credentialprovider.DockerConfig if cached from the plugin. func (p *pluginProvider) getCachedCredentials(image string) (credentialprovider.DockerConfig, bool, error) { p.Lock() if p.clock.Now().After(p.lastCachePurge.Add(cachePurgeInterval)) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 05 05:07:28 UTC 2024 - 17.1K bytes - Viewed (0) -
pkg/credentialprovider/plugin/plugin_test.go
}, }, } for _, tc := range testcases { t.Run(tc.name, func(t *testing.T) { p.cache.Add(&tc.cacheEntry) fakeClock.Step(tc.step) // getCachedCredentials returns unexpired credentials. res, _, err := p.getCachedCredentials(tc.getKey) if err != nil { t.Errorf("Unexpected error %v", err) } if !reflect.DeepEqual(res, tc.expectedResponse) { t.Logf("response %v", res)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 09 06:11:06 UTC 2022 - 26.5K bytes - Viewed (0)