MCPcopy Create free account
hub / github.com/containers/image / resolveRequestURL

Method resolveRequestURL

docker/docker_client.go:469–476  ·  view source on GitHub ↗

resolveRequestURL turns a path for c.makeRequest into a full URL. Most users should call makeRequest directly, this exists basically to make the URL available for debug logs.

(path string)

Source from the content-addressed store, hash-verified

467// resolveRequestURL turns a path for c.makeRequest into a full URL.
468// Most users should call makeRequest directly, this exists basically to make the URL available for debug logs.
469func (c *dockerClient) resolveRequestURL(path string) (*url.URL, error) {
470 urlString := fmt.Sprintf("%s://%s%s", c.scheme, c.registry, path)
471 res, err := url.Parse(urlString)
472 if err != nil {
473 return nil, err
474 }
475 return res, nil
476}
477
478// Checks if the auth headers in the response contain an indication of a failed
479// authorization because of an "insufficient_scope" error. If that's the case,

Callers 2

makeRequestMethod · 0.95
newBodyReaderFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected