xslt

package
v1.8.16 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_enterprise_options_xslt_xslt_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 envoy will fail to start.
	Xslt string `protobuf:"bytes,1,opt,name=xslt,proto3" json:"xslt,omitempty"`
	// Sets the content-type of the HTTP request 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 to `application/xml` to `application/json`
	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.
	// 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) Equal

func (m *XsltTransformation) Equal(that interface{}) bool

Equal function

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) Hash

func (m *XsltTransformation) Hash(hasher hash.Hash64) (uint64, error)

Hash function

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