condition_filter

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AfterCondition

type AfterCondition struct {
	// contains filtered or unexported fields
}

func NewAfterCondition

func NewAfterCondition(value string) *AfterCondition

func (*AfterCondition) Pass

func (c *AfterCondition) Pass(event map[string]interface{}) bool

type BeforeCondition

type BeforeCondition struct {
	// contains filtered or unexported fields
}

func NewBeforeCondition

func NewBeforeCondition(value string) *BeforeCondition

func (*BeforeCondition) Pass

func (c *BeforeCondition) Pass(event map[string]interface{}) bool

type Condition

type Condition interface {
	Pass(event map[string]interface{}) bool
}

func NewCondition

func NewCondition(c string) Condition

func NewSingleCondition

func NewSingleCondition(c string) (Condition, error)

type ConditionFilter

type ConditionFilter struct {
	// contains filtered or unexported fields
}

func NewConditionFilter

func NewConditionFilter(config map[interface{}]interface{}) *ConditionFilter

func (*ConditionFilter) Pass

func (f *ConditionFilter) Pass(event map[string]interface{}) bool

type ContainsAnyCondition

type ContainsAnyCondition struct {
	// contains filtered or unexported fields
}

func NewContainsAnyCondition

func NewContainsAnyCondition(paths []string, substring string) *ContainsAnyCondition

func (*ContainsAnyCondition) Pass

func (c *ContainsAnyCondition) Pass(event map[string]interface{}) bool

type ContainsCondition

type ContainsCondition struct {
	// contains filtered or unexported fields
}

func NewContainsCondition

func NewContainsCondition(c string) (*ContainsCondition, error)

func (*ContainsCondition) Pass

func (c *ContainsCondition) Pass(event map[string]interface{}) bool

type EQCondition

type EQCondition struct {
	// contains filtered or unexported fields
}

func NewEQCondition

func NewEQCondition(c string) (*EQCondition, error)

func (*EQCondition) Pass

func (c *EQCondition) Pass(event map[string]interface{}) bool

type ExistCondition

type ExistCondition struct {
	// contains filtered or unexported fields
}

func NewExistCondition

func NewExistCondition(paths []string) *ExistCondition

func (*ExistCondition) Pass

func (c *ExistCondition) Pass(event map[string]interface{}) bool

type HasPrefixCondition

type HasPrefixCondition struct {
	// contains filtered or unexported fields
}

func NewHasPrefixCondition

func NewHasPrefixCondition(c string) (*HasPrefixCondition, error)

func (*HasPrefixCondition) Pass

func (c *HasPrefixCondition) Pass(event map[string]interface{}) bool

type HasSuffixCondition

type HasSuffixCondition struct {
	// contains filtered or unexported fields
}

func NewHasSuffixCondition

func NewHasSuffixCondition(c string) (*HasSuffixCondition, error)

func (*HasSuffixCondition) Pass

func (c *HasSuffixCondition) Pass(event map[string]interface{}) bool

type INCondition

type INCondition struct {
	// contains filtered or unexported fields
}

func NewINCondition

func NewINCondition(c string) (*INCondition, error)

func (*INCondition) Pass

func (c *INCondition) Pass(event map[string]interface{}) bool

type MatchCondition

type MatchCondition struct {
	// contains filtered or unexported fields
}

func NewMatchCondition

func NewMatchCondition(c string) (*MatchCondition, error)

func (*MatchCondition) Pass

func (c *MatchCondition) Pass(event map[string]interface{}) bool

type OPNode

type OPNode struct {
	// contains filtered or unexported fields
}

func (*OPNode) Pass

func (root *OPNode) Pass(event map[string]interface{}) bool

type RandomCondition

type RandomCondition struct {
	// contains filtered or unexported fields
}

func NewRandomCondition

func NewRandomCondition(value int) *RandomCondition

func (*RandomCondition) Pass

func (c *RandomCondition) Pass(event map[string]interface{}) bool

type TemplateCondition

type TemplateCondition struct {
	// contains filtered or unexported fields
}

func NewTemplateConditionFilter

func NewTemplateConditionFilter(condition string) *TemplateCondition

func (*TemplateCondition) Pass

func (s *TemplateCondition) Pass(event map[string]interface{}) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL