envoy_extensions_filters_http_header_to_metadata_v4alpha

package
v0.0.0-...-d64db01 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config_ValueType_name = map[int32]string{
		0: "STRING",
		1: "NUMBER",
		2: "PROTOBUF_VALUE",
	}
	Config_ValueType_value = map[string]int32{
		"STRING":         0,
		"NUMBER":         1,
		"PROTOBUF_VALUE": 2,
	}
)

Enum value maps for Config_ValueType.

View Source
var (
	Config_ValueEncode_name = map[int32]string{
		0: "NONE",
		1: "BASE64",
	}
	Config_ValueEncode_value = map[string]int32{
		"NONE":   0,
		"BASE64": 1,
	}
)

Enum value maps for Config_ValueEncode.

View Source
var File_envoy_extensions_filters_http_header_to_metadata_v4alpha_header_to_metadata_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {
	RequestRules  []*Config_Rule `protobuf:"bytes,1,rep,name=request_rules,json=requestRules,proto3" json:"request_rules,omitempty"`
	ResponseRules []*Config_Rule `protobuf:"bytes,2,rep,name=response_rules,json=responseRules,proto3" json:"response_rules,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetRequestRules

func (x *Config) GetRequestRules() []*Config_Rule

func (*Config) GetResponseRules

func (x *Config) GetResponseRules() []*Config_Rule

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ConfigValidationError

type ConfigValidationError struct {
	// contains filtered or unexported fields
}

ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.

func (ConfigValidationError) Cause

func (e ConfigValidationError) Cause() error

Cause function returns cause value.

func (ConfigValidationError) Error

func (e ConfigValidationError) Error() string

Error satisfies the builtin error interface

func (ConfigValidationError) ErrorName

func (e ConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigValidationError) Field

func (e ConfigValidationError) Field() string

Field function returns field value.

func (ConfigValidationError) Key

func (e ConfigValidationError) Key() bool

Key function returns key value.

func (ConfigValidationError) Reason

func (e ConfigValidationError) Reason() string

Reason function returns reason value.

type Config_KeyValuePair

type Config_KeyValuePair struct {
	MetadataNamespace string `protobuf:"bytes,1,opt,name=metadata_namespace,json=metadataNamespace,proto3" json:"metadata_namespace,omitempty"`
	Key               string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	// Types that are assignable to ValueType:
	//	*Config_KeyValuePair_Value
	//	*Config_KeyValuePair_RegexValueRewrite
	ValueType isConfig_KeyValuePair_ValueType `protobuf_oneof:"value_type"`
	Type      Config_ValueType                `` /* 141-byte string literal not displayed */
	Encode    Config_ValueEncode              `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Config_KeyValuePair) Descriptor deprecated

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

Deprecated: Use Config_KeyValuePair.ProtoReflect.Descriptor instead.

func (*Config_KeyValuePair) GetEncode

func (x *Config_KeyValuePair) GetEncode() Config_ValueEncode

func (*Config_KeyValuePair) GetKey

func (x *Config_KeyValuePair) GetKey() string

func (*Config_KeyValuePair) GetMetadataNamespace

func (x *Config_KeyValuePair) GetMetadataNamespace() string

func (*Config_KeyValuePair) GetRegexValueRewrite

func (x *Config_KeyValuePair) GetRegexValueRewrite() *v4alpha.RegexMatchAndSubstitute

func (*Config_KeyValuePair) GetType

func (*Config_KeyValuePair) GetValue

func (x *Config_KeyValuePair) GetValue() string

func (*Config_KeyValuePair) GetValueType

func (m *Config_KeyValuePair) GetValueType() isConfig_KeyValuePair_ValueType

func (*Config_KeyValuePair) ProtoMessage

func (*Config_KeyValuePair) ProtoMessage()

func (*Config_KeyValuePair) ProtoReflect

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

func (*Config_KeyValuePair) Reset

func (x *Config_KeyValuePair) Reset()

func (*Config_KeyValuePair) String

func (x *Config_KeyValuePair) String() string

func (*Config_KeyValuePair) Validate

func (m *Config_KeyValuePair) Validate() error

Validate checks the field values on Config_KeyValuePair with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type Config_KeyValuePairValidationError

type Config_KeyValuePairValidationError struct {
	// contains filtered or unexported fields
}

Config_KeyValuePairValidationError is the validation error returned by Config_KeyValuePair.Validate if the designated constraints aren't met.

func (Config_KeyValuePairValidationError) Cause

Cause function returns cause value.

func (Config_KeyValuePairValidationError) Error

Error satisfies the builtin error interface

func (Config_KeyValuePairValidationError) ErrorName

ErrorName returns error name.

func (Config_KeyValuePairValidationError) Field

Field function returns field value.

func (Config_KeyValuePairValidationError) Key

