Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetainOperator ¶
type RetainOperator struct { helper.TransformerOperator Fields []entry.Field AllBodyFields bool AllAttributeFields bool AllResourceFields bool }
RetainOperator keeps the given fields and deletes the rest.
type RetainOperatorConfig ¶
type RetainOperatorConfig struct { helper.TransformerConfig `mapstructure:",squash" yaml:",inline"` Fields []entry.Field `mapstructure:"fields" json:"fields" yaml:"fields"` }
RetainOperatorConfig is the configuration of a retain operator
func NewRetainOperatorConfig ¶
func NewRetainOperatorConfig(operatorID string) *RetainOperatorConfig
NewRetainOperatorConfig creates a new retain operator config with default values
func (RetainOperatorConfig) Build ¶
func (c RetainOperatorConfig) Build(context operator.BuildContext) ([]operator.Operator, error)
Build will build a retain operator from the supplied configuration
Click to show internal directories.
Click to hide internal directories.