transformation

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 15 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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                 *types.StringValue `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*Parameters) Descriptor

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

func (*Parameters) Equal

func (this *Parameters) Equal(that interface{}) bool

func (*Parameters) GetHeaders

func (m *Parameters) GetHeaders() map[string]string

func (*Parameters) GetPath

func (m *Parameters) GetPath() *types.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) Reset

func (m *Parameters) Reset()

func (*Parameters) String

func (m *Parameters) String() string

func (*Parameters) XXX_DiscardUnknown

func (m *Parameters) XXX_DiscardUnknown()

func (*Parameters) XXX_Marshal

func (m *Parameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Parameters) XXX_Merge

func (m *Parameters) XXX_Merge(src proto.Message)

func (*Parameters) XXX_Size

func (m *Parameters) XXX_Size() int

func (*Parameters) XXX_Unmarshal

func (m *Parameters) XXX_Unmarshal(b []byte) error

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.Transformation `protobuf:"bytes,3,opt,name=request_transformation,json=requestTransformation,proto3" json:"request_transformation,omitempty"`
	// Transformation to apply on the response.
	ResponseTransformation *transformation.Transformation `` /* 127-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}                       `json:"-"`
	XXX_unrecognized       []byte                         `json:"-"`
	XXX_sizecache          int32                          `json:"-"`
}

func (*RequestMatch) Descriptor added in v1.4.6

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

func (*RequestMatch) Equal added in v1.4.6

func (this *RequestMatch) Equal(that interface{}) bool

func (*RequestMatch) GetClearRouteCache added in v1.4.6

func (m *RequestMatch) GetClearRouteCache() bool

func (*RequestMatch) GetMatcher added in v1.4.6

func (m *RequestMatch) GetMatcher() *matchers.Matcher

func (*RequestMatch) GetRequestTransformation added in v1.4.6

func (m *RequestMatch) GetRequestTransformation() *transformation.Transformation

func (*RequestMatch) GetResponseTransformation added in v1.4.6

func (m *RequestMatch) GetResponseTransformation() *transformation.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) Reset added in v1.4.6

func (m *RequestMatch) Reset()

func (*RequestMatch) String added in v1.4.6

func (m *RequestMatch) String() string

func (*RequestMatch) XXX_DiscardUnknown added in v1.4.6

func (m *RequestMatch) XXX_DiscardUnknown()

func (*RequestMatch) XXX_Marshal added in v1.4.6

func (m *RequestMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestMatch) XXX_Merge added in v1.4.6

func (m *RequestMatch) XXX_Merge(src proto.Message)

func (*RequestMatch) XXX_Size added in v1.4.6

func (m *RequestMatch) XXX_Size() int

func (*RequestMatch) XXX_Unmarshal added in v1.4.6

func (m *RequestMatch) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*RequestResponseTransformations) Descriptor added in v1.4.6

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

func (*RequestResponseTransformations) Equal added in v1.4.6

func (this *RequestResponseTransformations) Equal(that interface{}) bool

func (*RequestResponseTransformations) GetRequestTransforms added in v1.4.6

func (m *RequestResponseTransformations) GetRequestTransforms() []*RequestMatch

func (*RequestResponseTransformations) GetResponseTransforms added in v1.4.6

func (m *RequestResponseTransformations) GetResponseTransforms() []*ResponseMatch

func (*RequestResponseTransformations) Hash added in v1.4.6

Hash function

func (*RequestResponseTransformations) ProtoMessage added in v1.4.6

func (*RequestResponseTransformations) ProtoMessage()

func (*RequestResponseTransformations) Reset added in v1.4.6

func (m *RequestResponseTransformations) Reset()

func (*RequestResponseTransformations) String added in v1.4.6

func (*RequestResponseTransformations) XXX_DiscardUnknown added in v1.4.6

func (m *RequestResponseTransformations) XXX_DiscardUnknown()

func (*RequestResponseTransformations) XXX_Marshal added in v1.4.6

func (m *RequestResponseTransformations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RequestResponseTransformations) XXX_Merge added in v1.4.6

func (m *RequestResponseTransformations) XXX_Merge(src proto.Message)

func (*RequestResponseTransformations) XXX_Size added in v1.4.6

func (m *RequestResponseTransformations) XXX_Size() int

func (*RequestResponseTransformations) XXX_Unmarshal added in v1.4.6

func (m *RequestResponseTransformations) XXX_Unmarshal(b []byte) error

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.Transformation `` /* 127-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}                       `json:"-"`
	XXX_unrecognized       []byte                         `json:"-"`
	XXX_sizecache          int32                          `json:"-"`
}

func (*ResponseMatch) Descriptor added in v1.4.6

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

func (*ResponseMatch) Equal added in v1.4.6

func (this *ResponseMatch) Equal(that interface{}) bool

func (*ResponseMatch) GetMatchers added in v1.4.6

func (m *ResponseMatch) GetMatchers() []*matchers.HeaderMatcher

func (*ResponseMatch) GetResponseCodeDetails added in v1.4.6

func (m *ResponseMatch) GetResponseCodeDetails() string

func (*ResponseMatch) GetResponseTransformation added in v1.4.6

func (m *ResponseMatch) GetResponseTransformation() *transformation.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) Reset added in v1.4.6

func (m *ResponseMatch) Reset()

func (*ResponseMatch) String added in v1.4.6

func (m *ResponseMatch) String() string

func (*ResponseMatch) XXX_DiscardUnknown added in v1.4.6

func (m *ResponseMatch) XXX_DiscardUnknown()

func (*ResponseMatch) XXX_Marshal added in v1.4.6

func (m *ResponseMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResponseMatch) XXX_Merge added in v1.4.6

func (m *ResponseMatch) XXX_Merge(src proto.Message)

func (*ResponseMatch) XXX_Size added in v1.4.6

func (m *ResponseMatch) XXX_Size() int

func (*ResponseMatch) XXX_Unmarshal added in v1.4.6

func (m *ResponseMatch) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

func (*TransformationStages) Descriptor added in v1.4.6

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

func (*TransformationStages) Equal added in v1.4.6

func (this *TransformationStages) Equal(that interface{}) bool

func (*TransformationStages) GetEarly added in v1.4.6

func (*TransformationStages) GetRegular added in v1.4.6

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) Reset added in v1.4.6

func (m *TransformationStages) Reset()

func (*TransformationStages) String added in v1.4.6

func (m *TransformationStages) String() string

func (*TransformationStages) XXX_DiscardUnknown added in v1.4.6

func (m *TransformationStages) XXX_DiscardUnknown()

func (*TransformationStages) XXX_Marshal added in v1.4.6

func (m *TransformationStages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransformationStages) XXX_Merge added in v1.4.6

func (m *TransformationStages) XXX_Merge(src proto.Message)

func (*TransformationStages) XXX_Size added in v1.4.6

func (m *TransformationStages) XXX_Size() int

func (*TransformationStages) XXX_Unmarshal added in v1.4.6

func (m *TransformationStages) XXX_Unmarshal(b []byte) error

type Transformations added in v1.4.6

type Transformations struct {
	// Apply a transformation to requests.
	RequestTransformation *transformation.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.Transformation `` /* 127-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}                       `json:"-"`
	XXX_unrecognized       []byte                         `json:"-"`
	XXX_sizecache          int32                          `json:"-"`
}

func (*Transformations) Descriptor added in v1.4.6

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

func (*Transformations) Equal added in v1.4.6

func (this *Transformations) Equal(that interface{}) bool

func (*Transformations) GetClearRouteCache added in v1.4.6

func (m *Transformations) GetClearRouteCache() bool

func (*Transformations) GetRequestTransformation added in v1.4.6

func (m *Transformations) GetRequestTransformation() *transformation.Transformation

func (*Transformations) GetResponseTransformation added in v1.4.6

func (m *Transformations) GetResponseTransformation() *transformation.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) Reset added in v1.4.6

func (m *Transformations) Reset()

func (*Transformations) String added in v1.4.6

func (m *Transformations) String() string

func (*Transformations) XXX_DiscardUnknown added in v1.4.6

func (m *Transformations) XXX_DiscardUnknown()

func (*Transformations) XXX_Marshal added in v1.4.6

func (m *Transformations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Transformations) XXX_Merge added in v1.4.6

func (m *Transformations) XXX_Merge(src proto.Message)

func (*Transformations) XXX_Size added in v1.4.6

func (m *Transformations) XXX_Size() int

func (*Transformations) XXX_Unmarshal added in v1.4.6

func (m *Transformations) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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