istio: istio.io/istio/galley/pkg/config/processing/transformer Index | Files

package transformer

import "istio.io/istio/galley/pkg/config/processing/transformer"

Index

Package Files

provider.go

type Provider Uses

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 Uses

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

NewProvider creates a new transformer Provider

func NewSimpleTransformerProvider Uses

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

NewSimpleTransformerProvider creates a basic transformer provider for a basic transformer

func (*Provider) Create Uses

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

Create returns the actual Transformer for this provider

func (*Provider) Inputs Uses

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

Inputs returns the input collections for this provider

func (*Provider) Outputs Uses

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

Outputs returns the output collections for this provider

type Providers Uses

type Providers []Provider

Providers represents a list of Provider

func (Providers) Create Uses

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

Create creates a list of providers from a list of Transformers

Package transformer imports 3 packages (graph) and is imported by 8 packages. Updated 2019-10-21. Refresh now. Tools for package owners.