Back to godoc.org
istio.io/istio / galley / pkg / config / processing / transformer

Package transformer

v0.0.0-...-bc1ea95
Latest Go to latest

The latest major version is .

Published: Aug 6, 2020 | License: Apache-2.0 | Module: istio.io/istio

Index

type Provider

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

Provider includes the basic schema and a function to create a Transformer We do this instead of creating transformers directly because many transformers need ProcessorOptions that aren't available until after processing has started, but we need to know about inputs/outputs before that happens.

func NewProvider

func NewProvider(inputs, outputs collection.Schemas, createFn func(processing.ProcessorOptions) event.Transformer) Provider

NewProvider creates a new transformer Provider

func NewSimpleTransformerProvider

func NewSimpleTransformerProvider(input, output collection.Schema, handleFn func(e event.Event, h event.Handler)) Provider

NewSimpleTransformerProvider creates a basic transformer provider for a basic transformer

func (*Provider) Create

func (p *Provider) Create(o processing.ProcessorOptions) event.Transformer

Create returns the actual Transformer for this provider

func (*Provider) Inputs

func (p *Provider) Inputs() collection.Schemas

Inputs returns the input collections for this provider

func (*Provider) Outputs

func (p *Provider) Outputs() collection.Schemas

Outputs returns the output collections for this provider

type Providers

type Providers []Provider

Providers represents a list of Provider

func (Providers) Create

func (t Providers) Create(o processing.ProcessorOptions) []event.Transformer

Create creates a list of providers from a list of Transformers

func (Providers) RequiredInputsFor

func (t Providers) RequiredInputsFor(outputs collection.Names) map[collection.Name]struct{}

RequiredInputsFor back-maps a list of collections used as transformer outputs, returning the set of upstream input collections required to generate those outputs.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier