package
0.9.0
Repository: https://github.com/datadog/datadog-agent.git
Documentation: pkg.go.dev

# Functions

ContainerIDForPID returns the matching container id for a pid, or an error if not found.
GetUcredsForPid returns the replay ucreds for the specified pid.
NewTrafficCapture creates a TrafficCapture instance.
NewTrafficCaptureReader creates a TrafficCaptureReader instance.
NewTrafficCaptureWriter creates a TrafficCaptureWriter instance.
Read reads the next protobuf packet available in the file and returns it in a byte slice, and an error if any.
SetPidMap sets the map with the pid - containerID relations.
WriteHeader writes the datadog header to the Writer argument to conform to the .dog file format.

# Constants

GUID will be used as the GUID during capture replays This is a magic number chosen for no particular reason other than the fact its quite large an improbable to match an actual Group ID on any given box.

# Variables

CapPool is a pool of CaptureBuffer.

# Structs

CaptureBuffer holds pointers to captured packet's buffers (and oob buffer if required) and the protobuf message used for serialization.
TrafficCapture allows capturing traffic from our listeners and writing it to file.
TrafficCaptureReader allows reading back a traffic capture and its contents.
TrafficCaptureWriter allows writing dogstatsd traffic to a file.