Documentation ¶
Index ¶
- type Allow
- func (d *Allow) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg
- func (d *Allow) Init(cfg interface{}, opts ...formatters.Option) error
- func (d *Allow) WithActions(act map[string]map[string]interface{})
- func (d *Allow) WithLogger(l *log.Logger)
- func (d *Allow) WithTargets(tcs map[string]*types.TargetConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allow ¶
type Allow struct { Condition string `mapstructure:"condition,omitempty"` TagNames []string `mapstructure:"tag-names,omitempty" json:"tag-names,omitempty"` ValueNames []string `mapstructure:"value-names,omitempty" json:"value-names,omitempty"` Tags []string `mapstructure:"tags,omitempty" json:"tags,omitempty"` Values []string `mapstructure:"values,omitempty" json:"values,omitempty"` Debug bool `mapstructure:"debug,omitempty" json:"debug,omitempty"` // contains filtered or unexported fields }
Allow Allows the msg if ANY of the Tags or Values regexes are matched
func (*Allow) Apply ¶
func (d *Allow) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg
func (*Allow) WithActions ¶ added in v0.21.0
func (*Allow) WithLogger ¶
func (*Allow) WithTargets ¶ added in v0.12.2
func (d *Allow) WithTargets(tcs map[string]*types.TargetConfig)
Click to show internal directories.
Click to hide internal directories.