Key function returns key value.

func (Config_KeyValuePairValidationError) Reason

Reason function returns reason value.

type Config_KeyValuePair_RegexValueRewrite

type Config_KeyValuePair_RegexValueRewrite struct {
	RegexValueRewrite *v4alpha.RegexMatchAndSubstitute `protobuf:"bytes,6,opt,name=regex_value_rewrite,json=regexValueRewrite,proto3,oneof"`
}

type Config_KeyValuePair_Value

type Config_KeyValuePair_Value struct {
	Value string `protobuf:"bytes,3,opt,name=value,proto3,oneof"`
}

type Config_Rule

type Config_Rule struct {

	// Types that are assignable to HeaderCookieSpecifier:
	//	*Config_Rule_Header
	//	*Config_Rule_Cookie
	HeaderCookieSpecifier isConfig_Rule_HeaderCookieSpecifier `protobuf_oneof:"header_cookie_specifier"`
	OnPresent             *Config_KeyValuePair                `protobuf:"bytes,2,opt,name=on_present,json=onPresent,proto3" json:"on_present,omitempty"`
	OnMissing             *Config_KeyValuePair                `protobuf:"bytes,3,opt,name=on_missing,json=onMissing,proto3" json:"on_missing,omitempty"`
	Remove                bool                                `protobuf:"varint,4,opt,name=remove,proto3" json:"remove,omitempty"`
	// contains filtered or unexported fields
}

func (*Config_Rule) Descriptor deprecated

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

Deprecated: Use Config_Rule.ProtoReflect.Descriptor instead.

func (*Config_Rule) GetCookie

func (x *Config_Rule) GetCookie() string

func (*Config_Rule) GetHeader

func (x *Config_Rule) GetHeader() string

func (*Config_Rule) GetHeaderCookieSpecifier

func (m *Config_Rule) GetHeaderCookieSpecifier() isConfig_Rule_HeaderCookieSpecifier

func (*Config_Rule) GetOnMissing

func (x *Config_Rule) GetOnMissing() *Config_KeyValuePair

func (*Config_Rule) GetOnPresent

func (x *Config_Rule) GetOnPresent() *Config_KeyValuePair

func (*Config_Rule) GetRemove

func (x *Config_Rule) GetRemove() bool

func (*Config_Rule) ProtoMessage

func (*Config_Rule) ProtoMessage()

func (*Config_Rule) ProtoReflect

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

func (*Config_Rule) Reset

func (x *Config_Rule) Reset()

func (*Config_Rule) String

func (x *Config_Rule) String() string

func (*Config_Rule) Validate

func (m *Config_Rule) Validate() error

Validate checks the field values on Config_Rule with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type Config_RuleValidationError

type Config_RuleValidationError struct {
	// contains filtered or unexported fields
}

Config_RuleValidationError is the validation error returned by Config_Rule.Validate if the designated constraints aren't met.

func (Config_RuleValidationError) Cause

Cause function returns cause value.

func (Config_RuleValidationError) Error

Error satisfies the builtin error interface

func (Config_RuleValidationError) ErrorName

func (e Config_RuleValidationError) ErrorName() string

ErrorName returns error name.

func (Config_RuleValidationError) Field

Field function returns field value.

func (Config_RuleValidationError) Key

Key function returns key value.

func (Config_RuleValidationError) Reason

Reason function returns reason value.

type Config_Rule_Cookie struct {
	Cookie string `protobuf:"bytes,5,opt,name=cookie,proto3,oneof"`
}

type Config_Rule_Header

type Config_Rule_Header struct {
	Header string `protobuf:"bytes,1,opt,name=header,proto3,oneof"`
}

type Config_ValueEncode

type Config_ValueEncode int32
const (
	Config_NONE   Config_ValueEncode = 0
	Config_BASE64 Config_ValueEncode = 1
)

func (Config_ValueEncode) Descriptor

func (Config_ValueEncode) Enum

func (Config_ValueEncode) EnumDescriptor deprecated

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

Deprecated: Use Config_ValueEncode.Descriptor instead.

func (Config_ValueEncode) Number

func (Config_ValueEncode) String

func (x Config_ValueEncode) String() string

func (Config_ValueEncode) Type

type Config_ValueType

type Config_ValueType int32
const (
	Config_STRING         Config_ValueType = 0
	Config_NUMBER         Config_ValueType = 1
	Config_PROTOBUF_VALUE Config_ValueType = 2
)

func (Config_ValueType) Descriptor

func (Config_ValueType) Enum

func (Config_ValueType) EnumDescriptor deprecated

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

Deprecated: Use Config_ValueType.Descriptor instead.

func (Config_ValueType) Number

func (Config_ValueType) String

func (x Config_ValueType) String() string

func (Config_ValueType) Type

Jump to

Keyboard shortcuts

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