Commit 39c05c5
Add flag to specify IP types to use when connecting (GoogleCloudPlatform#174)
* Add user input flag ip_address_type to choose IP address for a given instance
* Add PUBLIC as an alias for PRIMARY, change the IP address type to be uppercase and fix some grammar issues
* Allow users to input multiple IP address types, and add the field IPAddrTypes in RemoteCertSource struct
* Add user input flag ip_address_type to choose IP address for a given instance
* remove additional ipAddressType in const due to the previous wrong Git operations
* Revert "remove additional ipAddressType in const due to the previous wrong Git operations"
This reverts commit b0c37b5.
* Remove ip_address_type from const part
* Add the default value PRIMARY to IPAddrTypeOpts field in struct RemoteOpts
* Extract clientFromCredentials method from common.go to common_open_source.go
* removed clientFromCredentials from common.go
* Add findIpAddr helper function and improve the code based on comments
* Change findIpAddr() to be part of struct RemoteCertSource and fix some format naming issues1 parent 679c7d5 commit 39c05c5
2 files changed
+59
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
186 | | - | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
415 | 418 | | |
416 | 419 | | |
417 | 420 | | |
| |||
447 | 450 | | |
448 | 451 | | |
449 | 452 | | |
450 | | - | |
451 | 453 | | |
452 | 454 | | |
453 | 455 | | |
| |||
506 | 508 | | |
507 | 509 | | |
508 | 510 | | |
| 511 | + | |
509 | 512 | | |
510 | 513 | | |
511 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
91 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
92 | 109 | | |
93 | 110 | | |
94 | 111 | | |
| |||
104 | 121 | | |
105 | 122 | | |
106 | 123 | | |
| 124 | + | |
| 125 | + | |
107 | 126 | | |
108 | 127 | | |
109 | 128 | | |
| |||
185 | 204 | | |
186 | 205 | | |
187 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
188 | 228 | | |
189 | 229 | | |
190 | 230 | | |
| |||
215 | 255 | | |
216 | 256 | | |
217 | 257 | | |
218 | | - | |
| 258 | + | |
| 259 | + | |
219 | 260 | | |
220 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
221 | 270 | | |
222 | | - | |
| 271 | + | |
| 272 | + | |
223 | 273 | | |
0 commit comments