Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrCgroup2NotMounted = errors.New("cgroup2 not mounted")
Functions ¶
func InitCgroupv2 ¶
func IsKernelBTFAvailable ¶
func IsKernelBTFAvailable() bool
Types ¶
type DNSQuestion ¶ added in v0.1.12
DNSQuestion and DNSAnswer are the parts of a DNS message this agent has a use for.
They are deliberately not gopacket's layers.DNSQuestion and layers.DNSResourceRecord. Those carry their names, IPs and RDATA as []byte pointing into the packet buffer and into the decoder's scratch space, and the decoder reuses both -- so a record that crossed the events channel would be rewritten underneath its reader by whichever packet arrived next. Names are held as strings here, which are copies by construction, and the only mutable field left is the IP, which the decoder clones.
The narrower shape is also honest about what is filled in. A layers.DNSResourceRecord has fifteen fields; copying the three that are read would leave the other twelve looking valid and silently wrong.
type NetworkTrafficKey ¶ added in v0.0.53
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
func (*Tracer) CollectNetworkSummary ¶ added in v0.0.53
func (t *Tracer) CollectNetworkSummary() (map[NetworkTrafficKey]TrafficSummary, error)