remove

package
v0.57.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 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 Config added in v0.53.0

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

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

Config is the configuration of a remove operator

func NewConfig added in v0.53.0

func NewConfig(operatorID string) *Config

NewConfig creates a new remove operator config with default values

func (Config) Build added in v0.53.0

func (c Config) Build(logger *zap.SugaredLogger) (operator.Operator, error)

Build will build a Remove operator from the supplied configuration

type Transformer added in v0.53.0

type Transformer struct {
	helper.TransformerOperator
	Field rootableField
}

Transformer is an operator that deletes a field

func (*Transformer) Process added in v0.53.0

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

Process will process an entry with a remove transformation.

func (*Transformer) Transform added in v0.53.0

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

Transform will apply the remove operation to an entry

Jump to

Keyboard shortcuts

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