Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultFilterEngine ¶
type DefaultFilterEngine struct {
// contains filtered or unexported fields
}
DefaultFilterEngine is a default implementation of the Filter Engine.
func New ¶ added in v0.13.0
func New(log logrus.FieldLogger) *DefaultFilterEngine
New creates new DefaultFilterEngine instance..
func WithAllFilters ¶ added in v0.13.0
func WithAllFilters(logger *logrus.Logger, dynamicCli dynamic.Interface, mapper meta.RESTMapper, cfg config.Filters) *DefaultFilterEngine
WithAllFilters returns new DefaultFilterEngine instance with all filters registered.
func (*DefaultFilterEngine) Register ¶ added in v0.13.0
func (f *DefaultFilterEngine) Register(filters ...RegisteredFilter)
Register filter(s) to engine.
func (*DefaultFilterEngine) RegisteredFilters ¶ added in v0.13.0
func (f *DefaultFilterEngine) RegisteredFilters() []RegisteredFilter
RegisteredFilters returns sorted slice of registered filters.
type FilterEngine ¶
type FilterEngine interface { Run(context.Context, events.Event) events.Event Register(...RegisteredFilter) RegisteredFilters() []RegisteredFilter SetFilter(string, bool) error }
FilterEngine has methods to register and run filters.
type RegisteredFilter ¶ added in v0.13.0
RegisteredFilter contains details about registered filter.
Click to show internal directories.
Click to hide internal directories.