filter

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Copyright (c) Tobias Schäfer. All rights reserved. Licensed under the MIT License, see LICENSE file in the project root for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

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

Filter represents a CEL-based filter

func NewFilter added in v1.0.0

func NewFilter(ruleStrings []string) (*Filter, error)

NewFilter creates a new CEL-based filter from rule strings

func (*Filter) Evaluate added in v1.0.0

func (f *Filter) Evaluate(event conntrack.Event) (bool, bool, int)

Evaluate evaluates the filter against an event Returns: (matched bool, shouldLog bool, matchedRuleIndex int) If no rule matches, returns (false, true, -1) for log-by-default policy

Jump to

Keyboard shortcuts

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