MCPcopy
hub / github.com/moby/moby / Client

Struct Client

client/client.go:127–139  ·  view source on GitHub ↗

Client is the API client that performs all operations against a docker server.

Source from the content-addressed store, hash-verified

125// Client is the API client that performs all operations
126// against a docker server.
127type 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.
142var ErrRedirect = errors.New("unexpected redirect in response")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected