MCPcopy Index your code
hub / github.com/docker/docker-agent / retryWithCredentials

Method retryWithCredentials

pkg/remote/pull.go:247–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245}
246
247func (s *session) retryWithCredentials() error {
248 if s.fellBack {
249 return nil
250 }
251 puller, err := remote.NewPuller(s.remoteOptions(nil)...)
252 if err != nil {
253 return err
254 }
255 s.puller = puller
256 s.fellBack = true
257 return nil
258}
259
260// remoteOptions builds the options for a puller, reusing the exact remote.Option
261// slice crane assembled (transport, context, platform, user-agent, jobs, ...).

Callers 2

withFallbackMethod · 0.95
storeArtifactFunction · 0.80

Calls 1

remoteOptionsMethod · 0.95

Tested by

no test coverage detected