Documentation ¶
Index ¶
- func CreateSubscriptionsAPIFilters(logger *zap.Logger, filters []v1.SubscriptionsAPIFilter) eventfilter.Filter
- func MaterializeFiltersList(logger *zap.Logger, filters []v1.SubscriptionsAPIFilter) []eventfilter.Filter
- func MaterializeSubscriptionsAPIFilter(logger *zap.Logger, filter v1.SubscriptionsAPIFilter) eventfilter.Filter
- func NewAllFilter(filters ...eventfilter.Filter) eventfilter.Filter
- func NewAnyFilter(filters ...eventfilter.Filter) eventfilter.Filter
- func NewCESQLFilter(expr string) (eventfilter.Filter, error)
- func NewExactFilter(filters map[string]string) (eventfilter.Filter, error)
- func NewNoFilter() eventfilter.Filter
- func NewNotFilter(f eventfilter.Filter) eventfilter.Filter
- func NewPrefixFilter(filters map[string]string) (eventfilter.Filter, error)
- func NewSuffixFilter(filters map[string]string) (eventfilter.Filter, error)
- type FiltersMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSubscriptionsAPIFilters ¶ added in v0.43.0
func CreateSubscriptionsAPIFilters(logger *zap.Logger, filters []v1.SubscriptionsAPIFilter) eventfilter.Filter
func MaterializeFiltersList ¶ added in v0.43.0
func MaterializeFiltersList(logger *zap.Logger, filters []v1.SubscriptionsAPIFilter) []eventfilter.Filter
MaterialzieFilterList allows any component that supports `SubscriptionsAPIFilter` to process them
func MaterializeSubscriptionsAPIFilter ¶ added in v0.43.0
func MaterializeSubscriptionsAPIFilter(logger *zap.Logger, filter v1.SubscriptionsAPIFilter) eventfilter.Filter
MaterializeSubscriptionsAPIFilter materializes a SubscriptionsAPIFilter into a runnable Filter.
func NewAllFilter ¶
func NewAllFilter(filters ...eventfilter.Filter) eventfilter.Filter
NewAllFilter returns an event filter which passes if all the contained filters pass
func NewAnyFilter ¶
func NewAnyFilter(filters ...eventfilter.Filter) eventfilter.Filter
NewAnyFilter returns an event filter which passes if any of the contained filters passes.
func NewCESQLFilter ¶
func NewCESQLFilter(expr string) (eventfilter.Filter, error)
NewCESQLFilter returns an event filter which passes if the provided CESQL expression evaluates.
func NewExactFilter ¶
func NewExactFilter(filters map[string]string) (eventfilter.Filter, error)
NewExactFilter returns an event filter which passes if value exactly matches the value of the context attribute in the CloudEvent.
func NewNoFilter ¶ added in v0.39.0
func NewNoFilter() eventfilter.Filter
func NewNotFilter ¶
func NewNotFilter(f eventfilter.Filter) eventfilter.Filter
NewNotFilter returns an event filter which passes if the contained filter fails.
func NewPrefixFilter ¶
func NewPrefixFilter(filters map[string]string) (eventfilter.Filter, error)
NewPrefixFilter returns an event filter which passes if the value of the context attribute in the CloudEvent is prefixed with prefix.
func NewSuffixFilter ¶
func NewSuffixFilter(filters map[string]string) (eventfilter.Filter, error)
NewSuffixFilter returns an event filter which passes if the value of the context attribute in the CloudEvent ends with suffix.
Types ¶
type FiltersMap ¶ added in v0.39.0
type FiltersMap struct {
// contains filtered or unexported fields
}
func NewFiltersMap ¶ added in v0.39.0
func NewFiltersMap() *FiltersMap
func (*FiltersMap) Delete ¶ added in v0.39.0
func (fm *FiltersMap) Delete(trigger *eventingv1.Trigger)
func (*FiltersMap) Get ¶ added in v0.39.0
func (fm *FiltersMap) Get(trigger *eventingv1.Trigger) (eventfilter.Filter, bool)
func (*FiltersMap) Set ¶ added in v0.39.0
func (fm *FiltersMap) Set(trigger *eventingv1.Trigger, filter eventfilter.Filter)