Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ClientProcess1ID = render.MakeProcessID(test.ClientHostID, test.Client1PID) ClientProcess2ID = render.MakeProcessID(test.ClientHostID, test.Client2PID) ServerProcessID = render.MakeProcessID(test.ServerHostID, test.ServerPID) RenderedProcesses = render.RenderableNodes{ ClientProcess1ID: { ID: ClientProcess1ID, LabelMajor: test.Client1Comm, LabelMinor: fmt.Sprintf("%s (%s)", test.ClientHostID, test.Client1PID), Rank: test.Client1Comm, Pseudo: false, Adjacency: report.MakeIDList(ServerProcessID), Origins: report.MakeIDList( test.Client54001NodeID, test.ClientProcess1NodeID, test.ClientHostNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(10), EgressByteCount: newu64(100), }, }, ClientProcess2ID: { ID: ClientProcess2ID, LabelMajor: test.Client2Comm, LabelMinor: fmt.Sprintf("%s (%s)", test.ClientHostID, test.Client2PID), Rank: test.Client2Comm, Pseudo: false, Adjacency: report.MakeIDList(ServerProcessID), Origins: report.MakeIDList( test.Client54002NodeID, test.ClientProcess2NodeID, test.ClientHostNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(20), EgressByteCount: newu64(200), }, }, ServerProcessID: { ID: ServerProcessID, LabelMajor: "apache", LabelMinor: fmt.Sprintf("%s (%s)", test.ServerHostID, test.ServerPID), Rank: test.ServerComm, Pseudo: false, Adjacency: report.MakeIDList( ClientProcess1ID, ClientProcess2ID, unknownPseudoNode1ID, unknownPseudoNode2ID, render.TheInternetID, ), Origins: report.MakeIDList( test.Server80NodeID, test.ServerProcessNodeID, test.ServerHostNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(150), EgressByteCount: newu64(1500), }, }, render.TheInternetID: theInternetNode, // contains filtered or unexported fields } RenderedProcessNames = render.RenderableNodes{ "curl": { ID: "curl", LabelMajor: "curl", LabelMinor: "", Rank: "curl", Pseudo: false, Adjacency: report.MakeIDList("apache"), Origins: report.MakeIDList( test.Client54001NodeID, test.Client54002NodeID, test.ClientProcess1NodeID, test.ClientProcess2NodeID, test.ClientHostNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(30), EgressByteCount: newu64(300), }, }, "apache": { ID: "apache", LabelMajor: "apache", LabelMinor: "", Rank: "apache", Pseudo: false, Adjacency: report.MakeIDList( "curl", unknownPseudoNode1ID, unknownPseudoNode2ID, render.TheInternetID, ), Origins: report.MakeIDList( test.Server80NodeID, test.ServerProcessNodeID, test.ServerHostNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(150), EgressByteCount: newu64(1500), }, }, "bash": { ID: "bash", LabelMajor: "bash", LabelMinor: "", Rank: "bash", Pseudo: false, Origins: report.MakeIDList( test.NonContainerProcessNodeID, test.ServerHostNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{}, }, render.TheInternetID: theInternetNode, // contains filtered or unexported fields } RenderedContainers = render.RenderableNodes{ test.ClientContainerID: { ID: test.ClientContainerID, LabelMajor: "client", LabelMinor: test.ClientHostName, Rank: test.ClientContainerImageID, Pseudo: false, Adjacency: report.MakeIDList(test.ServerContainerID), Origins: report.MakeIDList( test.ClientContainerNodeID, test.Client54001NodeID, test.Client54002NodeID, test.ClientProcess1NodeID, test.ClientProcess2NodeID, test.ClientHostNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(30), EgressByteCount: newu64(300), }, }, test.ServerContainerID: { ID: test.ServerContainerID, LabelMajor: "server", LabelMinor: test.ServerHostName, Rank: test.ServerContainerImageID, Pseudo: false, Adjacency: report.MakeIDList(test.ClientContainerID, render.TheInternetID), Origins: report.MakeIDList( test.ServerContainerNodeID, test.Server80NodeID, test.ServerProcessNodeID, test.ServerHostNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(150), EgressByteCount: newu64(1500), }, }, render.TheInternetID: theInternetNode, // contains filtered or unexported fields } RenderedContainerImages = render.RenderableNodes{ test.ClientContainerImageName: { ID: test.ClientContainerImageName, LabelMajor: test.ClientContainerImageName, LabelMinor: "", Rank: test.ClientContainerImageName, Pseudo: false, Adjacency: report.MakeIDList(test.ServerContainerImageName), Origins: report.MakeIDList( test.ClientContainerImageNodeID, test.ClientContainerNodeID, test.Client54001NodeID, test.Client54002NodeID, test.ClientProcess1NodeID, test.ClientProcess2NodeID, test.ClientHostNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(30), EgressByteCount: newu64(300), }, }, test.ServerContainerImageName: { ID: test.ServerContainerImageName, LabelMajor: test.ServerContainerImageName, LabelMinor: "", Rank: test.ServerContainerImageName, Pseudo: false, Adjacency: report.MakeIDList(test.ClientContainerImageName, render.TheInternetID), Origins: report.MakeIDList( test.ServerContainerImageNodeID, test.ServerContainerNodeID, test.Server80NodeID, test.ServerProcessNodeID, test.ServerHostNodeID), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(150), EgressByteCount: newu64(1500), }, }, render.TheInternetID: theInternetNode, // contains filtered or unexported fields } ServerHostRenderedID = render.MakeHostID(test.ServerHostID) ClientHostRenderedID = render.MakeHostID(test.ClientHostID) RenderedHosts = render.RenderableNodes{ ServerHostRenderedID: { ID: ServerHostRenderedID, LabelMajor: "server", LabelMinor: "hostname.com", Rank: "hostname.com", Pseudo: false, Adjacency: report.MakeIDList(ClientHostRenderedID, render.TheInternetID, pseudoHostID1, pseudoHostID2), Origins: report.MakeIDList( test.ServerHostNodeID, test.ServerAddressNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ MaxConnCountTCP: newu64(3), }, }, ClientHostRenderedID: { ID: ClientHostRenderedID, LabelMajor: "client", LabelMinor: "hostname.com", Rank: "hostname.com", Pseudo: false, Adjacency: report.MakeIDList(ServerHostRenderedID), Origins: report.MakeIDList( test.ClientHostNodeID, test.ClientAddressNodeID, ), NodeMetadata: report.MakeNodeMetadata(), EdgeMetadata: report.EdgeMetadata{ MaxConnCountTCP: newu64(3), }, }, render.TheInternetID: theInternetNode, // contains filtered or unexported fields } )
Exported for testing.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.