filter

package
v1.21.72 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package filter applies CEL expressions to api table rows and tree nodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TableRows

func TableRows(rows []api.PrettyDataRow, filterExpr string) ([]api.PrettyDataRow, error)

TableRows filters table rows using a CEL expression. Field values are injected directly into the CEL context (no "row." prefix). Returns filtered rows or error if CEL expression is invalid.

func TreeNode

func TreeNode(node api.TreeNode, filterExpr string) (api.TreeNode, error)

TreeNode recursively filters tree nodes using a CEL expression. Field values from node content are injected directly into the CEL context. Returns filtered tree or error if CEL expression is invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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