Client is the API client that performs all operations against a docker server.
| 125 | // Client is the API client that performs all operations |
| 126 | // against a docker server. |
| 127 | type Client struct { |
| 128 | clientConfig |
| 129 | |
| 130 | // negotiated indicates that API version negotiation took place |
| 131 | negotiated atomic.Bool |
| 132 | |
| 133 | // negotiateLock is used to single-flight the version negotiation process |
| 134 | negotiateLock sync.Mutex |
| 135 | |
| 136 | // When the client transport is an *http.Transport (default) we need to do some extra things (like closing idle connections). |
| 137 | // Store the original transport as the http.Client transport will be wrapped with tracing libs. |
| 138 | baseTransport *http.Transport |
| 139 | } |
| 140 | |
| 141 | // ErrRedirect is the error returned by checkRedirect when the request is non-GET. |
| 142 | var ErrRedirect = errors.New("unexpected redirect in response") |
nothing calls this directly
no outgoing calls
no test coverage detected