payload_to_metadatav3

package
v1.33.0-20240424200609... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PayloadToMetadata_ValueType_name = map[int32]string{
		0: "STRING",
		1: "NUMBER",
	}
	PayloadToMetadata_ValueType_value = map[string]int32{
		"STRING": 0,
		"NUMBER": 1,
	}
)

Enum value maps for PayloadToMetadata_ValueType.

View Source
var File_envoy_extensions_filters_network_thrift_proxy_filters_payload_to_metadata_v3_payload_to_metadata_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PayloadToMetadata

type PayloadToMetadata struct {

	// The list of rules to apply to requests.
	RequestRules []*PayloadToMetadata_Rule `protobuf:"bytes,1,rep,name=request_rules,json=requestRules,proto3" json:"request_rules,omitempty"`
	// contains filtered or unexported fields
}

func (*PayloadToMetadata) Descriptor deprecated

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

Deprecated: Use PayloadToMetadata.ProtoReflect.Descriptor instead.

func (*PayloadToMetadata) GetRequestRules

func (x *PayloadToMetadata) GetRequestRules() []*PayloadToMetadata_Rule

func (*PayloadToMetadata) ProtoMessage

func (*PayloadToMetadata) ProtoMessage()

func (*PayloadToMetadata) ProtoReflect

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

func (*PayloadToMetadata) Reset

func (x *PayloadToMetadata) Reset()

func (*PayloadToMetadata) String

func (x *PayloadToMetadata) String() string

type PayloadToMetadata_FieldSelector

type PayloadToMetadata_FieldSelector struct {

	// field name to log
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// field id to match
	Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// next node of the field selector
	Child *PayloadToMetadata_FieldSelector `protobuf:"bytes,3,opt,name=child,proto3" json:"child,omitempty"`
	// contains filtered or unexported fields
}

func (*PayloadToMetadata_FieldSelector) Descriptor deprecated

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

Deprecated: Use PayloadToMetadata_FieldSelector.ProtoReflect.Descriptor instead.

func (*PayloadToMetadata_FieldSelector) GetChild

func (*PayloadToMetadata_FieldSelector) GetId

func (*PayloadToMetadata_FieldSelector) GetName

func (*PayloadToMetadata_FieldSelector) ProtoMessage

func (*PayloadToMetadata_FieldSelector) ProtoMessage()

func (*PayloadToMetadata_FieldSelector) ProtoReflect

func (*PayloadToMetadata_FieldSelector) Reset

func (*PayloadToMetadata_FieldSelector) String

type PayloadToMetadata_KeyValuePair

type PayloadToMetadata_KeyValuePair struct {

	// The namespace — if this is empty, the filter's namespace will be used.
	MetadataNamespace string `protobuf:"bytes,1,opt,name=metadata_namespace,json=metadataNamespace,proto3" json:"metadata_namespace,omitempty"`
	// The key to use within the namespace.
	Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// Types that are assignable to ValueType:
	//
	//	*PayloadToMetadata_KeyValuePair_Value
	//	*PayloadToMetadata_KeyValuePair_RegexValueRewrite
	ValueType isPayloadToMetadata_KeyValuePair_ValueType `protobuf_oneof:"value_type"`
	// The value's type — defaults to string.
	Type PayloadToMetadata_ValueType `` /* 172-byte string literal not displayed */
	// contains filtered or unexported fields
}

