transformation

package
v1.14.0-beta12 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 21 Imported by: 11

Documentation

Index

Constants

View Source
const (
	ExtensionName    = "transformation"
	FilterName       = "io.solo.transformation"
	EarlyStageNumber = 1
	AwsStageNumber   = 2
)

Variables

View Source
var (
	UnknownTransformationType = func(transformation interface{}) error {
		return fmt.Errorf("unknown transformation type %T", transformation)
	}
)

Functions

func TranslateTransformation added in v1.7.7

func TranslateTransformation(glooTransform *transformation.Transformation) (
	*envoytransformation.Transformation,
	error,
)

Types

type Plugin

type Plugin struct {
	RequireEarlyTransformation bool
	TranslateTransformation    TranslateTransformationFn
	// contains filtered or unexported fields
}

This Plugin is exported only because it is utilized by the enterprise implementation We would prefer if the plugin were not exported and instead the required translation methods were exported. Other plugins may

func NewPlugin

func NewPlugin() *Plugin

func (*Plugin) HttpFilters

func (p *Plugin) HttpFilters(params plugins.Params, listener *v1.HttpListener) ([]plugins.StagedHttpFilter, error)

HttpFilters emits the desired set of filters. Either 0, 1 or if earlytransformation is needed then 2 staged filters

func (*Plugin) Init

func (p *Plugin) Init(params plugins.InitParams)

Init attempts to set the plugin back to a clean slate state.

func (*Plugin) Name added in v1.9.25

func (p *Plugin) Name() string

func (*Plugin) ProcessRoute

func (p *Plugin) ProcessRoute(params plugins.RouteParams, in *v1.Route, out *envoy_config_route_v3.Route) error

func (*Plugin) ProcessVirtualHost added in v0.18.28

func (p *Plugin) ProcessVirtualHost(
	params plugins.VirtualHostParams,
	in *v1.VirtualHost,
	out *envoy_config_route_v3.VirtualHost,
) error

func (*Plugin) ProcessWeightedDestination added in v0.18.28

func (p *Plugin) ProcessWeightedDestination(
	params plugins.RouteParams,
	in *v1.WeightedDestination,
	out *envoy_config_route_v3.WeightedCluster_ClusterWeight,
) error

type TranslateTransformationFn added in v1.7.7

type TranslateTransformationFn func(*transformation.Transformation) (*envoytransformation.Transformation, error)

Jump to

Keyboard shortcuts

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