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)
| 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. |
| 469 | func (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, |
no outgoing calls
no test coverage detected