maps

package
v1.18.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 20 Imported by: 5

Documentation

Overview

Package maps performs various lifecycle operations related to maps in the datapath.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapSweeper

type MapSweeper struct {
	// contains filtered or unexported fields
}

MapSweeper is responsible for checking stale map paths on the filesystem and garbage collecting the endpoint if the corresponding endpoint no longer exists.

func NewMapSweeper

func NewMapSweeper(defaultLogger *slog.Logger, g endpointManager, bwm dptypes.BandwidthManager, lbConfig loadbalancer.Config, kprCfg kpr.KPRConfig) *MapSweeper

NewMapSweeper creates an object that walks map paths and garbage-collects them.

func (*MapSweeper) CollectStaleMapGarbage

func (ms *MapSweeper) CollectStaleMapGarbage()

CollectStaleMapGarbage cleans up stale content in the BPF maps from the datapath.

func (*MapSweeper) RemoveDisabledMaps

func (ms *MapSweeper) RemoveDisabledMaps()

RemoveDisabledMaps removes BPF maps in the filesystem for features that have been disabled. The maps may still be in use in which case they will continue to live until the BPF program using them is being replaced.

type PrefixedMap added in v1.17.7

type PrefixedMap struct {
	Prefix   string
	Excludes []string
}

PrefixedMap describes a pattern for filtering map files. It specifies which files to match via Prefix and which to exclude via Excludes.

Jump to

Keyboard shortcuts

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