remove

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoveOperator

type RemoveOperator struct {
	helper.TransformerOperator
	Field rootableField
}

RemoveOperator is an operator that deletes a field

func (*RemoveOperator) Process

func (p *RemoveOperator) Process(ctx context.Context, entry *entry.Entry) error

Process will process an entry with a remove transformation.

func (*RemoveOperator) Transform

func (p *RemoveOperator) Transform(entry *entry.Entry) error

Transform will apply the remove operation to an entry

type RemoveOperatorConfig

type RemoveOperatorConfig struct {
	helper.TransformerConfig `mapstructure:",squash" yaml:",inline"`

	Field rootableField `mapstructure:"field"  json:"field" yaml:"field"`
}

RemoveOperatorConfig is the configuration of a remove operator

func NewRemoveOperatorConfig

func NewRemoveOperatorConfig(operatorID string) *RemoveOperatorConfig

NewRemoveOperatorConfig creates a new remove operator config with default values

func (RemoveOperatorConfig) Build

Build will build a Remove operator from the supplied configuration

Jump to

Keyboard shortcuts

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