Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOperator ¶
type AddOperator struct { helper.TransformerOperator Field entry.Field Value interface{} // contains filtered or unexported fields }
AddOperator is an operator that adds a string value or an expression value
type AddOperatorConfig ¶
type AddOperatorConfig struct { helper.TransformerConfig `mapstructure:",squash" yaml:",inline"` Field entry.Field `mapstructure:"field" json:"field" yaml:"field"` Value interface{} `mapstructure:"value,omitempty" json:"value,omitempty" yaml:"value,omitempty"` }
AddOperatorConfig is the configuration of an add operator
func NewAddOperatorConfig ¶
func NewAddOperatorConfig(operatorID string) *AddOperatorConfig
NewAddOperatorConfig creates a new add operator config with default values
func (AddOperatorConfig) Build ¶
func (c AddOperatorConfig) Build(context operator.BuildContext) ([]operator.Operator, error)
Build will build an add operator from the supplied configuration
Click to show internal directories.
Click to hide internal directories.