Function: filterResource()
function filterResource(
item: KubeObjectInterface | KubeEvent,
filter: FilterState,
search?: string,
matchCriteria?: string[]): boolean
Filters a resource based on the filter state.
Parameters
Parameter | Type | Description |
---|---|---|
item | KubeObjectInterface | KubeEvent | The item to filter. |
filter | FilterState | The filter state. |
search ? | string | - |
matchCriteria ? | string [] | The JSONPath criteria to match. |
Returns
boolean
True if the item matches the filter, false otherwise.