remove

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 5 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 entry.Field
}

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 restructure transformation.

func (*RemoveOperator) Transform

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

Transform will apply the restructure operations to an entry

type RemoveOperatorConfig

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

	Field entry.Field `mapstructure:"field"  json:"field" yaml:"field"`
}

RemoveOperatorConfig is the configuration of a restructure operator

func NewRemoveOperatorConfig

func NewRemoveOperatorConfig(operatorID string) *RemoveOperatorConfig

NewRemoveOperatorConfig creates a new restructure 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