ClientOptHTTPClient returns a function that sets the HTTP client for the registry client.
(httpClient *http.Client)
| 204 | |
| 205 | // ClientOptHTTPClient returns a function that sets the HTTP client for the registry client. |
| 206 | func ClientOptHTTPClient(httpClient *http.Client) ClientOption { |
| 207 | return func(client *Client) { |
| 208 | client.httpClient = httpClient |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | // ClientOptPlainHTTP returns a function that enables plain HTTP (non-TLS) |
| 213 | // communication for the registry client. |
no outgoing calls
searching dependent graphs…