Documentation ¶
Index ¶
- Variables
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetMaskChar() string
- func (x *Action) GetName() string
- func (x *Action) GetPercent() *_type.Percent
- func (x *Action) GetRegex() []string
- func (x *Action) GetRegexActions() []*RegexAction
- func (x *Action) GetShadow() bool
- func (m *Action) Hash(hasher hash.Hash64) (uint64, error)
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- type DlpTransformation
- func (*DlpTransformation) Descriptor() ([]byte, []int)deprecated
- func (x *DlpTransformation) GetActions() []*Action
- func (x *DlpTransformation) GetEnableDynamicMetadataTransformation() bool
- func (x *DlpTransformation) GetEnableHeaderTransformation() bool
- func (m *DlpTransformation) Hash(hasher hash.Hash64) (uint64, error)
- func (*DlpTransformation) ProtoMessage()
- func (x *DlpTransformation) ProtoReflect() protoreflect.Message
- func (x *DlpTransformation) Reset()
- func (x *DlpTransformation) String() string
- type FilterTransformations
- func (*FilterTransformations) Descriptor() ([]byte, []int)deprecated
- func (x *FilterTransformations) GetTransformations() []*TransformationRule
- func (m *FilterTransformations) Hash(hasher hash.Hash64) (uint64, error)
- func (*FilterTransformations) ProtoMessage()
- func (x *FilterTransformations) ProtoReflect() protoreflect.Message
- func (x *FilterTransformations) Reset()
- func (x *FilterTransformations) String() string
- type RegexAction
- func (*RegexAction) Descriptor() ([]byte, []int)deprecated
- func (x *RegexAction) GetRegex() string
- func (x *RegexAction) GetSubgroup() uint32
- func (*RegexAction) ProtoMessage()
- func (x *RegexAction) ProtoReflect() protoreflect.Message
- func (x *RegexAction) Reset()
- func (x *RegexAction) String() string
- type RouteTransformations
- func (*RouteTransformations) Descriptor() ([]byte, []int)deprecated
- func (x *RouteTransformations) GetClearRouteCache() bool
- func (x *RouteTransformations) GetOnStreamCompletionTransformation() *Transformation
- func (x *RouteTransformations) GetRequestTransformation() *Transformation
- func (x *RouteTransformations) GetResponseTransformation() *Transformation
- func (m *RouteTransformations) Hash(hasher hash.Hash64) (uint64, error)
- func (*RouteTransformations) ProtoMessage()
- func (x *RouteTransformations) ProtoReflect() protoreflect.Message
- func (x *RouteTransformations) Reset()
- func (x *RouteTransformations) String() string
- type Transformation
- func (*Transformation) Descriptor() ([]byte, []int)deprecated
- func (x *Transformation) GetDlpTransformation() *DlpTransformation
- func (m *Transformation) GetTransformationType() isTransformation_TransformationType
- 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 TransformationRule
- func (*TransformationRule) Descriptor() ([]byte, []int)deprecated
- func (x *TransformationRule) GetMatch() *route.RouteMatch
- func (x *TransformationRule) GetRouteTransformations() *RouteTransformations
- func (m *TransformationRule) Hash(hasher hash.Hash64) (uint64, error)
- func (*TransformationRule) ProtoMessage()
- func (x *TransformationRule) ProtoReflect() protoreflect.Message
- func (x *TransformationRule) Reset()
- func (x *TransformationRule) String() string
- type Transformation_DlpTransformation
Constants ¶
This section is empty.
Variables ¶
View Source
var File_github_com_solo_io_gloo_projects_gloo_api_external_envoy_extensions_transformation_ee_transformation_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { // Identifier for this action. // Used mostly to help ID specific actions in logs. // If left null will default to unknown Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // List of regexes to apply to the response body to match data which should be masked // They will be applied iteratively in the order which they are specified Regex []string `protobuf:"bytes,2,rep,name=regex,proto3" json:"regex,omitempty"` // List of regexes to apply to the response body to match data which should be // masked. They will be applied iteratively in the order which they are // specified. If this field and `regex` are both provided, all the regexes will // be applied iteratively in the order provided, starting with the ones from `regex` RegexActions []*RegexAction `protobuf:"bytes,6,rep,name=regex_actions,json=regexActions,proto3" json:"regex_actions,omitempty"` // If specified, this rule will not actually be applied, but only logged. Shadow bool `protobuf:"varint,3,opt,name=shadow,proto3" json:"shadow,omitempty"` // The percent of the string which should be masked. // If not set, defaults to 75% Percent *_type.Percent `protobuf:"bytes,4,opt,name=percent,proto3" json:"percent,omitempty"` // The character which should overwrite the masked data // If left empty, defaults to "X" MaskChar string `protobuf:"bytes,5,opt,name=mask_char,json=maskChar,proto3" json:"mask_char,omitempty"` // contains filtered or unexported fields }
func (*Action) Descriptor
deprecated
func (*Action) GetMaskChar ¶
func (*Action) GetPercent ¶
func (*Action) GetRegexActions ¶ added in v1.8.14
func (x *Action) GetRegexActions() []*RegexAction
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶ added in v1.6.0
func (x *Action) ProtoReflect() protoreflect.Message
type DlpTransformation ¶
type DlpTransformation struct { // list of actions to apply Actions []*Action `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"` // If true, headers will be transformed. Should only be true for the // on_stream_complete_transformation route transformation type. EnableHeaderTransformation bool `` /* 142-byte string literal not displayed */ // If true, dynamic metadata will be transformed. Should only be used for the // on_stream_complete_transformation route transformation type. EnableDynamicMetadataTransformation bool `` /* 171-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DlpTransformation) Descriptor
deprecated
func (*DlpTransformation) Descriptor() ([]byte, []int)
Deprecated: Use DlpTransformation.ProtoReflect.Descriptor instead.
func (*DlpTransformation) GetActions ¶
func (x *DlpTransformation) GetActions() []*Action
func (*DlpTransformation) GetEnableDynamicMetadataTransformation ¶ added in v1.7.7
func (x *DlpTransformation) GetEnableDynamicMetadataTransformation() bool
func (*DlpTransformation) GetEnableHeaderTransformation ¶ added in v1.7.7
func (x *DlpTransformation) GetEnableHeaderTransformation() bool
func (*DlpTransformation) Hash ¶ added in v1.2.13
func (m *DlpTransformation) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*DlpTransformation) ProtoMessage ¶
func (*DlpTransformation) ProtoMessage()
func (*DlpTransformation) ProtoReflect ¶ added in v1.6.0
func (x *DlpTransformation) ProtoReflect() protoreflect.Message
func (*DlpTransformation) Reset ¶
func (x *DlpTransformation) Reset()
func (*DlpTransformation) String ¶
func (x *DlpTransformation) String() string
type FilterTransformations ¶
type FilterTransformations struct { // Specifies transformations based on the route matches. The first matched transformation will be // applied. If there are overlapped match conditions, please put the most specific match first. Transformations []*TransformationRule `protobuf:"bytes,1,rep,name=transformations,proto3" json:"transformations,omitempty"` // contains filtered or unexported fields }
func (*FilterTransformations) Descriptor
deprecated
func (*FilterTransformations) Descriptor() ([]byte, []int)
Deprecated: Use FilterTransformations.ProtoReflect.Descriptor instead.
func (*FilterTransformations) GetTransformations ¶
func (x *FilterTransformations) GetTransformations() []*TransformationRule
func (*FilterTransformations) Hash ¶ added in v1.2.13
func (m *FilterTransformations) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*FilterTransformations) ProtoMessage ¶
func (*FilterTransformations) ProtoMessage()
func (*FilterTransformations) ProtoReflect ¶ added in v1.6.0
func (x *FilterTransformations) ProtoReflect() protoreflect.Message
func (*FilterTransformations) Reset ¶
func (x *FilterTransformations) Reset()
func (*FilterTransformations) String ¶
func (x *FilterTransformations) String() string
type RegexAction ¶ added in v1.8.14
type RegexAction struct { // The regex to match for masking. Regex string `protobuf:"bytes,1,opt,name=regex,proto3" json:"regex,omitempty"` // If provided and not 0, only this specific subgroup of the regex will be masked. Subgroup uint32 `protobuf:"varint,2,opt,name=subgroup,proto3" json:"subgroup,omitempty"` // contains filtered or unexported fields }
func (*RegexAction) Descriptor
deprecated
added in
v1.8.14
func (*RegexAction) Descriptor() ([]byte, []int)
Deprecated: Use RegexAction.ProtoReflect.Descriptor instead.
func (*RegexAction) GetRegex ¶ added in v1.8.14
func (x *RegexAction) GetRegex() string
func (*RegexAction) GetSubgroup ¶ added in v1.8.14
func (x *RegexAction) GetSubgroup() uint32
func (*RegexAction) ProtoMessage ¶ added in v1.8.14
func (*RegexAction) ProtoMessage()
func (*RegexAction) ProtoReflect ¶ added in v1.8.14
func (x *RegexAction) ProtoReflect() protoreflect.Message
func (*RegexAction) Reset ¶ added in v1.8.14
func (x *RegexAction) Reset()
func (*RegexAction) String ¶ added in v1.8.14
func (x *RegexAction) String() string
type RouteTransformations ¶
type RouteTransformations struct { 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"` ResponseTransformation *Transformation `` /* 127-byte string literal not displayed */ // Apply a transformation in the onStreamComplete callback // (for modifying headers and dynamic metadata for access logs) OnStreamCompletionTransformation *Transformation `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RouteTransformations) Descriptor
deprecated
func (*RouteTransformations) Descriptor() ([]byte, []int)
Deprecated: Use RouteTransformations.ProtoReflect.Descriptor instead.
func (*RouteTransformations) GetClearRouteCache ¶
func (x *RouteTransformations) GetClearRouteCache() bool
func (*RouteTransformations) GetOnStreamCompletionTransformation ¶ added in v1.7.7
func (x *RouteTransformations) GetOnStreamCompletionTransformation() *Transformation
func (*RouteTransformations) GetRequestTransformation ¶
func (x *RouteTransformations) GetRequestTransformation() *Transformation
func (*RouteTransformations) GetResponseTransformation ¶
func (x *RouteTransformations) GetResponseTransformation() *Transformation
func (*RouteTransformations) Hash ¶ added in v1.2.13
func (m *RouteTransformations) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*RouteTransformations) ProtoMessage ¶
func (*RouteTransformations) ProtoMessage()
func (*RouteTransformations) ProtoReflect ¶ added in v1.6.0
func (x *RouteTransformations) ProtoReflect() protoreflect.Message
func (*RouteTransformations) Reset ¶
func (x *RouteTransformations) Reset()
func (*RouteTransformations) String ¶
func (x *RouteTransformations) String() string
type Transformation ¶
type Transformation struct { // Template is in the transformed request language domain // // Types that are assignable to TransformationType: // *Transformation_DlpTransformation TransformationType isTransformation_TransformationType `protobuf_oneof:"transformation_type"` // contains filtered or unexported fields }
func (*Transformation) Descriptor
deprecated
func (*Transformation) Descriptor() ([]byte, []int)
Deprecated: Use Transformation.ProtoReflect.Descriptor instead.
func (*Transformation) GetDlpTransformation ¶
func (x *Transformation) GetDlpTransformation() *DlpTransformation
func (*Transformation) GetTransformationType ¶
func (m *Transformation) GetTransformationType() isTransformation_TransformationType
func (*Transformation) Hash ¶ added in v1.2.13
func (m *Transformation) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*Transformation) ProtoMessage ¶
func (*Transformation) ProtoMessage()
func (*Transformation) ProtoReflect ¶ added in v1.6.0
func (x *Transformation) ProtoReflect() protoreflect.Message
func (*Transformation) Reset ¶
func (x *Transformation) Reset()
func (*Transformation) String ¶
func (x *Transformation) String() string
type TransformationRule ¶
type TransformationRule struct { // The route matching parameter. Only when the match is satisfied, the "requires" field will // apply. // // For example: following match will match all requests. // // .. code-block:: yaml // // match: // prefix: / // Match *route.RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"` // transformation to perform RouteTransformations *RouteTransformations `protobuf:"bytes,2,opt,name=route_transformations,json=routeTransformations,proto3" json:"route_transformations,omitempty"` // contains filtered or unexported fields }
func (*TransformationRule) Descriptor
deprecated
func (*TransformationRule) Descriptor() ([]byte, []int)
Deprecated: Use TransformationRule.ProtoReflect.Descriptor instead.
func (*TransformationRule) GetMatch ¶
func (x *TransformationRule) GetMatch() *route.RouteMatch
func (*TransformationRule) GetRouteTransformations ¶
func (x *TransformationRule) GetRouteTransformations() *RouteTransformations
func (*TransformationRule) Hash ¶ added in v1.2.13
func (m *TransformationRule) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*TransformationRule) ProtoMessage ¶
func (*TransformationRule) ProtoMessage()
func (*TransformationRule) ProtoReflect ¶ added in v1.6.0
func (x *TransformationRule) ProtoReflect() protoreflect.Message
func (*TransformationRule) Reset ¶
func (x *TransformationRule) Reset()
func (*TransformationRule) String ¶
func (x *TransformationRule) String() string
type Transformation_DlpTransformation ¶
type Transformation_DlpTransformation struct {
DlpTransformation *DlpTransformation `protobuf:"bytes,1,opt,name=dlp_transformation,json=dlpTransformation,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.