(response *trident.SyncResponse)
| 285 | } |
| 286 | |
| 287 | func platformData(response *trident.SyncResponse) { |
| 288 | platform := trident.PlatformData{} |
| 289 | fmt.Println("PlatformData version:", response.GetVersionPlatformData()) |
| 290 | |
| 291 | if plarformCompressed := response.GetPlatformData(); plarformCompressed != nil { |
| 292 | if err := platform.Unmarshal(plarformCompressed); err == nil { |
| 293 | fmt.Println("interfaces:") |
| 294 | for index, entry := range platform.Interfaces { |
| 295 | JsonFormat(index+1, formatString(entry)) |
| 296 | } |
| 297 | fmt.Println("peer connections:") |
| 298 | for index, entry := range platform.PeerConnections { |
| 299 | JsonFormat(index+1, entry) |
| 300 | } |
| 301 | fmt.Println("cidrs:") |
| 302 | for index, entry := range platform.Cidrs { |
| 303 | JsonFormat(index+1, entry) |
| 304 | } |
| 305 | fmt.Println("gprocess infos:") |
| 306 | for index, entry := range platform.GprocessInfos { |
| 307 | JsonFormat(index+1, entry) |
| 308 | } |
| 309 | } |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | func skipInterface(response *trident.SyncResponse) { |
| 314 | fmt.Println("SkipInterface:") |
nothing calls this directly
no test coverage detected