Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter interface {
// Compile compiles the filter by parsing the filtering expression.
Compile() error
// Run runs a filter on the inbound kernel event and decides whether the event should be dropped or propagated to the downstream channel.
Run(kevt *kevent.Kevent) bool
}
Filter is the main interface for the filter engine implementors.
func New ¶
New creates a new filter with the specified filter expression. The consumers must ensure the expression is correctly parsed before executing the filter. This is achieved by calling the Compile` method after constructing the filter.
func NewFromCLI ¶
NewFromCLI builds and compiles a filter by joining all the command line arguments into the filter expression.
func NewFromCLIWithAllAccessors ¶
NewFromCLIWithAllAccessors builds and compiles a filter with all field accessors enabled.
Click to show internal directories.
Click to hide internal directories.