dropreason

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 29 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

View Source
const (
	Name api.PluginName = "dropreason"
)

Variables

This section is empty.

Functions

func New

func New(cfg *kcfg.Config) api.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