Browse code

Vendor engine-api 0.2.2.

Signed-off-by: David Calavera <david.calavera@gmail.com>

David Calavera authored on 2016/01/14 09:58:40
Showing 3 changed files
... ...
@@ -22,7 +22,7 @@ clone git github.com/vdemeester/shakers 3c10293ce22b900c27acad7b28656196fcc2f73b
22 22
 clone git golang.org/x/net 47990a1ba55743e6ef1affd3a14e5bac8553615d https://github.com/golang/net.git
23 23
 clone git github.com/docker/go-units 651fc226e7441360384da338d0fd37f2440ffbe3
24 24
 clone git github.com/docker/go-connections v0.1.2
25
-clone git github.com/docker/engine-api v0.2.1
25
+clone git github.com/docker/engine-api v0.2.2
26 26
 clone git github.com/RackSec/srslog 6eb773f331e46fbba8eecb8e794e635e75fc04de
27 27
 
28 28
 #get libnetwork packages
... ...
@@ -65,7 +65,6 @@ func NewEnvClient() (*Client, error) {
65 65
 func NewClient(host string, version string, transport *http.Transport, httpHeaders map[string]string) (*Client, error) {
66 66
 	var (
67 67
 		basePath       string
68
-		tlsConfig      *tls.Config
69 68
 		scheme         = "http"
70 69
 		protoAddrParts = strings.SplitN(host, "://", 2)
71 70
 		proto, addr    = protoAddrParts[0], protoAddrParts[1]
... ...
@@ -90,7 +89,7 @@ func NewClient(host string, version string, transport *http.Transport, httpHeade
90 90
 		addr:              addr,
91 91
 		basePath:          basePath,
92 92
 		scheme:            scheme,
93
-		tlsConfig:         tlsConfig,
93
+		tlsConfig:         transport.TLSClientConfig,
94 94
 		httpClient:        &http.Client{Transport: transport},
95 95
 		version:           version,
96 96
 		customHTTPHeaders: httpHeaders,
... ...
@@ -10,12 +10,12 @@ import (
10 10
 	"strings"
11 11
 )
12 12
 
13
-// Args stores filter arguments as map key:{array of values}.
14
-// It contains a aggregation of the list of arguments (which are in the form
13
+// Args stores filter arguments as map key:{map key: bool}.
14
+// It contains a aggregation of the map of arguments (which are in the form
15 15
 // of -f 'key=value') based on the key, and store values for the same key
16
-// in an slice.
16
+// in an map with string keys and boolean values.
17 17
 // e.g given -f 'label=label1=1' -f 'label=label2=2' -f 'image.name=ubuntu'
18
-// the args will be {'label': {'label1=1','label2=2'}, 'image.name', {'ubuntu'}}
18
+// the args will be {"image.name":{"ubuntu":true},"label":{"label1=1":true,"label2=2":true}}
19 19
 type Args struct {
20 20
 	fields map[string]map[string]bool
21 21
 }