Documentation ¶
Index ¶
- Variables
- type GenericProxy
- func (*GenericProxy) Descriptor() ([]byte, []int)deprecated
- func (x *GenericProxy) GetCodecConfig() *v3.TypedExtensionConfig
- func (x *GenericProxy) GetFilters() []*v3.TypedExtensionConfig
- func (x *GenericProxy) GetGenericRds() *GenericRds
- func (x *GenericProxy) GetRouteConfig() *RouteConfiguration
- func (m *GenericProxy) GetRouteSpecifier() isGenericProxy_RouteSpecifier
- func (x *GenericProxy) GetStatPrefix() string
- func (*GenericProxy) ProtoMessage()
- func (x *GenericProxy) ProtoReflect() protoreflect.Message
- func (x *GenericProxy) Reset()
- func (x *GenericProxy) String() string
- func (m *GenericProxy) Validate() error
- func (m *GenericProxy) ValidateAll() error
- type GenericProxyMultiError
- type GenericProxyValidationError
- func (e GenericProxyValidationError) Cause() error
- func (e GenericProxyValidationError) Error() string
- func (e GenericProxyValidationError) ErrorName() string
- func (e GenericProxyValidationError) Field() string
- func (e GenericProxyValidationError) Key() bool
- func (e GenericProxyValidationError) Reason() string
- type GenericProxy_GenericRds
- type GenericProxy_RouteConfig
- type GenericRds
- func (*GenericRds) Descriptor() ([]byte, []int)deprecated
- func (x *GenericRds) GetConfigSource() *v3.ConfigSource
- func (x *GenericRds) GetRouteConfigName() string
- func (*GenericRds) ProtoMessage()
- func (x *GenericRds) ProtoReflect() protoreflect.Message
- func (x *GenericRds) Reset()
- func (x *GenericRds) String() string
- func (m *GenericRds) Validate() error
- func (m *GenericRds) ValidateAll() error
- type GenericRdsMultiError
- type GenericRdsValidationError
- type RouteConfiguration
- func (*RouteConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *RouteConfiguration) GetName() string
- func (x *RouteConfiguration) GetRoutes() *v3.Matcher
- func (*RouteConfiguration) ProtoMessage()
- func (x *RouteConfiguration) ProtoReflect() protoreflect.Message
- func (x *RouteConfiguration) Reset()
- func (x *RouteConfiguration) String() string
- func (m *RouteConfiguration) Validate() error
- func (m *RouteConfiguration) ValidateAll() error
- type RouteConfigurationMultiError
- type RouteConfigurationValidationError
- func (e RouteConfigurationValidationError) Cause() error
- func (e RouteConfigurationValidationError) Error() string
- func (e RouteConfigurationValidationError) ErrorName() string
- func (e RouteConfigurationValidationError) Field() string
- func (e RouteConfigurationValidationError) Key() bool
- func (e RouteConfigurationValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_contrib_envoy_extensions_filters_network_generic_proxy_v3_generic_proxy_proto protoreflect.FileDescriptor
var File_contrib_envoy_extensions_filters_network_generic_proxy_v3_route_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GenericProxy ¶
type GenericProxy struct { // The human readable prefix to use when emitting statistics. StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"` // The codec which encodes and decodes the application protocol. // [#extension-category: envoy.generic_proxy.codecs] CodecConfig *v3.TypedExtensionConfig `protobuf:"bytes,2,opt,name=codec_config,json=codecConfig,proto3" json:"codec_config,omitempty"` // Types that are assignable to RouteSpecifier: // *GenericProxy_GenericRds // *GenericProxy_RouteConfig RouteSpecifier isGenericProxy_RouteSpecifier `protobuf_oneof:"route_specifier"` // A list of individual Layer-7 filters that make up the filter chain for requests made to the // proxy. Order matters as the filters are processed sequentially as request events // happen. // [#extension-category: envoy.generic_proxy.filters] Filters []*v3.TypedExtensionConfig `protobuf:"bytes,5,rep,name=filters,proto3" json:"filters,omitempty"` // contains filtered or unexported fields }
[#next-free-field: 6]
func (*GenericProxy) Descriptor
deprecated
func (*GenericProxy) Descriptor() ([]byte, []int)
Deprecated: Use GenericProxy.ProtoReflect.Descriptor instead.
func (*GenericProxy) GetCodecConfig ¶
func (x *GenericProxy) GetCodecConfig() *v3.TypedExtensionConfig
func (*GenericProxy) GetFilters ¶
func (x *GenericProxy) GetFilters() []*v3.TypedExtensionConfig
func (*GenericProxy) GetGenericRds ¶
func (x *GenericProxy) GetGenericRds() *GenericRds
func (*GenericProxy) GetRouteConfig ¶
func (x *GenericProxy) GetRouteConfig() *RouteConfiguration
func (*GenericProxy) GetRouteSpecifier ¶
func (m *GenericProxy) GetRouteSpecifier() isGenericProxy_RouteSpecifier
func (*GenericProxy) GetStatPrefix ¶
func (x *GenericProxy) GetStatPrefix() string
func (*GenericProxy) ProtoMessage ¶
func (*GenericProxy) ProtoMessage()
func (*GenericProxy) ProtoReflect ¶
func (x *GenericProxy) ProtoReflect() protoreflect.Message
func (*GenericProxy) Reset ¶
func (x *GenericProxy) Reset()
func (*GenericProxy) String ¶
func (x *GenericProxy) String() string
func (*GenericProxy) Validate ¶
func (m *GenericProxy) Validate() error
Validate checks the field values on GenericProxy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GenericProxy) ValidateAll ¶
func (m *GenericProxy) ValidateAll() error
ValidateAll checks the field values on GenericProxy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GenericProxyMultiError, or nil if none found.
type GenericProxyMultiError ¶
type GenericProxyMultiError []error
GenericProxyMultiError is an error wrapping multiple validation errors returned by GenericProxy.ValidateAll() if the designated constraints aren't met.
func (GenericProxyMultiError) AllErrors ¶
func (m GenericProxyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GenericProxyMultiError) Error ¶
func (m GenericProxyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GenericProxyValidationError ¶
type GenericProxyValidationError struct {
// contains filtered or unexported fields
}
GenericProxyValidationError is the validation error returned by GenericProxy.Validate if the designated constraints aren't met.
func (GenericProxyValidationError) Cause ¶
func (e GenericProxyValidationError) Cause() error
Cause function returns cause value.
func (GenericProxyValidationError) Error ¶
func (e GenericProxyValidationError) Error() string
Error satisfies the builtin error interface
func (GenericProxyValidationError) ErrorName ¶
func (e GenericProxyValidationError) ErrorName() string
ErrorName returns error name.
func (GenericProxyValidationError) Field ¶
func (e GenericProxyValidationError) Field() string
Field function returns field value.
func (GenericProxyValidationError) Key ¶
func (e GenericProxyValidationError) Key() bool
Key function returns key value.
func (GenericProxyValidationError) Reason ¶
func (e GenericProxyValidationError) Reason() string
Reason function returns reason value.
type GenericProxy_GenericRds ¶
type GenericProxy_GenericRds struct { // The generic proxies route table will be dynamically loaded via the meta RDS API. GenericRds *GenericRds `protobuf:"bytes,3,opt,name=generic_rds,json=genericRds,proto3,oneof"` }
type GenericProxy_RouteConfig ¶
type GenericProxy_RouteConfig struct { // The route table for the generic proxy is static and is specified in this property. RouteConfig *RouteConfiguration `protobuf:"bytes,4,opt,name=route_config,json=routeConfig,proto3,oneof"` }
type GenericRds ¶
type GenericRds struct { // Configuration source specifier for RDS. ConfigSource *v3.ConfigSource `protobuf:"bytes,1,opt,name=config_source,json=configSource,proto3" json:"config_source,omitempty"` // The name of the route configuration. This name will be passed to the RDS API. This allows an // Envoy configuration with multiple generic proxies to use different route configurations. RouteConfigName string `protobuf:"bytes,2,opt,name=route_config_name,json=routeConfigName,proto3" json:"route_config_name,omitempty"` // contains filtered or unexported fields }
func (*GenericRds) Descriptor
deprecated
func (*GenericRds) Descriptor() ([]byte, []int)
Deprecated: Use GenericRds.ProtoReflect.Descriptor instead.
func (*GenericRds) GetConfigSource ¶
func (x *GenericRds) GetConfigSource() *v3.ConfigSource
func (*GenericRds) GetRouteConfigName ¶
func (x *GenericRds) GetRouteConfigName() string
func (*GenericRds) ProtoMessage ¶
func (*GenericRds) ProtoMessage()
func (*GenericRds) ProtoReflect ¶
func (x *GenericRds) ProtoReflect() protoreflect.Message
func (*GenericRds) Reset ¶
func (x *GenericRds) Reset()
func (*GenericRds) String ¶
func (x *GenericRds) String() string
func (*GenericRds) Validate ¶
func (m *GenericRds) Validate() error
Validate checks the field values on GenericRds with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GenericRds) ValidateAll ¶
func (m *GenericRds) ValidateAll() error
ValidateAll checks the field values on GenericRds with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GenericRdsMultiError, or nil if none found.
type GenericRdsMultiError ¶
type GenericRdsMultiError []error
GenericRdsMultiError is an error wrapping multiple validation errors returned by GenericRds.ValidateAll() if the designated constraints aren't met.
func (GenericRdsMultiError) AllErrors ¶
func (m GenericRdsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GenericRdsMultiError) Error ¶
func (m GenericRdsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GenericRdsValidationError ¶
type GenericRdsValidationError struct {
// contains filtered or unexported fields
}
GenericRdsValidationError is the validation error returned by GenericRds.Validate if the designated constraints aren't met.
func (GenericRdsValidationError) Cause ¶
func (e GenericRdsValidationError) Cause() error
Cause function returns cause value.
func (GenericRdsValidationError) Error ¶
func (e GenericRdsValidationError) Error() string
Error satisfies the builtin error interface
func (GenericRdsValidationError) ErrorName ¶
func (e GenericRdsValidationError) ErrorName() string
ErrorName returns error name.
func (GenericRdsValidationError) Field ¶
func (e GenericRdsValidationError) Field() string
Field function returns field value.
func (GenericRdsValidationError) Key ¶
func (e GenericRdsValidationError) Key() bool
Key function returns key value.
func (GenericRdsValidationError) Reason ¶
func (e GenericRdsValidationError) Reason() string
Reason function returns reason value.
type RouteConfiguration ¶
type RouteConfiguration struct { // The name of the route configuration. For example, it might match route_config_name in // envoy.extensions.filters.network.generic_proxy.v3.Rds. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The match tree to use when resolving route actions for incoming requests. Routes *v3.Matcher `protobuf:"bytes,2,opt,name=routes,proto3" json:"routes,omitempty"` // contains filtered or unexported fields }
The generic proxy makes use of the `xds matching API` for routing configurations.
In the below example, we combine a top level tree matcher with a linear matcher to match the incoming requests, and send the matching requests to v1 of the upstream service.
.. code-block:: yaml
name: example routes: matcher_tree: input: name: request-service typed_config: "@type": type.googleapis.com/envoy.extensions.filters.network.generic_proxy.matcher.v3.ServiceMatchInput exact_match_map: map: service_name_0: matcher: matcher_list: matchers: - predicate: and_matcher: predicate: - single_predicate: input: name: request-properties typed_config: "@type": type.googleapis.com/envoy.extensions.filters.network.generic_proxy.matcher.v3.PropertyMatchInput property_name: version value_match: exact: v1 - single_predicate: input: name: request-properties typed_config: "@type": type.googleapis.com/envoy.extensions.filters.network.generic_proxy.matcher.v3.PropertyMatchInput property_name: user value_match: exact: john on_match: action: name: route typed_config: "@type": type.googleapis.com/envoy.extensions.filters.network.generic_proxy.action.v3.routeAction cluster: cluster_0
func (*RouteConfiguration) Descriptor
deprecated
func (*RouteConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use RouteConfiguration.ProtoReflect.Descriptor instead.
func (*RouteConfiguration) GetName ¶
func (x *RouteConfiguration) GetName() string
func (*RouteConfiguration) GetRoutes ¶
func (x *RouteConfiguration) GetRoutes() *v3.Matcher
func (*RouteConfiguration) ProtoMessage ¶
func (*RouteConfiguration) ProtoMessage()
func (*RouteConfiguration) ProtoReflect ¶
func (x *RouteConfiguration) ProtoReflect() protoreflect.Message
func (*RouteConfiguration) Reset ¶
func (x *RouteConfiguration) Reset()
func (*RouteConfiguration) String ¶
func (x *RouteConfiguration) String() string
func (*RouteConfiguration) Validate ¶
func (m *RouteConfiguration) Validate() error
Validate checks the field values on RouteConfiguration with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RouteConfiguration) ValidateAll ¶
func (m *RouteConfiguration) ValidateAll() error
ValidateAll checks the field values on RouteConfiguration with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RouteConfigurationMultiError, or nil if none found.
type RouteConfigurationMultiError ¶
type RouteConfigurationMultiError []error
RouteConfigurationMultiError is an error wrapping multiple validation errors returned by RouteConfiguration.ValidateAll() if the designated constraints aren't met.
func (RouteConfigurationMultiError) AllErrors ¶
func (m RouteConfigurationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RouteConfigurationMultiError) Error ¶
func (m RouteConfigurationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RouteConfigurationValidationError ¶
type RouteConfigurationValidationError struct {
// contains filtered or unexported fields
}
RouteConfigurationValidationError is the validation error returned by RouteConfiguration.Validate if the designated constraints aren't met.
func (RouteConfigurationValidationError) Cause ¶
func (e RouteConfigurationValidationError) Cause() error
Cause function returns cause value.
func (RouteConfigurationValidationError) Error ¶
func (e RouteConfigurationValidationError) Error() string
Error satisfies the builtin error interface
func (RouteConfigurationValidationError) ErrorName ¶
func (e RouteConfigurationValidationError) ErrorName() string
ErrorName returns error name.
func (RouteConfigurationValidationError) Field ¶
func (e RouteConfigurationValidationError) Field() string
Field function returns field value.
func (RouteConfigurationValidationError) Key ¶
func (e RouteConfigurationValidationError) Key() bool
Key function returns key value.
func (RouteConfigurationValidationError) Reason ¶
func (e RouteConfigurationValidationError) Reason() string
Reason function returns reason value.