Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ClientProcess1ID = render.MakeProcessID(fixture.ClientHostID, fixture.Client1PID) ClientProcess2ID = render.MakeProcessID(fixture.ClientHostID, fixture.Client2PID) ServerProcessID = render.MakeProcessID(fixture.ServerHostID, fixture.ServerPID) RenderedProcesses = (render.RenderableNodes{ ClientProcess1ID: { ID: ClientProcess1ID, LabelMajor: fixture.Client1Comm, LabelMinor: fmt.Sprintf("%s (%s)", fixture.ClientHostID, fixture.Client1PID), Rank: fixture.Client1Comm, Pseudo: false, Origins: report.MakeIDList( fixture.Client54001NodeID, fixture.ClientProcess1NodeID, fixture.ClientHostNodeID, ), Node: report.MakeNode().WithAdjacent(ServerProcessID), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(10), EgressByteCount: newu64(100), }, }, ClientProcess2ID: { ID: ClientProcess2ID, LabelMajor: fixture.Client2Comm, LabelMinor: fmt.Sprintf("%s (%s)", fixture.ClientHostID, fixture.Client2PID), Rank: fixture.Client2Comm, Pseudo: false, Origins: report.MakeIDList( fixture.Client54002NodeID, fixture.ClientProcess2NodeID, fixture.ClientHostNodeID, ), Node: report.MakeNode().WithAdjacent(ServerProcessID), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(20), EgressByteCount: newu64(200), }, }, ServerProcessID: { ID: ServerProcessID, LabelMajor: "apache", LabelMinor: fmt.Sprintf("%s (%s)", fixture.ServerHostID, fixture.ServerPID), Rank: fixture.ServerComm, Pseudo: false, Origins: report.MakeIDList( fixture.Server80NodeID, fixture.ServerProcessNodeID, fixture.ServerHostNodeID, ), Node: report.MakeNode(), EdgeMetadata: report.EdgeMetadata{ IngressPacketCount: newu64(210), IngressByteCount: newu64(2100), }, }, nonContainerProcessID: { ID: nonContainerProcessID, LabelMajor: fixture.NonContainerComm, LabelMinor: fmt.Sprintf("%s (%s)", fixture.ServerHostID, fixture.NonContainerPID), Rank: fixture.NonContainerComm, Pseudo: false, Origins: report.MakeIDList( fixture.NonContainerProcessNodeID, fixture.ServerHostNodeID, fixture.NonContainerNodeID, ), Node: report.MakeNode().WithAdjacent(render.TheInternetID), EdgeMetadata: report.EdgeMetadata{}, }, unknownPseudoNode1ID: unknownPseudoNode1(ServerProcessID), unknownPseudoNode2ID: unknownPseudoNode2(ServerProcessID), render.TheInternetID: theInternetNode(ServerProcessID), }).Prune() RenderedProcessNames = (render.RenderableNodes{ "curl": { ID: "curl", LabelMajor: "curl", LabelMinor: "2 processes", Rank: "curl", Pseudo: false, Origins: report.MakeIDList( fixture.Client54001NodeID, fixture.Client54002NodeID, fixture.ClientProcess1NodeID, fixture.ClientProcess2NodeID, fixture.ClientHostNodeID, ), Node: report.MakeNode().WithAdjacent("apache"), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(30), EgressByteCount: newu64(300), }, }, "apache": { ID: "apache", LabelMajor: "apache", LabelMinor: "1 process", Rank: "apache", Pseudo: false, Origins: report.MakeIDList( fixture.Server80NodeID, fixture.ServerProcessNodeID, fixture.ServerHostNodeID, ), Node: report.MakeNode(), EdgeMetadata: report.EdgeMetadata{ IngressPacketCount: newu64(210), IngressByteCount: newu64(2100), }, }, fixture.NonContainerComm: { ID: fixture.NonContainerComm, LabelMajor: fixture.NonContainerComm, LabelMinor: "1 process", Rank: fixture.NonContainerComm, Pseudo: false, Origins: report.MakeIDList( fixture.NonContainerProcessNodeID, fixture.ServerHostNodeID, fixture.NonContainerNodeID, ), Node: report.MakeNode().WithAdjacent(render.TheInternetID), EdgeMetadata: report.EdgeMetadata{}, }, unknownPseudoNode1ID: unknownPseudoNode1("apache"), unknownPseudoNode2ID: unknownPseudoNode2("apache"), render.TheInternetID: theInternetNode("apache"), }).Prune() RenderedContainers = (render.RenderableNodes{ fixture.ClientContainerID: { ID: fixture.ClientContainerID, LabelMajor: "client", LabelMinor: fixture.ClientHostName, Rank: fixture.ClientContainerImageName, Pseudo: false, Origins: report.MakeIDList( fixture.ClientContainerImageNodeID, fixture.ClientContainerNodeID, fixture.Client54001NodeID, fixture.Client54002NodeID, fixture.ClientProcess1NodeID, fixture.ClientProcess2NodeID, fixture.ClientHostNodeID, ), Node: report.MakeNode().WithAdjacent(fixture.ServerContainerID), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(30), EgressByteCount: newu64(300), }, ControlNode: fixture.ClientContainerNodeID, }, fixture.ServerContainerID: { ID: fixture.ServerContainerID, LabelMajor: "server", LabelMinor: fixture.ServerHostName, Rank: fixture.ServerContainerImageName, Pseudo: false, Origins: report.MakeIDList( fixture.ServerContainerImageNodeID, fixture.ServerContainerNodeID, fixture.Server80NodeID, fixture.ServerProcessNodeID, fixture.ServerHostNodeID, ), Node: report.MakeNode(), EdgeMetadata: report.EdgeMetadata{ IngressPacketCount: newu64(210), IngressByteCount: newu64(2100), }, ControlNode: fixture.ServerContainerNodeID, }, uncontainedServerID: { ID: uncontainedServerID, LabelMajor: render.UncontainedMajor, LabelMinor: fixture.ServerHostName, Rank: "", Pseudo: true, Origins: report.MakeIDList( fixture.NonContainerProcessNodeID, fixture.ServerHostNodeID, fixture.NonContainerNodeID, ), Node: report.MakeNode().WithAdjacent(render.TheInternetID), EdgeMetadata: report.EdgeMetadata{}, }, render.TheInternetID: theInternetNode(fixture.ServerContainerID), }).Prune() RenderedContainerImages = (render.RenderableNodes{ fixture.ClientContainerImageName: { ID: fixture.ClientContainerImageName, LabelMajor: fixture.ClientContainerImageName, LabelMinor: "1 container", Rank: fixture.ClientContainerImageName, Pseudo: false, Origins: report.MakeIDList( fixture.ClientContainerImageNodeID, fixture.ClientContainerNodeID, fixture.Client54001NodeID, fixture.Client54002NodeID, fixture.ClientProcess1NodeID, fixture.ClientProcess2NodeID, fixture.ClientHostNodeID, ), Node: report.MakeNode().WithAdjacent(fixture.ServerContainerImageName), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(30), EgressByteCount: newu64(300), }, }, fixture.ServerContainerImageName: { ID: fixture.ServerContainerImageName, LabelMajor: fixture.ServerContainerImageName, LabelMinor: "1 container", Rank: fixture.ServerContainerImageName, Pseudo: false, Origins: report.MakeIDList( fixture.ServerContainerImageNodeID, fixture.ServerContainerNodeID, fixture.Server80NodeID, fixture.ServerProcessNodeID, fixture.ServerHostNodeID), Node: report.MakeNode(), EdgeMetadata: report.EdgeMetadata{ IngressPacketCount: newu64(210), IngressByteCount: newu64(2100), }, }, uncontainedServerID: { ID: uncontainedServerID, LabelMajor: render.UncontainedMajor, LabelMinor: fixture.ServerHostName, Rank: "", Pseudo: true, Origins: report.MakeIDList( fixture.NonContainerNodeID, fixture.NonContainerProcessNodeID, fixture.ServerHostNodeID, ), Node: report.MakeNode().WithAdjacent(render.TheInternetID), EdgeMetadata: report.EdgeMetadata{}, }, render.TheInternetID: theInternetNode(fixture.ServerContainerImageName), }).Prune() ServerHostRenderedID = render.MakeHostID(fixture.ServerHostID) ClientHostRenderedID = render.MakeHostID(fixture.ClientHostID) RenderedHosts = (render.RenderableNodes{ ServerHostRenderedID: { ID: ServerHostRenderedID, LabelMajor: "server", LabelMinor: "hostname.com", Rank: "hostname.com", Pseudo: false, Origins: report.MakeIDList( fixture.ServerHostNodeID, fixture.ServerAddressNodeID, ), Node: report.MakeNode(), EdgeMetadata: report.EdgeMetadata{ MaxConnCountTCP: newu64(3), }, }, ClientHostRenderedID: { ID: ClientHostRenderedID, LabelMajor: "client", LabelMinor: "hostname.com", Rank: "hostname.com", Pseudo: false, Origins: report.MakeIDList( fixture.ClientHostNodeID, fixture.ClientAddressNodeID, ), Node: report.MakeNode().WithAdjacent(ServerHostRenderedID), EdgeMetadata: report.EdgeMetadata{ MaxConnCountTCP: newu64(3), }, }, pseudoHostID1: { ID: pseudoHostID1, LabelMajor: fixture.UnknownClient1IP, Pseudo: true, Node: report.MakeNode().WithAdjacent(ServerHostRenderedID), EdgeMetadata: report.EdgeMetadata{}, Origins: report.MakeIDList(fixture.UnknownAddress1NodeID, fixture.UnknownAddress2NodeID), }, pseudoHostID2: { ID: pseudoHostID2, LabelMajor: fixture.UnknownClient3IP, Pseudo: true, Node: report.MakeNode().WithAdjacent(ServerHostRenderedID), EdgeMetadata: report.EdgeMetadata{}, Origins: report.MakeIDList(fixture.UnknownAddress3NodeID), }, render.TheInternetID: { ID: render.TheInternetID, LabelMajor: render.TheInternetMajor, Pseudo: true, Node: report.MakeNode().WithAdjacent(ServerHostRenderedID), EdgeMetadata: report.EdgeMetadata{}, Origins: report.MakeIDList(fixture.RandomAddressNodeID), }, }).Prune() RenderedPods = (render.RenderableNodes{ "ping/pong-a": { ID: "ping/pong-a", LabelMajor: "pong-a", LabelMinor: "1 container", Rank: "ping/pong-a", Pseudo: false, Origins: report.MakeIDList( fixture.Client54001NodeID, fixture.Client54002NodeID, fixture.ClientProcess1NodeID, fixture.ClientProcess2NodeID, fixture.ClientHostNodeID, fixture.ClientContainerNodeID, fixture.ClientContainerImageNodeID, fixture.ClientPodNodeID, ), Node: report.MakeNode().WithAdjacent("ping/pong-b"), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(30), EgressByteCount: newu64(300), }, }, "ping/pong-b": { ID: "ping/pong-b", LabelMajor: "pong-b", LabelMinor: "1 container", Rank: "ping/pong-b", Pseudo: false, Origins: report.MakeIDList( fixture.Server80NodeID, fixture.ServerPodNodeID, fixture.ServerProcessNodeID, fixture.ServerContainerNodeID, fixture.ServerHostNodeID, fixture.ServerContainerImageNodeID, ), Node: report.MakeNode(), EdgeMetadata: report.EdgeMetadata{ IngressPacketCount: newu64(210), IngressByteCount: newu64(2100), }, }, uncontainedServerID: { ID: uncontainedServerID, LabelMajor: render.UncontainedMajor, LabelMinor: fixture.ServerHostName, Rank: "", Pseudo: true, Origins: report.MakeIDList( fixture.ServerHostNodeID, fixture.NonContainerProcessNodeID, fixture.NonContainerNodeID, ), Node: report.MakeNode().WithAdjacent(render.TheInternetID), EdgeMetadata: report.EdgeMetadata{}, }, render.TheInternetID: { ID: render.TheInternetID, LabelMajor: render.TheInternetMajor, Pseudo: true, Node: report.MakeNode().WithAdjacent("ping/pong-b"), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(60), EgressByteCount: newu64(600), }, Origins: report.MakeIDList( fixture.RandomClientNodeID, fixture.GoogleEndpointNodeID, ), }, }).Prune() RenderedPodServices = (render.RenderableNodes{ "ping/pongservice": { ID: fixture.ServiceID, LabelMajor: "pongservice", LabelMinor: "2 pods", Rank: fixture.ServiceID, Pseudo: false, Origins: report.MakeIDList( fixture.Client54001NodeID, fixture.Client54002NodeID, fixture.ClientProcess1NodeID, fixture.ClientProcess2NodeID, fixture.ClientHostNodeID, fixture.ClientContainerNodeID, fixture.ClientContainerImageNodeID, fixture.ClientPodNodeID, fixture.Server80NodeID, fixture.ServerPodNodeID, fixture.ServiceNodeID, fixture.ServerProcessNodeID, fixture.ServerContainerNodeID, fixture.ServerHostNodeID, fixture.ServerContainerImageNodeID, ), Node: report.MakeNode().WithAdjacent(fixture.ServiceID), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(30), EgressByteCount: newu64(300), IngressPacketCount: newu64(210), IngressByteCount: newu64(2100), }, }, uncontainedServerID: { ID: uncontainedServerID, LabelMajor: render.UncontainedMajor, LabelMinor: fixture.ServerHostName, Rank: "", Pseudo: true, Origins: report.MakeIDList( fixture.ServerHostNodeID, fixture.NonContainerProcessNodeID, fixture.NonContainerNodeID, ), Node: report.MakeNode().WithAdjacent(render.TheInternetID), EdgeMetadata: report.EdgeMetadata{}, }, render.TheInternetID: { ID: render.TheInternetID, LabelMajor: render.TheInternetMajor, Pseudo: true, Node: report.MakeNode().WithAdjacent(fixture.ServiceID), EdgeMetadata: report.EdgeMetadata{ EgressPacketCount: newu64(60), EgressByteCount: newu64(600), }, Origins: report.MakeIDList( fixture.RandomClientNodeID, fixture.GoogleEndpointNodeID, ), }, }).Prune() )
Exported for testing.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.