maps

package
v0.0.0-...-59efaf5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NET_FILTER_KEY uint32 = 0

Functions

func NewMap

func NewMap(m *ebpf.Map) *ebpfMap

Types

type Map

type Map interface {
	Exec(op MapOp) error
}

type MapOp

type MapOp func(*ebpf.Map) error

type MockMap

type MockMap struct {
}

func (*MockMap) Exec

func (*MockMap) Exec(op MapOp) error

Exec implements Map

type NetworkFilter

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

func NewNetworkFilter

func NewNetworkFilter(m Map) *NetworkFilter

func NewNetworkFilterFromEBPF

func NewNetworkFilterFromEBPF(m *ebpf.Map) *NetworkFilter

func (*NetworkFilter) RegisterCIDRs

func (nf *NetworkFilter) RegisterCIDRs(cidrs []string) error

type ProtocolMap

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

func NewProtocolMap

func NewProtocolMap(m Map) *ProtocolMap

func NewProtocolMapFromEBPF

func NewProtocolMapFromEBPF(m *ebpf.Map) *ProtocolMap

func (*ProtocolMap) Detect

func (pm *ProtocolMap) Detect(ek types.EndpointKey, proto types.ProtocolType) error

func (*ProtocolMap) Skip

func (pm *ProtocolMap) Skip(ek types.EndpointKey) error

Jump to

Keyboard shortcuts

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