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 {
119119 Addresses []Address
120120 Gateway string
121121 Name string
122+ Hostname string
122123 Image DockerImage
123124 Env map [string ]string
124125 Volumes map [string ]Volume
126+ Node SwarmNode
127+ Labels map [string ]string
128+ IP string
125129}
126130
127131type Address struct {
128132 IP string
129133 Port string
130134 HostPort string
131135 Proto string
136+ HostIP string
132137}
133138
134139type DockerImage struct {
@@ -142,6 +147,12 @@ type Volume struct {
142147 HostPath string
143148 ReadWrite bool
144149}
150+
151+ type SwarmNode struct {
152+ ID string
153+ Name string
154+ Address Address
155+ }
145156```
146157
147158For 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:
152163 "Addresses" :[
153164 {
154165 "IP" :" 172.17.0.4" ,
155- "Port" :" 22"
166+ "Port" :" 22" ,
167+ "Proto" :" tcp" ,
168+ "HostIP" :" 192.168.10.24" ,
169+ "HostPort" :" 2222"
156170 }
157171 ],
158172 "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" ,
159186 "Name" :" docker_register" ,
187+ "Hostname" :" 71e976807583" ,
160188 "Image" :{
161189 "Registry" :" jwilder" ,
162190 "Repository" :" docker-register"
You can’t perform that action at this time.
0 commit comments