From 560fb41b51f416daf849985bb37f101d99f2cfdc Mon Sep 17 00:00:00 2001 From: Denis Makogon Date: Sun, 21 Jan 2018 21:54:59 +0200 Subject: [PATCH] Adding comment for WithTransport --- client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.go b/client.go index bdb4c85a..5266fede 100644 --- a/client.go +++ b/client.go @@ -222,6 +222,8 @@ func NewVersionedClient(endpoint string, apiVersionString string) (*Client, erro return c, nil } +// WithTransport replaces underlying HTTP client of Docker Client by accepting +// a function that returns pointer to a transport object. func (c *Client) WithTransport(trFunc func () *http.Transport) { c.initializeNativeClient(trFunc) }