Documentation ¶
Index ¶
- 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 NewNotFilter(f eventfilter.Filter) eventfilter.Filter
- func NewPrefixFilter(filters map[string]string) (eventfilter.Filter, error)
- func NewSuffixFilter(filters map[string]string) (eventfilter.Filter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 ¶
This section is empty.