Signed-off-by: Solomon Hykes <solomon@docker.com>
| ... | ... |
@@ -15,6 +15,19 @@ import ( |
| 15 | 15 |
"github.com/docker/docker/registry" |
| 16 | 16 |
) |
| 17 | 17 |
|
| 18 |
+type DockerCli struct {
|
|
| 19 |
+ proto string |
|
| 20 |
+ addr string |
|
| 21 |
+ configFile *registry.ConfigFile |
|
| 22 |
+ in io.ReadCloser |
|
| 23 |
+ out io.Writer |
|
| 24 |
+ err io.Writer |
|
| 25 |
+ isTerminal bool |
|
| 26 |
+ terminalFd uintptr |
|
| 27 |
+ tlsConfig *tls.Config |
|
| 28 |
+ scheme string |
|
| 29 |
+} |
|
| 30 |
+ |
|
| 18 | 31 |
var funcMap = template.FuncMap{
|
| 19 | 32 |
"json": func(v interface{}) string {
|
| 20 | 33 |
a, _ := json.Marshal(v) |
| ... | ... |
@@ -97,16 +110,3 @@ func NewDockerCli(in io.ReadCloser, out, err io.Writer, proto, addr string, tlsC |
| 97 | 97 |
scheme: scheme, |
| 98 | 98 |
} |
| 99 | 99 |
} |
| 100 |
- |
|
| 101 |
-type DockerCli struct {
|
|
| 102 |
- proto string |
|
| 103 |
- addr string |
|
| 104 |
- configFile *registry.ConfigFile |
|
| 105 |
- in io.ReadCloser |
|
| 106 |
- out io.Writer |
|
| 107 |
- err io.Writer |
|
| 108 |
- isTerminal bool |
|
| 109 |
- terminalFd uintptr |
|
| 110 |
- tlsConfig *tls.Config |
|
| 111 |
- scheme string |
|
| 112 |
-} |