[#next-free-field: 6]

func (*PayloadToMetadata_KeyValuePair) Descriptor deprecated

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

Deprecated: Use PayloadToMetadata_KeyValuePair.ProtoReflect.Descriptor instead.

func (*PayloadToMetadata_KeyValuePair) GetKey

func (*PayloadToMetadata_KeyValuePair) GetMetadataNamespace

func (x *PayloadToMetadata_KeyValuePair) GetMetadataNamespace() string

func (*PayloadToMetadata_KeyValuePair) GetRegexValueRewrite

func (x *PayloadToMetadata_KeyValuePair) GetRegexValueRewrite() *v3.RegexMatchAndSubstitute

func (*PayloadToMetadata_KeyValuePair) GetType

func (*PayloadToMetadata_KeyValuePair) GetValue

func (x *PayloadToMetadata_KeyValuePair) GetValue() string

func (*PayloadToMetadata_KeyValuePair) GetValueType

func (m *PayloadToMetadata_KeyValuePair) GetValueType() isPayloadToMetadata_KeyValuePair_ValueType

func (*PayloadToMetadata_KeyValuePair) ProtoMessage

func (*PayloadToMetadata_KeyValuePair) ProtoMessage()

func (*PayloadToMetadata_KeyValuePair) ProtoReflect

func (*PayloadToMetadata_KeyValuePair) Reset

func (x *PayloadToMetadata_KeyValuePair) Reset()

func (*PayloadToMetadata_KeyValuePair) String

type PayloadToMetadata_KeyValuePair_RegexValueRewrite

type PayloadToMetadata_KeyValuePair_RegexValueRewrite struct {
	// If present, the header's value will be matched and substituted with this.
	// If there is no match or substitution, the field value is used as-is.
	//
	// This is only used for on_present.
	RegexValueRewrite *v3.RegexMatchAndSubstitute `protobuf:"bytes,4,opt,name=regex_value_rewrite,json=regexValueRewrite,proto3,oneof"`
}

type PayloadToMetadata_KeyValuePair_Value

type PayloadToMetadata_KeyValuePair_Value struct {
	// The value to pair with the given key.
	//
	// When used for on_present case, if value is non-empty it'll be used instead
	// of the field value. If both are empty, the field value is used as-is.
	//
	// When used for on_missing case, a non-empty value must be provided.
	Value string `protobuf:"bytes,3,opt,name=value,proto3,oneof"`
}

type PayloadToMetadata_Rule

type PayloadToMetadata_Rule struct {

	// Types that are assignable to MatchSpecifier:
	//
	//	*PayloadToMetadata_Rule_MethodName
	//	*PayloadToMetadata_Rule_ServiceName
	MatchSpecifier isPayloadToMetadata_Rule_MatchSpecifier `protobuf_oneof:"match_specifier"`
	// Specifies that a match will be performed on the value of a field.
	FieldSelector *PayloadToMetadata_FieldSelector `protobuf:"bytes,3,opt,name=field_selector,json=fieldSelector,proto3" json:"field_selector,omitempty"`
	// If the field is present, apply this metadata KeyValuePair.
	OnPresent *PayloadToMetadata_KeyValuePair `protobuf:"bytes,4,opt,name=on_present,json=onPresent,proto3" json:"on_present,omitempty"`
	// If the field is missing, apply this metadata KeyValuePair.
	//
	// The value in the KeyValuePair must be set, since it'll be used in lieu
	// of the missing field value.
	OnMissing *PayloadToMetadata_KeyValuePair `protobuf:"bytes,5,opt,name=on_missing,json=onMissing,proto3" json:"on_missing,omitempty"`
	// contains filtered or unexported fields
}

A Rule defines what metadata to apply when a field is present or missing. [#next-free-field: 6]

func (*PayloadToMetadata_Rule) Descriptor deprecated

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

Deprecated: Use PayloadToMetadata_Rule.ProtoReflect.Descriptor instead.

func (*PayloadToMetadata_Rule) GetFieldSelector

func (*PayloadToMetadata_Rule) GetMatchSpecifier

func (m *PayloadToMetadata_Rule) GetMatchSpecifier() isPayloadToMetadata_Rule_MatchSpecifier

func (*PayloadToMetadata_Rule) GetMethodName

func (x *PayloadToMetadata_Rule) GetMethodName() string

func (*PayloadToMetadata_Rule) GetOnMissing

func (*PayloadToMetadata_Rule) GetOnPresent

func (*PayloadToMetadata_Rule) GetServiceName

func (x *PayloadToMetadata_Rule) GetServiceName() string

func (*PayloadToMetadata_Rule) ProtoMessage

func (*PayloadToMetadata_Rule) ProtoMessage()

func (*PayloadToMetadata_Rule) ProtoReflect

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

func (*PayloadToMetadata_Rule) Reset

func (x *PayloadToMetadata_Rule) Reset()

func (*PayloadToMetadata_Rule) String

func (x *PayloadToMetadata_Rule) String() string

type PayloadToMetadata_Rule_MethodName

type PayloadToMetadata_Rule_MethodName struct {
	// If specified, the route must exactly match the request method name. As a special case,
	// an empty string matches any request method name.
	MethodName string `protobuf:"bytes,1,opt,name=method_name,json=methodName,proto3,oneof"`
}

type PayloadToMetadata_Rule_ServiceName

type PayloadToMetadata_Rule_ServiceName struct {
	// If specified, the route must have the service name as the request method name prefix.
	// As a special case, an empty string matches any service name. Only relevant when service
	// multiplexing.
	ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3,oneof"`
}

type PayloadToMetadata_ValueType

type PayloadToMetadata_ValueType int32
const (
	PayloadToMetadata_STRING PayloadToMetadata_ValueType = 0
	PayloadToMetadata_NUMBER PayloadToMetadata_ValueType = 1
)

func (PayloadToMetadata_ValueType) Descriptor

func (PayloadToMetadata_ValueType) Enum

func (PayloadToMetadata_ValueType) EnumDescriptor deprecated

func (PayloadToMetadata_ValueType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PayloadToMetadata_ValueType.Descriptor instead.

func (PayloadToMetadata_ValueType) Number

func (PayloadToMetadata_ValueType) String

func (PayloadToMetadata_ValueType) Type

Jump to

Keyboard shortcuts

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