Documentation
¶
Overview ¶
Package filter implements include/exclude regex filtering for schema and table names, matching the semantics of the Python openmetadata-ingestion connectors.
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 is a compiled Pattern ready for matching.
func New ¶
New compiles a Pattern into a Filter. An invalid regular expression is returned as an error so misconfiguration fails fast at startup rather than mid-ingestion.
func (*Filter) Allowed ¶
Allowed reports whether name passes the filter. Precedence matches the Python connectors: an exclude match rejects immediately; then if there are no includes everything is allowed; otherwise the name must match at least one include. Matching uses unanchored search (regexp.MatchString), mirroring Python's re.search.