(response *agent.SyncResponse)
| 568 | } |
| 569 | |
| 570 | func AplatformData(response *agent.SyncResponse) { |
| 571 | platform := agent.PlatformData{} |
| 572 | fmt.Println("PlatformData version:", response.GetVersionPlatformData()) |
| 573 | |
| 574 | if plarformCompressed := response.GetPlatformData(); plarformCompressed != nil { |
| 575 | if err := platform.Unmarshal(plarformCompressed); err == nil { |
| 576 | fmt.Println("interfaces:") |
| 577 | for index, entry := range platform.Interfaces { |
| 578 | AJsonFormat(index+1, AformatString(entry)) |
| 579 | } |
| 580 | fmt.Println("peer connections:") |
| 581 | for index, entry := range platform.PeerConnections { |
| 582 | AJsonFormat(index+1, entry) |
| 583 | } |
| 584 | fmt.Println("cidrs:") |
| 585 | for index, entry := range platform.Cidrs { |
| 586 | AJsonFormat(index+1, entry) |
| 587 | } |
| 588 | } |
| 589 | } |
| 590 | } |
| 591 | |
| 592 | func AconfigData(response *agent.SyncResponse) { |
| 593 | fmt.Println("config:") |
nothing calls this directly
no test coverage detected