transformation.proto

Package: transformation.plugins.gloo.solo.io

TODO: this was copied form the transformation filter. TODO: instead of manually copying, we want to do it via script, similar to the java-control-plane TODO: to solo-kit/api/envoy

Types:

Source File: github.com/solo-io/gloo/projects/gloo/api/v1/plugins/transformation/transformation.proto

RouteTransformations

"requestTransformation": .transformation.plugins.gloo.solo.io.Transformation
"responseTransformation": .transformation.plugins.gloo.solo.io.Transformation
Field Type Description Default
requestTransformation .transformation.plugins.gloo.solo.io.Transformation
responseTransformation .transformation.plugins.gloo.solo.io.Transformation

Transformation

[#proto-status: experimental]

"transformationTemplate": .transformation.plugins.gloo.solo.io.TransformationTemplate
"headerBodyTransform": .transformation.plugins.gloo.solo.io.HeaderBodyTransform
Field Type Description Default
transformationTemplate .transformation.plugins.gloo.solo.io.TransformationTemplate
headerBodyTransform .transformation.plugins.gloo.solo.io.HeaderBodyTransform

Extraction

"header": string
"regex": string
"subgroup": int
Field Type Description Default
header string
regex string what information to extract. if extraction fails the result is an empty value.
subgroup int

TransformationTemplate

"advancedTemplates": bool
"extractors": map<string, .transformation.plugins.gloo.solo.io.Extraction>
"headers": map<string, string>
"body": .transformation.plugins.gloo.solo.io.InjaTemplate
"passthrough": .transformation.plugins.gloo.solo.io.Passthrough
"mergeExtractorsToBody": .transformation.plugins.gloo.solo.io.MergeExtractorsToBody
Field Type Description Default
advancedTemplates bool
extractors map<string, .transformation.plugins.gloo.solo.io.Extraction> Extractors are in the origin request language domain
headers map<string, string>
body .transformation.plugins.gloo.solo.io.InjaTemplate
passthrough .transformation.plugins.gloo.solo.io.Passthrough
mergeExtractorsToBody .transformation.plugins.gloo.solo.io.MergeExtractorsToBody

InjaTemplate

custom functions: header_value(name) -> from the original headers extracted_value(name, index) -> from the extracted values

"text": string
Field Type Description Default
text string

Passthrough

Field Type Description Default

MergeExtractorsToBody

Field Type Description Default

HeaderBodyTransform

Field Type Description Default