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

"request_transformation": .transformation.plugins.gloo.solo.io.Transformation
"response_transformation": .transformation.plugins.gloo.solo.io.Transformation

Field Type Description Default
request_transformation .transformation.plugins.gloo.solo.io.Transformation
response_transformation .transformation.plugins.gloo.solo.io.Transformation

Transformation

[#proto-status: experimental]

"transformation_template": .transformation.plugins.gloo.solo.io.TransformationTemplate
"header_body_transform": .transformation.plugins.gloo.solo.io.HeaderBodyTransform

Field Type Description Default
transformation_template .transformation.plugins.gloo.solo.io.TransformationTemplate
header_body_transform .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

"advanced_templates": 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
"merge_extractors_to_body": .transformation.plugins.gloo.solo.io.MergeExtractorsToBody

Field Type Description Default
advanced_templates 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
merge_extractors_to_body .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