metadata

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 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 MetadataOperator

type MetadataOperator struct {
	helper.TransformerOperator
	helper.Labeler
	helper.Identifier
}

MetadataOperator is an operator that can add metadata to incoming entries

func (*MetadataOperator) Process

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

Process will process an incoming entry using the metadata transform.

func (*MetadataOperator) Transform

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

Transform will transform an entry using the labeler and tagger.

type MetadataOperatorConfig

type MetadataOperatorConfig struct {
	helper.TransformerConfig `yaml:",inline"`
	helper.LabelerConfig     `yaml:",inline"`
	helper.IdentifierConfig  `yaml:",inline"`
}

MetadataOperatorConfig is the configuration of a metadata operator

func NewMetadataOperatorConfig

func NewMetadataOperatorConfig(operatorID string) *MetadataOperatorConfig

NewMetadataOperatorConfig creates a new metadata config with default values

func (MetadataOperatorConfig) Build

Build will build a metadata operator from the supplied configuration

Jump to

Keyboard shortcuts

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