MCPcopy Index your code
hub / github.com/deepflowio/deepflow / AplatformData

Function AplatformData

cli/ctl/agent_check.go:570–590  ·  view source on GitHub ↗
(response *agent.SyncResponse)

Source from the content-addressed store, hash-verified

568}
569
570func 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
592func AconfigData(response *agent.SyncResponse) {
593 fmt.Println("config:")

Callers

nothing calls this directly

Calls 3

AJsonFormatFunction · 0.85
AformatStringFunction · 0.85
UnmarshalMethod · 0.65

Tested by

no test coverage detected