process

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor interface {
	Process(ctx context.Context, inputData string) (result string, err error)
}

Processor knows how to process inputData and return a result.

func NewGoPluginV1Processor added in v0.3.0

func NewGoPluginV1Processor(ctx context.Context, pluginData string, vars map[string]string) (Processor, error)

func NewJQProcessor

func NewJQProcessor(ctx context.Context, jqExpression string, metadata map[string]string, prettyResult bool) (Processor, error)

func NewYQProcessor added in v0.2.0

func NewYQProcessor(ctx context.Context, yqExpression string) (Processor, error)

type ProcessorFunc

type ProcessorFunc func(ctx context.Context, inputData string) (result string, err error)

ProcessorFunc its a helper type to create Processors with a single function.

func (ProcessorFunc) Process

func (p ProcessorFunc) Process(ctx context.Context, inputData string) (result string, err error)

type ProcessorPluginV1 added in v0.3.0

type ProcessorPluginV1 = func(ctx context.Context, inputData string, vars map[string]string) (result string, err error)

ProcessorPluginV1 knows how to process input data with custom logic and return a result.

Jump to

Keyboard shortcuts

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