Documentation ¶
Index ¶
- type AfterCondition
- type BeforeCondition
- type Condition
- type ConditionFilter
- type ContainsAnyCondition
- type ContainsCondition
- type EQCondition
- type ExistCondition
- type HasPrefixCondition
- type HasSuffixCondition
- type INCondition
- type MatchCondition
- type OPNode
- type RandomCondition
- type TemplateCondition
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 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 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
Click to show internal directories.
Click to hide internal directories.