transform

package
v0.1.5-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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 Definition

type Definition struct {
	Type    string
	Generic api.TransformGeneric
	Network api.TransformNetwork
}

type Definitions

type Definitions []Definition

type Filter

type Filter struct {
	Rules []api.TransformFilterRule
}

func (*Filter) Transform

func (f *Filter) Transform(entry config.GenericMap) (config.GenericMap, bool)

Transform transforms a flow

type Generic

type Generic struct {
	// contains filtered or unexported fields
}

func (*Generic) Transform

func (g *Generic) Transform(entry config.GenericMap) (config.GenericMap, bool)

Transform transforms a flow to a new set of keys

type Network

type Network struct {
	api.TransformNetwork
	// contains filtered or unexported fields
}

func (*Network) Transform

func (n *Network) Transform(inputEntry config.GenericMap) (config.GenericMap, bool)

type Transformer

type Transformer interface {
	Transform(in config.GenericMap) (config.GenericMap, bool)
}

func NewTransformFilter

func NewTransformFilter(params config.StageParam) (Transformer, error)

NewTransformFilter create a new filter transform

func NewTransformGeneric

func NewTransformGeneric(params config.StageParam) (Transformer, error)

NewTransformGeneric create a new transform

func NewTransformNetwork

func NewTransformNetwork(params config.StageParam) (Transformer, error)

NewTransformNetwork create a new transform

func NewTransformNone

func NewTransformNone() (Transformer, error)

NewTransformNone create a new transform

Directories

Path Synopsis
cni

Jump to

Keyboard shortcuts

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