dropreason

package
v1.0.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 30 Imported by: 2

Documentation

Overview

Package dropreason contains the Retina DropReason plugin. It measures the number of packets/bytes dropped and the reason and the direction of the drop.

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

View Source
const (
	MinAmdVersionNum = "5.5"
	MinArmVersionNum = "6.0"
)

Variables

This section is empty.

Functions

func New

func New(cfg *kcfg.Config) registry.Plugin

New creates a new dropreason plugin. When opts.EnablePodLevel=false, the enricher will not be used.

Types

type IMap

type IMap interface {
	Iterate() *ebpf.MapIterator
	Close() error
}

type IMapIterator

type IMapIterator interface {
	Next(keyOut interface{}, valueOut interface{}) bool
	Err() error
}

Interface to https://pkg.go.dev/github.com/cilium/ebpf#Map. Added for unit tests.

type IPerfReader

type IPerfReader interface {
	Read() (perf.Record, error)
	Close() error
}

Directories

Path Synopsis
Package dropreason is a generated GoMock package.
Package dropreason is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL