File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -119,16 +119,21 @@ type RuntimeContainer struct {
119
119
Addresses []Address
120
120
Gateway string
121
121
Name string
122
+ Hostname string
122
123
Image DockerImage
123
124
Env map [string ]string
124
125
Volumes map [string ]Volume
126
+ Node SwarmNode
127
+ Labels map [string ]string
128
+ IP string
125
129
}
126
130
127
131
type Address struct {
128
132
IP string
129
133
Port string
130
134
HostPort string
131
135
Proto string
136
+ HostIP string
132
137
}
133
138
134
139
type DockerImage struct {
@@ -142,6 +147,12 @@ type Volume struct {
142
147
HostPath string
143
148
ReadWrite bool
144
149
}
150
+
151
+ type SwarmNode struct {
152
+ ID string
153
+ Name string
154
+ Address Address
155
+ }
145
156
```
146
157
147
158
For example, this is a JSON version of an emitted RuntimeContainer struct:
@@ -152,11 +163,28 @@ For example, this is a JSON version of an emitted RuntimeContainer struct:
152
163
"Addresses" :[
153
164
{
154
165
"IP" :" 172.17.0.4" ,
155
- "Port" :" 22"
166
+ "Port" :" 22" ,
167
+ "Proto" :" tcp" ,
168
+ "HostIP" :" 192.168.10.24" ,
169
+ "HostPort" :" 2222"
156
170
}
157
171
],
158
172
"Gateway" :" 172.17.42.1" ,
173
+ "Node" : {
174
+ "ID" :" I2VY:P7PF:TZD5:PGWB:QTI7:QDSP:C5UD:DYKR:XKKK:TRG2:M2BL:DFUN" ,
175
+ "Name" :" docker-test" ,
176
+ "Address" : {
177
+ "IP" :" 192.168.10.24"
178
+ }
179
+ },
180
+ "Labels" : {
181
+ "operatingsystem" :" Ubuntu 14.04.2 LTS" ,
182
+ "storagedriver" :" devicemapper" ,
183
+ "anything_foo" :" something_bar"
184
+ },
185
+ "IP" :" 172.17.0.4" ,
159
186
"Name" :" docker_register" ,
187
+ "Hostname" :" 71e976807583" ,
160
188
"Image" :{
161
189
"Registry" :" jwilder" ,
162
190
"Repository" :" docker-register"
You can’t perform that action at this time.
0 commit comments