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

Function platformData

cli/ctl/ingester_check.go:287–311  ·  view source on GitHub ↗
(response *trident.SyncResponse)

Source from the content-addressed store, hash-verified

285}
286
287func 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
313func skipInterface(response *trident.SyncResponse) {
314 fmt.Println("SkipInterface:")

Callers

nothing calls this directly

Calls 3

formatStringFunction · 0.85
JsonFormatFunction · 0.70
UnmarshalMethod · 0.65

Tested by

no test coverage detected