xslt

package
v1.16.13 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_external_envoy_extensions_transformers_xslt_xslt_transformer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type XsltTransformation

type XsltTransformation struct {

	// XSLT transformation template which you want to transform requests/responses with.
	// Invalid XSLT transformation templates will result will result in a NACK during envoy configuration-time and the configuration will not be loaded.
	Xslt string `protobuf:"bytes,1,opt,name=xslt,proto3" json:"xslt,omitempty"`
	// Changes the content-type header of the HTTP request/response to what is set here.
	// This is useful in situations where an XSLT transformation is used to transform XML to JSON and the content-type
	// should be changed from `application/xml` to `application/json`.
	// If left empty, the content-type header remains unmodified by default.
	SetContentType string `protobuf:"bytes,2,opt,name=set_content_type,json=setContentType,proto3" json:"set_content_type,omitempty"`
	// This should be set to true if the content being transformed is not XML.
	// For example, if the content being transformed is from JSON to XML, this should be set to true.
	// XSLT transformations can only take valid XML as input to be transformed. If the body is not a valid XML
	// (e.g. using JSON as input in a JSON-to-XML transformation), setting `non_xml_transform` to true will allow the
	// XSLT to accept the non-XML input without throwing an error by passing the input as XML CDATA.
	// defaults to false.
	NonXmlTransform bool `protobuf:"varint,3,opt,name=non_xml_transform,json=nonXmlTransform,proto3" json:"non_xml_transform,omitempty"`
	// contains filtered or unexported fields
}

Defines an XSLT Transformation.

func (*XsltTransformation) Descriptor deprecated

func (*XsltTransformation) Descriptor() ([]byte, []int)

Deprecated: Use XsltTransformation.ProtoReflect.Descriptor instead.

func (*XsltTransformation) GetNonXmlTransform

func (x *XsltTransformation) GetNonXmlTransform() bool

func (*XsltTransformation) GetSetContentType

func (x *XsltTransformation) GetSetContentType() string

func (*XsltTransformation) GetXslt

func (x *XsltTransformation) GetXslt() string

func (*XsltTransformation) ProtoMessage

func (*XsltTransformation) ProtoMessage()

func (*XsltTransformation) ProtoReflect

func (x *XsltTransformation) ProtoReflect() protoreflect.Message

func (*XsltTransformation) Reset

func (x *XsltTransformation) Reset()

func (*XsltTransformation) String

func (x *XsltTransformation) String() string

Jump to

Keyboard shortcuts

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