package
0.0.0-20191216060532-3d4e150b8f4f
Repository: https://github.com/codingjzy/trireme-statistics.git
Documentation: pkg.go.dev

# Functions

DefaultLink is the default links struct for graph.
DefaultNode is the default nodes struct for graph.
NewGraph is the handler for graph generators.

# Constants

ContainerContextIDIndex from influxdb response.
ContainerCreate indicates a container create event.
ContainerDelete indicates a container delete event.
ContainerEvent is the Container events measurement name.
ContainerEventIndex from influxdb response.
ContainerEventsQuery is the query used to retrieve ContainerEvents from database.
ContainerFailed indicates an event that a container was stopped because of policy issues.
ContainerIgnored indicates that the container will be ignored by Trireme.
ContainerIPAddressIndex from influxdb response.
ContainerStart indicates a container start event.
ContainerStop indicates a container stop event.
ContainerTagsIndex from influxdb response.
ContainerTimestampIndex from influxdb response.
ContainerUpdate indicates a container policy update event.
FlowAccept logs that a flow is accepted.
FlowActionIndex from influxdb response.
FlowDestinationIDIndex from influxdb response.
FlowDestinationIPIndex from influxdb response.
FlowEvent is the Flow events measurement name.
FlowEventsQuery is the query used to retrieve FlowEvents from database.
FlowNowRejected logs that a flow is accepted and later rejected.
FlowReject indicates that a flow was rejected.
FlowSourceIDIndex from influxdb response.
FlowSourceIPIndex from influxdb response.
FlowTagsIndex from influxdb response.
FlowTimestampIndex from influxdb response.
PODNameFromContainerTags is tha tag used to retrieve pod name from tags in ContainerEvents.
PODNamespaceFromContainerTags is the tag used to retrieve pod namespace from tags in ContainerEvents.
PODNamespaceFromFlowTags is the tag used to retrieve flow associated to a particular pod namespace from tags in FlowEvents.
UnknownContainerDelete indicates that policy for an unknown container was deleted.

# Structs

ContainerEvents struct to hold container event attributes.
FlowEvents struct to hold flow event attributes.
Graph which holds the fields for graph creation.
GraphData is the struct that holds the json format required for graph to generate nodes and link.
Link which holds the links between pu's.
Node which holds pu information.