dropreason

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 28 Imported by: 0

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

This section is empty.

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