Documentation ¶
Index ¶
- Variables
- type Parameters
- func (m *Parameters) Clone() proto.Message
- func (*Parameters) Descriptor() ([]byte, []int)deprecated
- func (m *Parameters) Equal(that interface{}) bool
- func (x *Parameters) GetHeaders() map[string]string
- func (x *Parameters) GetPath() *wrappers.StringValue
- func (m *Parameters) Hash(hasher hash.Hash64) (uint64, error)
- func (*Parameters) ProtoMessage()
- func (x *Parameters) ProtoReflect() protoreflect.Message
- func (x *Parameters) Reset()
- func (x *Parameters) String() string
- type RequestMatch
- func (m *RequestMatch) Clone() proto.Message
- func (*RequestMatch) Descriptor() ([]byte, []int)deprecated
- func (m *RequestMatch) Equal(that interface{}) bool
- func (x *RequestMatch) GetClearRouteCache() bool
- func (x *RequestMatch) GetMatcher() *matchers.Matcher
- func (x *RequestMatch) GetRequestTransformation() *Transformation
- func (x *RequestMatch) GetResponseTransformation() *Transformation
- func (m *RequestMatch) Hash(hasher hash.Hash64) (uint64, error)
- func (*RequestMatch) ProtoMessage()
- func (x *RequestMatch) ProtoReflect() protoreflect.Message
- func (x *RequestMatch) Reset()
- func (x *RequestMatch) String() string
- type RequestResponseTransformations
- func (m *RequestResponseTransformations) Clone() proto.Message
- func (*RequestResponseTransformations) Descriptor() ([]byte, []int)deprecated
- func (m *RequestResponseTransformations) Equal(that interface{}) bool
- func (x *RequestResponseTransformations) GetRequestTransforms() []*RequestMatch
- func (x *RequestResponseTransformations) GetResponseTransforms() []*ResponseMatch
- func (m *RequestResponseTransformations) Hash(hasher hash.Hash64) (uint64, error)
- func (*RequestResponseTransformations) ProtoMessage()
- func (x *RequestResponseTransformations) ProtoReflect() protoreflect.Message
- func (x *RequestResponseTransformations) Reset()
- func (x *RequestResponseTransformations) String() string
- type ResponseMatch
- func (m *ResponseMatch) Clone() proto.Message
- func (*ResponseMatch) Descriptor() ([]byte, []int)deprecated
- func (m *ResponseMatch) Equal(that interface{}) bool
- func (x *ResponseMatch) GetMatchers() []*matchers.HeaderMatcher
- func (x *ResponseMatch) GetResponseCodeDetails() string
- func (x *ResponseMatch) GetResponseTransformation() *Transformation
- func (m *ResponseMatch) Hash(hasher hash.Hash64) (uint64, error)
- func (*ResponseMatch) ProtoMessage()
- func (x *ResponseMatch) ProtoReflect() protoreflect.Message
- func (x *ResponseMatch) Reset()
- func (x *ResponseMatch) String() string
- type Transformation
- func (m *Transformation) Clone() proto.Message
- func (*Transformation) Descriptor() ([]byte, []int)deprecated
- func (m *Transformation) Equal(that interface{}) bool
- func (x *Transformation) GetHeaderBodyTransform() *transformation.HeaderBodyTransform
- func (x *Transformation) GetTransformationTemplate() *transformation.TransformationTemplate
- func (m *Transformation) GetTransformationType() isTransformation_TransformationType
- func (x *Transformation) GetXsltTransformation() *xslt.XsltTransformation
- func (m *Transformation) Hash(hasher hash.Hash64) (uint64, error)
- func (*Transformation) ProtoMessage()
- func (x *Transformation) ProtoReflect() protoreflect.Message
- func (x *Transformation) Reset()
- func (x *Transformation) String() string
- type TransformationStages
- func (m *TransformationStages) Clone() proto.Message
- func (*TransformationStages) Descriptor() ([]byte, []int)deprecated
- func (m *TransformationStages) Equal(that interface{}) bool
- func (x *TransformationStages) GetEarly() *RequestResponseTransformations
- func (x *TransformationStages) GetInheritTransformation() bool
- func (x *TransformationStages) GetRegular() *RequestResponseTransformations
- func (m *TransformationStages) Hash(hasher hash.Hash64) (uint64, error)
- func (*TransformationStages) ProtoMessage()
- func (x *TransformationStages) ProtoReflect() protoreflect.Message
- func (x *TransformationStages) Reset()
- func (x *TransformationStages) String() string
- type Transformation_HeaderBodyTransform
- type Transformation_TransformationTemplate
- type Transformation_XsltTransformation
- type Transformations
- func (m *Transformations) Clone() proto.Message
- func (*Transformations) Descriptor() ([]byte, []int)deprecated
- func (m *Transformations) Equal(that interface{}) bool
- func (x *Transformations) GetClearRouteCache() bool
- func (x *Transformations) GetRequestTransformation() *Transformation
- func (x *Transformations) GetResponseTransformation() *Transformation
- func (m *Transformations) Hash(hasher hash.Hash64) (uint64, error)
- func (*Transformations) ProtoMessage()
- func (x *Transformations) ProtoReflect() protoreflect.Message
- func (x *Transformations) Reset()
- func (x *Transformations) String() string
Constants ¶
This section is empty.
Variables ¶
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_transformation_parameters_proto protoreflect.FileDescriptor
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_transformation_transformation_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Parameters ¶
type Parameters struct { // headers that will be used to extract data for processing output templates // Gloo will search for parameters by their name in header value strings, enclosed in single // curly braces // Example: // extensions: // parameters: // headers: // x-user-id: '{userId}' Headers map[string]string `` /* 155-byte string literal not displayed */ // part of the (or the entire) path that will be used extract data for processing output templates // Gloo will search for parameters by their name in header value strings, enclosed in single // curly braces // Example: // extensions: // parameters: // path: /users/{ userId } Path *wrappers.StringValue `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*Parameters) Clone ¶ added in v1.8.24
func (m *Parameters) Clone() proto.Message
Clone function
func (*Parameters) Descriptor
deprecated
func (*Parameters) Descriptor() ([]byte, []int)
Deprecated: Use Parameters.ProtoReflect.Descriptor instead.
func (*Parameters) GetHeaders ¶
func (x *Parameters) GetHeaders() map[string]string
func (*Parameters) GetPath ¶
func (x *Parameters) GetPath() *wrappers.StringValue
func (*Parameters) Hash ¶ added in v1.2.13
func (m *Parameters) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*Parameters) ProtoMessage ¶
func (*Parameters) ProtoMessage()
func (*Parameters) ProtoReflect ¶ added in v1.6.0
func (x *Parameters) ProtoReflect() protoreflect.Message
func (*Parameters) Reset ¶
func (x *Parameters) Reset()
func (*Parameters) String ¶
func (x *Parameters) String() string
type RequestMatch ¶ added in v1.4.6
type RequestMatch struct { // Matches on the request properties. Matcher *matchers.Matcher `protobuf:"bytes,1,opt,name=matcher,proto3" json:"matcher,omitempty"` // Should we clear the route cache if a transformation was matched. ClearRouteCache bool `protobuf:"varint,2,opt,name=clear_route_cache,json=clearRouteCache,proto3" json:"clear_route_cache,omitempty"` // Transformation to apply on the request. RequestTransformation *Transformation `protobuf:"bytes,3,opt,name=request_transformation,json=requestTransformation,proto3" json:"request_transformation,omitempty"` // Transformation to apply on the response. ResponseTransformation *Transformation `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RequestMatch) Clone ¶ added in v1.8.24
func (m *RequestMatch) Clone() proto.Message
Clone function
func (*RequestMatch) Descriptor
deprecated
added in
v1.4.6
func (*RequestMatch) Descriptor() ([]byte, []int)
Deprecated: Use RequestMatch.ProtoReflect.Descriptor instead.
func (*RequestMatch) Equal ¶ added in v1.4.6
func (m *RequestMatch) Equal(that interface{}) bool
Equal function
func (*RequestMatch) GetClearRouteCache ¶ added in v1.4.6
func (x *RequestMatch) GetClearRouteCache() bool
func (*RequestMatch) GetMatcher ¶ added in v1.4.6
func (x *RequestMatch) GetMatcher() *matchers.Matcher
func (*RequestMatch) GetRequestTransformation ¶ added in v1.4.6
func (x *RequestMatch) GetRequestTransformation() *Transformation
func (*RequestMatch) GetResponseTransformation ¶ added in v1.4.6
func (x *RequestMatch) GetResponseTransformation() *Transformation
func (*RequestMatch) Hash ¶ added in v1.4.6
func (m *RequestMatch) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*RequestMatch) ProtoMessage ¶ added in v1.4.6
func (*RequestMatch) ProtoMessage()
func (*RequestMatch) ProtoReflect ¶ added in v1.6.0
func (x *RequestMatch) ProtoReflect() protoreflect.Message
func (*RequestMatch) Reset ¶ added in v1.4.6
func (x *RequestMatch) Reset()
func (*RequestMatch) String ¶ added in v1.4.6
func (x *RequestMatch) String() string
type RequestResponseTransformations ¶ added in v1.4.6
type RequestResponseTransformations struct { // Transformations to apply on the request. The first request that matches will apply. RequestTransforms []*RequestMatch `protobuf:"bytes,1,rep,name=request_transforms,json=requestTransforms,proto3" json:"request_transforms,omitempty"` // Transformations to apply on the response. This field is only consulted if there is no // response transformation in the matched `request_transforms`. i.e. Only one response transformation // will be executed. The first response transformation that matches will // apply. ResponseTransforms []*ResponseMatch `protobuf:"bytes,2,rep,name=response_transforms,json=responseTransforms,proto3" json:"response_transforms,omitempty"` // contains filtered or unexported fields }
func (*RequestResponseTransformations) Clone ¶ added in v1.8.24
func (m *RequestResponseTransformations) Clone() proto.Message
Clone function
func (*RequestResponseTransformations) Descriptor
deprecated
added in
v1.4.6
func (*RequestResponseTransformations) Descriptor() ([]byte, []int)
Deprecated: Use RequestResponseTransformations.ProtoReflect.Descriptor instead.
func (*RequestResponseTransformations) Equal ¶ added in v1.4.6
func (m *RequestResponseTransformations) Equal(that interface{}) bool
Equal function
func (*RequestResponseTransformations) GetRequestTransforms ¶ added in v1.4.6
func (x *RequestResponseTransformations) GetRequestTransforms() []*RequestMatch
func (*RequestResponseTransformations) GetResponseTransforms ¶ added in v1.4.6
func (x *RequestResponseTransformations) GetResponseTransforms() []*ResponseMatch
func (*RequestResponseTransformations) Hash ¶ added in v1.4.6
func (m *RequestResponseTransformations) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*RequestResponseTransformations) ProtoMessage ¶ added in v1.4.6
func (*RequestResponseTransformations) ProtoMessage()
func (*RequestResponseTransformations) ProtoReflect ¶ added in v1.6.0
func (x *RequestResponseTransformations) ProtoReflect() protoreflect.Message
func (*RequestResponseTransformations) Reset ¶ added in v1.4.6
func (x *RequestResponseTransformations) Reset()
func (*RequestResponseTransformations) String ¶ added in v1.4.6
func (x *RequestResponseTransformations) String() string
type ResponseMatch ¶ added in v1.4.6
type ResponseMatch struct { // Response headers to match on. Matchers []*matchers.HeaderMatcher `protobuf:"bytes,1,rep,name=matchers,proto3" json:"matchers,omitempty"` // Response code detail to match on. To see the response code details for your usecase, // you can use the envoy access log %RESPONSE_CODE_DETAILS% formatter to log it. ResponseCodeDetails string `protobuf:"bytes,2,opt,name=response_code_details,json=responseCodeDetails,proto3" json:"response_code_details,omitempty"` // Transformation to apply on the response. ResponseTransformation *Transformation `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ResponseMatch) Clone ¶ added in v1.8.24
func (m *ResponseMatch) Clone() proto.Message
Clone function
func (*ResponseMatch) Descriptor
deprecated
added in
v1.4.6
func (*ResponseMatch) Descriptor() ([]byte, []int)
Deprecated: Use ResponseMatch.ProtoReflect.Descriptor instead.
func (*ResponseMatch) Equal ¶ added in v1.4.6
func (m *ResponseMatch) Equal(that interface{}) bool
Equal function
func (*ResponseMatch) GetMatchers ¶ added in v1.4.6
func (x *ResponseMatch) GetMatchers() []*matchers.HeaderMatcher
func (*ResponseMatch) GetResponseCodeDetails ¶ added in v1.4.6
func (x *ResponseMatch) GetResponseCodeDetails() string
func (*ResponseMatch) GetResponseTransformation ¶ added in v1.4.6
func (x *ResponseMatch) GetResponseTransformation() *Transformation
func (*ResponseMatch) Hash ¶ added in v1.4.6
func (m *ResponseMatch) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*ResponseMatch) ProtoMessage ¶ added in v1.4.6
func (*ResponseMatch) ProtoMessage()
func (*ResponseMatch) ProtoReflect ¶ added in v1.6.0
func (x *ResponseMatch) ProtoReflect() protoreflect.Message
func (*ResponseMatch) Reset ¶ added in v1.4.6
func (x *ResponseMatch) Reset()
func (*ResponseMatch) String ¶ added in v1.4.6
func (x *ResponseMatch) String() string
type Transformation ¶ added in v1.7.7
type Transformation struct { // The type of transformation to apply. // // Types that are assignable to TransformationType: // *Transformation_TransformationTemplate // *Transformation_HeaderBodyTransform // *Transformation_XsltTransformation TransformationType isTransformation_TransformationType `protobuf_oneof:"transformation_type"` // contains filtered or unexported fields }
User-facing API for transformation.
func (*Transformation) Clone ¶ added in v1.8.24
func (m *Transformation) Clone() proto.Message
Clone function
func (*Transformation) Descriptor
deprecated
added in
v1.7.7
func (*Transformation) Descriptor() ([]byte, []int)
Deprecated: Use Transformation.ProtoReflect.Descriptor instead.
func (*Transformation) Equal ¶ added in v1.7.7
func (m *Transformation) Equal(that interface{}) bool
Equal function
func (*Transformation) GetHeaderBodyTransform ¶ added in v1.7.7
func (x *Transformation) GetHeaderBodyTransform() *transformation.HeaderBodyTransform
func (*Transformation) GetTransformationTemplate ¶ added in v1.7.7
func (x *Transformation) GetTransformationTemplate() *transformation.TransformationTemplate
func (*Transformation) GetTransformationType ¶ added in v1.7.7
func (m *Transformation) GetTransformationType() isTransformation_TransformationType
func (*Transformation) GetXsltTransformation ¶ added in v1.7.7
func (x *Transformation) GetXsltTransformation() *xslt.XsltTransformation
func (*Transformation) Hash ¶ added in v1.7.7
func (m *Transformation) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*Transformation) ProtoMessage ¶ added in v1.7.7
func (*Transformation) ProtoMessage()
func (*Transformation) ProtoReflect ¶ added in v1.7.7
func (x *Transformation) ProtoReflect() protoreflect.Message
func (*Transformation) Reset ¶ added in v1.7.7
func (x *Transformation) Reset()
func (*Transformation) String ¶ added in v1.7.7
func (x *Transformation) String() string
type TransformationStages ¶ added in v1.4.6
type TransformationStages struct { // Early transformations happen before most other options (Like Auth and Rate Limit). Early *RequestResponseTransformations `protobuf:"bytes,1,opt,name=early,proto3" json:"early,omitempty"` // Regular transformations happen after Auth and Rate limit decisions has been made. Regular *RequestResponseTransformations `protobuf:"bytes,2,opt,name=regular,proto3" json:"regular,omitempty"` // Inherit transformation config from parent. This has no affect on VirtualHost level transformations. // If a RouteTable or Route wants to inherit transformations from it's parent RouteTable or VirtualHost, // this should be set to true, else transformations from parents will not be inherited. // Transformations are ordered so the child's transformation gets priority, so in the case where a child // and parent's transformation matchers are the same, only the child's transformation will run because // only one transformation will run per stage. // Defaults to false. InheritTransformation bool `protobuf:"varint,3,opt,name=inherit_transformation,json=inheritTransformation,proto3" json:"inherit_transformation,omitempty"` // contains filtered or unexported fields }
func (*TransformationStages) Clone ¶ added in v1.8.24
func (m *TransformationStages) Clone() proto.Message
Clone function
func (*TransformationStages) Descriptor
deprecated
added in
v1.4.6
func (*TransformationStages) Descriptor() ([]byte, []int)
Deprecated: Use TransformationStages.ProtoReflect.Descriptor instead.
func (*TransformationStages) Equal ¶ added in v1.4.6
func (m *TransformationStages) Equal(that interface{}) bool
Equal function
func (*TransformationStages) GetEarly ¶ added in v1.4.6
func (x *TransformationStages) GetEarly() *RequestResponseTransformations
func (*TransformationStages) GetInheritTransformation ¶ added in v1.7.7
func (x *TransformationStages) GetInheritTransformation() bool
func (*TransformationStages) GetRegular ¶ added in v1.4.6
func (x *TransformationStages) GetRegular() *RequestResponseTransformations
func (*TransformationStages) Hash ¶ added in v1.4.6
func (m *TransformationStages) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*TransformationStages) ProtoMessage ¶ added in v1.4.6
func (*TransformationStages) ProtoMessage()
func (*TransformationStages) ProtoReflect ¶ added in v1.6.0
func (x *TransformationStages) ProtoReflect() protoreflect.Message
func (*TransformationStages) Reset ¶ added in v1.4.6
func (x *TransformationStages) Reset()
func (*TransformationStages) String ¶ added in v1.4.6
func (x *TransformationStages) String() string
type Transformation_HeaderBodyTransform ¶ added in v1.7.7
type Transformation_HeaderBodyTransform struct { // This type of transformation will make all the headers available in the // response body. The resulting JSON body will consist of two attributes: // 'headers', containing the headers, and 'body', containing the original // body. HeaderBodyTransform *transformation.HeaderBodyTransform `protobuf:"bytes,2,opt,name=header_body_transform,json=headerBodyTransform,proto3,oneof"` }
type Transformation_TransformationTemplate ¶ added in v1.7.7
type Transformation_TransformationTemplate struct { // Apply transformation templates. TransformationTemplate *transformation.TransformationTemplate `protobuf:"bytes,1,opt,name=transformation_template,json=transformationTemplate,proto3,oneof"` }
type Transformation_XsltTransformation ¶ added in v1.7.7
type Transformation_XsltTransformation struct { // (Enterprise Only): Xslt Transformation XsltTransformation *xslt.XsltTransformation `protobuf:"bytes,3,opt,name=xslt_transformation,json=xsltTransformation,proto3,oneof"` }
type Transformations ¶ added in v1.4.6
type Transformations struct { // Apply a transformation to requests. RequestTransformation *Transformation `protobuf:"bytes,1,opt,name=request_transformation,json=requestTransformation,proto3" json:"request_transformation,omitempty"` // Clear the route cache if the request transformation was applied. ClearRouteCache bool `protobuf:"varint,3,opt,name=clear_route_cache,json=clearRouteCache,proto3" json:"clear_route_cache,omitempty"` // Apply a transformation to responses. ResponseTransformation *Transformation `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Transformations) Clone ¶ added in v1.8.24
func (m *Transformations) Clone() proto.Message
Clone function
func (*Transformations) Descriptor
deprecated
added in
v1.4.6
func (*Transformations) Descriptor() ([]byte, []int)
Deprecated: Use Transformations.ProtoReflect.Descriptor instead.
func (*Transformations) Equal ¶ added in v1.4.6
func (m *Transformations) Equal(that interface{}) bool
Equal function
func (*Transformations) GetClearRouteCache ¶ added in v1.4.6
func (x *Transformations) GetClearRouteCache() bool
func (*Transformations) GetRequestTransformation ¶ added in v1.4.6
func (x *Transformations) GetRequestTransformation() *Transformation
func (*Transformations) GetResponseTransformation ¶ added in v1.4.6
func (x *Transformations) GetResponseTransformation() *Transformation
func (*Transformations) Hash ¶ added in v1.4.6
func (m *Transformations) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*Transformations) ProtoMessage ¶ added in v1.4.6
func (*Transformations) ProtoMessage()
func (*Transformations) ProtoReflect ¶ added in v1.6.0
func (x *Transformations) ProtoReflect() protoreflect.Message
func (*Transformations) Reset ¶ added in v1.4.6
func (x *Transformations) Reset()
func (*Transformations) String ¶ added in v1.4.6
func (x *Transformations) String() string