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: "curl", LabelMinor: fmt.Sprintf("%s (%s)", test.ClientHostID, test.Client1PID), Rank: test.Client1PID, Pseudo: false, Adjacency: report.MakeIDList(ServerProcessID), Origins: report.MakeIDList( test.Client54001NodeID, test.ClientProcess1NodeID, test.ClientHostNodeID, ), AggregateMetadata: render.AggregateMetadata{ render.KeyBytesIngress: 100, render.KeyBytesEgress: 10, }, }, ClientProcess2ID: { ID: ClientProcess2ID, LabelMajor: "curl", LabelMinor: fmt.Sprintf("%s (%s)", test.ClientHostID, test.Client2PID), Rank: test.Client2PID, Pseudo: false, Adjacency: report.MakeIDList(ServerProcessID), Origins: report.MakeIDList( test.Client54002NodeID, test.ClientProcess2NodeID, test.ClientHostNodeID, ), AggregateMetadata: render.AggregateMetadata{ render.KeyBytesIngress: 200, render.KeyBytesEgress: 20, }, }, ServerProcessID: { ID: ServerProcessID, LabelMajor: "apache", LabelMinor: fmt.Sprintf("%s (%s)", test.ServerHostID, test.ServerPID), Rank: test.ServerPID, Pseudo: false, Adjacency: report.MakeIDList( ClientProcess1ID, ClientProcess2ID, unknownPseudoNode1ID, unknownPseudoNode2ID, render.TheInternetID, ), Origins: report.MakeIDList( test.Server80NodeID, test.ServerProcessNodeID, test.ServerHostNodeID, ), AggregateMetadata: render.AggregateMetadata{ render.KeyBytesIngress: 150, render.KeyBytesEgress: 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, ), AggregateMetadata: render.AggregateMetadata{ render.KeyBytesIngress: 300, render.KeyBytesEgress: 30, }, }, "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, ), AggregateMetadata: render.AggregateMetadata{ render.KeyBytesIngress: 150, render.KeyBytesEgress: 1500, }, }, "bash": { ID: "bash", LabelMajor: "bash", LabelMinor: "", Rank: "bash", Pseudo: false, Origins: report.MakeIDList( test.NonContainerProcessNodeID, test.ServerHostNodeID, ), AggregateMetadata: render.AggregateMetadata{}, }, 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, ), AggregateMetadata: render.AggregateMetadata{ render.KeyBytesIngress: 300, render.KeyBytesEgress: 30, }, }, 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, ), AggregateMetadata: render.AggregateMetadata{ render.KeyBytesIngress: 150, render.KeyBytesEgress: 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, ), AggregateMetadata: render.AggregateMetadata{ render.KeyBytesIngress: 300, render.KeyBytesEgress: 30, }, }, 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), AggregateMetadata: render.AggregateMetadata{ render.KeyBytesIngress: 150, render.KeyBytesEgress: 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, ), AggregateMetadata: render.AggregateMetadata{ render.KeyMaxConnCountTCP: 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, ), AggregateMetadata: render.AggregateMetadata{ render.KeyMaxConnCountTCP: 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.