Documentation
¶
Index ¶
- Variables
- type HttpProtocolOptions
- func (*HttpProtocolOptions) Descriptor() ([]byte, []int)deprecated
- func (x *HttpProtocolOptions) GetAutoConfig() *HttpProtocolOptions_AutoHttpConfig
- func (x *HttpProtocolOptions) GetCommonHttpProtocolOptions() *v3.HttpProtocolOptions
- func (x *HttpProtocolOptions) GetExplicitHttpConfig() *HttpProtocolOptions_ExplicitHttpConfig
- func (x *HttpProtocolOptions) GetUpstreamHttpProtocolOptions() *v3.UpstreamHttpProtocolOptions
- func (m *HttpProtocolOptions) GetUpstreamProtocolOptions() isHttpProtocolOptions_UpstreamProtocolOptions
- func (x *HttpProtocolOptions) GetUseDownstreamProtocolConfig() *HttpProtocolOptions_UseDownstreamHttpConfig
- func (*HttpProtocolOptions) ProtoMessage()
- func (x *HttpProtocolOptions) ProtoReflect() protoreflect.Message
- func (x *HttpProtocolOptions) Reset()
- func (x *HttpProtocolOptions) String() string
- func (m *HttpProtocolOptions) Validate() error
- func (m *HttpProtocolOptions) ValidateAll() error
- type HttpProtocolOptionsMultiError
- type HttpProtocolOptionsValidationError
- func (e HttpProtocolOptionsValidationError) Cause() error
- func (e HttpProtocolOptionsValidationError) Error() string
- func (e HttpProtocolOptionsValidationError) ErrorName() string
- func (e HttpProtocolOptionsValidationError) Field() string
- func (e HttpProtocolOptionsValidationError) Key() bool
- func (e HttpProtocolOptionsValidationError) Reason() string
- type HttpProtocolOptions_AutoConfig
- type HttpProtocolOptions_AutoHttpConfig
- func (*HttpProtocolOptions_AutoHttpConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HttpProtocolOptions_AutoHttpConfig) GetAlternateProtocolsCacheOptions() *v3.AlternateProtocolsCacheOptions
- func (x *HttpProtocolOptions_AutoHttpConfig) GetHttp2ProtocolOptions() *v3.Http2ProtocolOptions
- func (x *HttpProtocolOptions_AutoHttpConfig) GetHttp3ProtocolOptions() *v3.Http3ProtocolOptions
- func (x *HttpProtocolOptions_AutoHttpConfig) GetHttpProtocolOptions() *v3.Http1ProtocolOptions
- func (*HttpProtocolOptions_AutoHttpConfig) ProtoMessage()
- func (x *HttpProtocolOptions_AutoHttpConfig) ProtoReflect() protoreflect.Message
- func (x *HttpProtocolOptions_AutoHttpConfig) Reset()
- func (x *HttpProtocolOptions_AutoHttpConfig) String() string
- func (m *HttpProtocolOptions_AutoHttpConfig) Validate() error
- func (m *HttpProtocolOptions_AutoHttpConfig) ValidateAll() error
- type HttpProtocolOptions_AutoHttpConfigMultiError
- type HttpProtocolOptions_AutoHttpConfigValidationError
- func (e HttpProtocolOptions_AutoHttpConfigValidationError) Cause() error
- func (e HttpProtocolOptions_AutoHttpConfigValidationError) Error() string
- func (e HttpProtocolOptions_AutoHttpConfigValidationError) ErrorName() string
- func (e HttpProtocolOptions_AutoHttpConfigValidationError) Field() string
- func (e HttpProtocolOptions_AutoHttpConfigValidationError) Key() bool
- func (e HttpProtocolOptions_AutoHttpConfigValidationError) Reason() string
- type HttpProtocolOptions_ExplicitHttpConfig
- func (*HttpProtocolOptions_ExplicitHttpConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HttpProtocolOptions_ExplicitHttpConfig) GetHttp2ProtocolOptions() *v3.Http2ProtocolOptions
- func (x *HttpProtocolOptions_ExplicitHttpConfig) GetHttp3ProtocolOptions() *v3.Http3ProtocolOptions
- func (x *HttpProtocolOptions_ExplicitHttpConfig) GetHttpProtocolOptions() *v3.Http1ProtocolOptions
- func (m *HttpProtocolOptions_ExplicitHttpConfig) GetProtocolConfig() isHttpProtocolOptions_ExplicitHttpConfig_ProtocolConfig
- func (*HttpProtocolOptions_ExplicitHttpConfig) ProtoMessage()
- func (x *HttpProtocolOptions_ExplicitHttpConfig) ProtoReflect() protoreflect.Message
- func (x *HttpProtocolOptions_ExplicitHttpConfig) Reset()
- func (x *HttpProtocolOptions_ExplicitHttpConfig) String() string
- func (m *HttpProtocolOptions_ExplicitHttpConfig) Validate() error
- func (m *HttpProtocolOptions_ExplicitHttpConfig) ValidateAll() error
- type HttpProtocolOptions_ExplicitHttpConfigMultiError
- type HttpProtocolOptions_ExplicitHttpConfigValidationError
- func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) Cause() error
- func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) Error() string
- func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) ErrorName() string
- func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) Field() string
- func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) Key() bool
- func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) Reason() string
- type HttpProtocolOptions_ExplicitHttpConfig_
- type HttpProtocolOptions_ExplicitHttpConfig_Http2ProtocolOptions
- type HttpProtocolOptions_ExplicitHttpConfig_Http3ProtocolOptions
- type HttpProtocolOptions_ExplicitHttpConfig_HttpProtocolOptions
- type HttpProtocolOptions_UseDownstreamHttpConfig
- func (*HttpProtocolOptions_UseDownstreamHttpConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HttpProtocolOptions_UseDownstreamHttpConfig) GetHttp2ProtocolOptions() *v3.Http2ProtocolOptions
- func (x *HttpProtocolOptions_UseDownstreamHttpConfig) GetHttp3ProtocolOptions() *v3.Http3ProtocolOptions
- func (x *HttpProtocolOptions_UseDownstreamHttpConfig) GetHttpProtocolOptions() *v3.Http1ProtocolOptions
- func (*HttpProtocolOptions_UseDownstreamHttpConfig) ProtoMessage()
- func (x *HttpProtocolOptions_UseDownstreamHttpConfig) ProtoReflect() protoreflect.Message
- func (x *HttpProtocolOptions_UseDownstreamHttpConfig) Reset()
- func (x *HttpProtocolOptions_UseDownstreamHttpConfig) String() string
- func (m *HttpProtocolOptions_UseDownstreamHttpConfig) Validate() error
- func (m *HttpProtocolOptions_UseDownstreamHttpConfig) ValidateAll() error
- type HttpProtocolOptions_UseDownstreamHttpConfigMultiError
- type HttpProtocolOptions_UseDownstreamHttpConfigValidationError
- func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Cause() error
- func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Error() string
- func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) ErrorName() string
- func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Field() string
- func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Key() bool
- func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Reason() string
- type HttpProtocolOptions_UseDownstreamProtocolConfig
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_upstreams_http_v3_http_protocol_options_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type HttpProtocolOptions ¶
type HttpProtocolOptions struct { // This contains options common across HTTP/1 and HTTP/2 CommonHttpProtocolOptions *v3.HttpProtocolOptions `` /* 140-byte string literal not displayed */ // This contains common protocol options which are only applied upstream. UpstreamHttpProtocolOptions *v3.UpstreamHttpProtocolOptions `` /* 146-byte string literal not displayed */ // This controls the actual protocol to be used upstream. // // Types that are assignable to UpstreamProtocolOptions: // *HttpProtocolOptions_ExplicitHttpConfig_ // *HttpProtocolOptions_UseDownstreamProtocolConfig // *HttpProtocolOptions_AutoConfig UpstreamProtocolOptions isHttpProtocolOptions_UpstreamProtocolOptions `protobuf_oneof:"upstream_protocol_options"` // contains filtered or unexported fields }
HttpProtocolOptions specifies Http upstream protocol options. This object is used in :ref:`typed_extension_protocol_options<envoy_v3_api_field_config.cluster.v3.Cluster.typed_extension_protocol_options>`, keyed by the name `envoy.extensions.upstreams.http.v3.HttpProtocolOptions`.
This controls what protocol(s) should be used for upstream and how said protocol(s) are configured.
This replaces the prior pattern of explicit protocol configuration directly in the cluster. So a configuration like this, explicitly configuring the use of HTTP/2 upstream:
.. code::
clusters: - name: some_service connect_timeout: 5s upstream_http_protocol_options: auto_sni: true common_http_protocol_options: idle_timeout: 1s http2_protocol_options: max_concurrent_streams: 100 .... [further cluster config]
Would now look like this:
.. code::
clusters: - name: some_service connect_timeout: 5s typed_extension_protocol_options: envoy.extensions.upstreams.http.v3.HttpProtocolOptions: "@type": type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions upstream_http_protocol_options: auto_sni: true common_http_protocol_options: idle_timeout: 1s explicit_http_config: http2_protocol_options: max_concurrent_streams: 100 .... [further cluster config]
[#next-free-field: 6]
func (*HttpProtocolOptions) Descriptor
deprecated
func (*HttpProtocolOptions) Descriptor() ([]byte, []int)
Deprecated: Use HttpProtocolOptions.ProtoReflect.Descriptor instead.
func (*HttpProtocolOptions) GetAutoConfig ¶ added in v0.9.9
func (x *HttpProtocolOptions) GetAutoConfig() *HttpProtocolOptions_AutoHttpConfig
func (*HttpProtocolOptions) GetCommonHttpProtocolOptions ¶
func (x *HttpProtocolOptions) GetCommonHttpProtocolOptions() *v3.HttpProtocolOptions
func (*HttpProtocolOptions) GetExplicitHttpConfig ¶
func (x *HttpProtocolOptions) GetExplicitHttpConfig() *HttpProtocolOptions_ExplicitHttpConfig
func (*HttpProtocolOptions) GetUpstreamHttpProtocolOptions ¶
func (x *HttpProtocolOptions) GetUpstreamHttpProtocolOptions() *v3.UpstreamHttpProtocolOptions
func (*HttpProtocolOptions) GetUpstreamProtocolOptions ¶
func (m *HttpProtocolOptions) GetUpstreamProtocolOptions() isHttpProtocolOptions_UpstreamProtocolOptions
func (*HttpProtocolOptions) GetUseDownstreamProtocolConfig ¶
func (x *HttpProtocolOptions) GetUseDownstreamProtocolConfig() *HttpProtocolOptions_UseDownstreamHttpConfig
func (*HttpProtocolOptions) ProtoMessage ¶
func (*HttpProtocolOptions) ProtoMessage()
func (*HttpProtocolOptions) ProtoReflect ¶
func (x *HttpProtocolOptions) ProtoReflect() protoreflect.Message
func (*HttpProtocolOptions) Reset ¶
func (x *HttpProtocolOptions) Reset()
func (*HttpProtocolOptions) String ¶
func (x *HttpProtocolOptions) String() string
func (*HttpProtocolOptions) Validate ¶
func (m *HttpProtocolOptions) Validate() error
Validate checks the field values on HttpProtocolOptions 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 (*HttpProtocolOptions) ValidateAll ¶ added in v0.10.0
func (m *HttpProtocolOptions) ValidateAll() error
ValidateAll checks the field values on HttpProtocolOptions 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 HttpProtocolOptionsMultiError, or nil if none found.
type HttpProtocolOptionsMultiError ¶ added in v0.10.0
type HttpProtocolOptionsMultiError []error
HttpProtocolOptionsMultiError is an error wrapping multiple validation errors returned by HttpProtocolOptions.ValidateAll() if the designated constraints aren't met.
func (HttpProtocolOptionsMultiError) AllErrors ¶ added in v0.10.0
func (m HttpProtocolOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HttpProtocolOptionsMultiError) Error ¶ added in v0.10.0
func (m HttpProtocolOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HttpProtocolOptionsValidationError ¶
type HttpProtocolOptionsValidationError struct {
// contains filtered or unexported fields
}
HttpProtocolOptionsValidationError is the validation error returned by HttpProtocolOptions.Validate if the designated constraints aren't met.
func (HttpProtocolOptionsValidationError) Cause ¶
func (e HttpProtocolOptionsValidationError) Cause() error
Cause function returns cause value.
func (HttpProtocolOptionsValidationError) Error ¶
func (e HttpProtocolOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (HttpProtocolOptionsValidationError) ErrorName ¶
func (e HttpProtocolOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (HttpProtocolOptionsValidationError) Field ¶
func (e HttpProtocolOptionsValidationError) Field() string
Field function returns field value.
func (HttpProtocolOptionsValidationError) Key ¶
func (e HttpProtocolOptionsValidationError) Key() bool
Key function returns key value.
func (HttpProtocolOptionsValidationError) Reason ¶
func (e HttpProtocolOptionsValidationError) Reason() string
Reason function returns reason value.
type HttpProtocolOptions_AutoConfig ¶ added in v0.9.9
type HttpProtocolOptions_AutoConfig struct { // This allows switching on protocol based on ALPN AutoConfig *HttpProtocolOptions_AutoHttpConfig `protobuf:"bytes,5,opt,name=auto_config,json=autoConfig,proto3,oneof"` }
type HttpProtocolOptions_AutoHttpConfig ¶ added in v0.9.9
type HttpProtocolOptions_AutoHttpConfig struct { HttpProtocolOptions *v3.Http1ProtocolOptions `protobuf:"bytes,1,opt,name=http_protocol_options,json=httpProtocolOptions,proto3" json:"http_protocol_options,omitempty"` Http2ProtocolOptions *v3.Http2ProtocolOptions `protobuf:"bytes,2,opt,name=http2_protocol_options,json=http2ProtocolOptions,proto3" json:"http2_protocol_options,omitempty"` // Unlike HTTP/1 and HTTP/2, HTTP/3 will not be configured unless it is // present, and (soon) only if there is an indication of server side // support. // See :ref:`here <arch_overview_http3_upstream>` for more information on // when HTTP/3 will be used, and when Envoy will fail over to TCP. // // .. warning:: // QUIC upstream support is currently not ready for internet use. // Please see :ref:`here <arch_overview_http3>` for details. Http3ProtocolOptions *v3.Http3ProtocolOptions `protobuf:"bytes,3,opt,name=http3_protocol_options,json=http3ProtocolOptions,proto3" json:"http3_protocol_options,omitempty"` // The presence of alternate protocols cache options causes the use of the // alternate protocols cache, which is responsible for parsing and caching // HTTP Alt-Svc headers. This enables the use of HTTP/3 for origins that // advertise supporting it. // // .. note:: // This is required when HTTP/3 is enabled. AlternateProtocolsCacheOptions *v3.AlternateProtocolsCacheOptions `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
If this is used, the cluster can use either HTTP/1 or HTTP/2, and will use whichever protocol is negotiated by ALPN with the upstream. Clusters configured with *AutoHttpConfig* will use the highest available protocol; HTTP/2 if supported, otherwise HTTP/1. If the upstream does not support ALPN, *AutoHttpConfig* will fail over to HTTP/1. This can only be used with transport sockets which support ALPN. Using a transport socket which does not support ALPN will result in configuration failure. The transport layer may be configured with custom ALPN, but the default ALPN for the cluster (or if custom ALPN fails) will be "h2,http/1.1".
func (*HttpProtocolOptions_AutoHttpConfig) Descriptor
deprecated
added in
v0.9.9
func (*HttpProtocolOptions_AutoHttpConfig) Descriptor() ([]byte, []int)
Deprecated: Use HttpProtocolOptions_AutoHttpConfig.ProtoReflect.Descriptor instead.
func (*HttpProtocolOptions_AutoHttpConfig) GetAlternateProtocolsCacheOptions ¶ added in v0.9.9
func (x *HttpProtocolOptions_AutoHttpConfig) GetAlternateProtocolsCacheOptions() *v3.AlternateProtocolsCacheOptions
func (*HttpProtocolOptions_AutoHttpConfig) GetHttp2ProtocolOptions ¶ added in v0.9.9
func (x *HttpProtocolOptions_AutoHttpConfig) GetHttp2ProtocolOptions() *v3.Http2ProtocolOptions
func (*HttpProtocolOptions_AutoHttpConfig) GetHttp3ProtocolOptions ¶ added in v0.9.9
func (x *HttpProtocolOptions_AutoHttpConfig) GetHttp3ProtocolOptions() *v3.Http3ProtocolOptions
func (*HttpProtocolOptions_AutoHttpConfig) GetHttpProtocolOptions ¶ added in v0.9.9
func (x *HttpProtocolOptions_AutoHttpConfig) GetHttpProtocolOptions() *v3.Http1ProtocolOptions
func (*HttpProtocolOptions_AutoHttpConfig) ProtoMessage ¶ added in v0.9.9
func (*HttpProtocolOptions_AutoHttpConfig) ProtoMessage()
func (*HttpProtocolOptions_AutoHttpConfig) ProtoReflect ¶ added in v0.9.9
func (x *HttpProtocolOptions_AutoHttpConfig) ProtoReflect() protoreflect.Message
func (*HttpProtocolOptions_AutoHttpConfig) Reset ¶ added in v0.9.9
func (x *HttpProtocolOptions_AutoHttpConfig) Reset()
func (*HttpProtocolOptions_AutoHttpConfig) String ¶ added in v0.9.9
func (x *HttpProtocolOptions_AutoHttpConfig) String() string
func (*HttpProtocolOptions_AutoHttpConfig) Validate ¶ added in v0.9.9
func (m *HttpProtocolOptions_AutoHttpConfig) Validate() error
Validate checks the field values on HttpProtocolOptions_AutoHttpConfig 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 (*HttpProtocolOptions_AutoHttpConfig) ValidateAll ¶ added in v0.10.0
func (m *HttpProtocolOptions_AutoHttpConfig) ValidateAll() error
ValidateAll checks the field values on HttpProtocolOptions_AutoHttpConfig 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 HttpProtocolOptions_AutoHttpConfigMultiError, or nil if none found.
type HttpProtocolOptions_AutoHttpConfigMultiError ¶ added in v0.10.0
type HttpProtocolOptions_AutoHttpConfigMultiError []error
HttpProtocolOptions_AutoHttpConfigMultiError is an error wrapping multiple validation errors returned by HttpProtocolOptions_AutoHttpConfig.ValidateAll() if the designated constraints aren't met.
func (HttpProtocolOptions_AutoHttpConfigMultiError) AllErrors ¶ added in v0.10.0
func (m HttpProtocolOptions_AutoHttpConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HttpProtocolOptions_AutoHttpConfigMultiError) Error ¶ added in v0.10.0
func (m HttpProtocolOptions_AutoHttpConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HttpProtocolOptions_AutoHttpConfigValidationError ¶ added in v0.9.9
type HttpProtocolOptions_AutoHttpConfigValidationError struct {
// contains filtered or unexported fields
}
HttpProtocolOptions_AutoHttpConfigValidationError is the validation error returned by HttpProtocolOptions_AutoHttpConfig.Validate if the designated constraints aren't met.
func (HttpProtocolOptions_AutoHttpConfigValidationError) Cause ¶ added in v0.9.9
func (e HttpProtocolOptions_AutoHttpConfigValidationError) Cause() error
Cause function returns cause value.
func (HttpProtocolOptions_AutoHttpConfigValidationError) Error ¶ added in v0.9.9
func (e HttpProtocolOptions_AutoHttpConfigValidationError) Error() string
Error satisfies the builtin error interface
func (HttpProtocolOptions_AutoHttpConfigValidationError) ErrorName ¶ added in v0.9.9
func (e HttpProtocolOptions_AutoHttpConfigValidationError) ErrorName() string
ErrorName returns error name.
func (HttpProtocolOptions_AutoHttpConfigValidationError) Field ¶ added in v0.9.9
func (e HttpProtocolOptions_AutoHttpConfigValidationError) Field() string
Field function returns field value.
func (HttpProtocolOptions_AutoHttpConfigValidationError) Key ¶ added in v0.9.9
func (e HttpProtocolOptions_AutoHttpConfigValidationError) Key() bool
Key function returns key value.
func (HttpProtocolOptions_AutoHttpConfigValidationError) Reason ¶ added in v0.9.9
func (e HttpProtocolOptions_AutoHttpConfigValidationError) Reason() string
Reason function returns reason value.
type HttpProtocolOptions_ExplicitHttpConfig ¶
type HttpProtocolOptions_ExplicitHttpConfig struct { // Types that are assignable to ProtocolConfig: // *HttpProtocolOptions_ExplicitHttpConfig_HttpProtocolOptions // *HttpProtocolOptions_ExplicitHttpConfig_Http2ProtocolOptions // *HttpProtocolOptions_ExplicitHttpConfig_Http3ProtocolOptions ProtocolConfig isHttpProtocolOptions_ExplicitHttpConfig_ProtocolConfig `protobuf_oneof:"protocol_config"` // contains filtered or unexported fields }
If this is used, the cluster will only operate on one of the possible upstream protocols. Note that HTTP/2 or above should generally be used for upstream gRPC clusters.
func (*HttpProtocolOptions_ExplicitHttpConfig) Descriptor
deprecated
func (*HttpProtocolOptions_ExplicitHttpConfig) Descriptor() ([]byte, []int)
Deprecated: Use HttpProtocolOptions_ExplicitHttpConfig.ProtoReflect.Descriptor instead.
func (*HttpProtocolOptions_ExplicitHttpConfig) GetHttp2ProtocolOptions ¶
func (x *HttpProtocolOptions_ExplicitHttpConfig) GetHttp2ProtocolOptions() *v3.Http2ProtocolOptions
func (*HttpProtocolOptions_ExplicitHttpConfig) GetHttp3ProtocolOptions ¶ added in v0.9.9
func (x *HttpProtocolOptions_ExplicitHttpConfig) GetHttp3ProtocolOptions() *v3.Http3ProtocolOptions
func (*HttpProtocolOptions_ExplicitHttpConfig) GetHttpProtocolOptions ¶
func (x *HttpProtocolOptions_ExplicitHttpConfig) GetHttpProtocolOptions() *v3.Http1ProtocolOptions
func (*HttpProtocolOptions_ExplicitHttpConfig) GetProtocolConfig ¶
func (m *HttpProtocolOptions_ExplicitHttpConfig) GetProtocolConfig() isHttpProtocolOptions_ExplicitHttpConfig_ProtocolConfig
func (*HttpProtocolOptions_ExplicitHttpConfig) ProtoMessage ¶
func (*HttpProtocolOptions_ExplicitHttpConfig) ProtoMessage()
func (*HttpProtocolOptions_ExplicitHttpConfig) ProtoReflect ¶
func (x *HttpProtocolOptions_ExplicitHttpConfig) ProtoReflect() protoreflect.Message
func (*HttpProtocolOptions_ExplicitHttpConfig) Reset ¶
func (x *HttpProtocolOptions_ExplicitHttpConfig) Reset()
func (*HttpProtocolOptions_ExplicitHttpConfig) String ¶
func (x *HttpProtocolOptions_ExplicitHttpConfig) String() string
func (*HttpProtocolOptions_ExplicitHttpConfig) Validate ¶
func (m *HttpProtocolOptions_ExplicitHttpConfig) Validate() error
Validate checks the field values on HttpProtocolOptions_ExplicitHttpConfig 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 (*HttpProtocolOptions_ExplicitHttpConfig) ValidateAll ¶ added in v0.10.0
func (m *HttpProtocolOptions_ExplicitHttpConfig) ValidateAll() error
ValidateAll checks the field values on HttpProtocolOptions_ExplicitHttpConfig 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 HttpProtocolOptions_ExplicitHttpConfigMultiError, or nil if none found.
type HttpProtocolOptions_ExplicitHttpConfigMultiError ¶ added in v0.10.0
type HttpProtocolOptions_ExplicitHttpConfigMultiError []error
HttpProtocolOptions_ExplicitHttpConfigMultiError is an error wrapping multiple validation errors returned by HttpProtocolOptions_ExplicitHttpConfig.ValidateAll() if the designated constraints aren't met.
func (HttpProtocolOptions_ExplicitHttpConfigMultiError) AllErrors ¶ added in v0.10.0
func (m HttpProtocolOptions_ExplicitHttpConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HttpProtocolOptions_ExplicitHttpConfigMultiError) Error ¶ added in v0.10.0
func (m HttpProtocolOptions_ExplicitHttpConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HttpProtocolOptions_ExplicitHttpConfigValidationError ¶
type HttpProtocolOptions_ExplicitHttpConfigValidationError struct {
// contains filtered or unexported fields
}
HttpProtocolOptions_ExplicitHttpConfigValidationError is the validation error returned by HttpProtocolOptions_ExplicitHttpConfig.Validate if the designated constraints aren't met.
func (HttpProtocolOptions_ExplicitHttpConfigValidationError) Cause ¶
func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) Cause() error
Cause function returns cause value.
func (HttpProtocolOptions_ExplicitHttpConfigValidationError) Error ¶
func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) Error() string
Error satisfies the builtin error interface
func (HttpProtocolOptions_ExplicitHttpConfigValidationError) ErrorName ¶
func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) ErrorName() string
ErrorName returns error name.
func (HttpProtocolOptions_ExplicitHttpConfigValidationError) Field ¶
func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) Field() string
Field function returns field value.
func (HttpProtocolOptions_ExplicitHttpConfigValidationError) Key ¶
func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) Key() bool
Key function returns key value.
func (HttpProtocolOptions_ExplicitHttpConfigValidationError) Reason ¶
func (e HttpProtocolOptions_ExplicitHttpConfigValidationError) Reason() string
Reason function returns reason value.
type HttpProtocolOptions_ExplicitHttpConfig_ ¶
type HttpProtocolOptions_ExplicitHttpConfig_ struct { // To explicitly configure either HTTP/1 or HTTP/2 (but not both!) use *explicit_http_config*. // If the *explicit_http_config* is empty, HTTP/1.1 is used. ExplicitHttpConfig *HttpProtocolOptions_ExplicitHttpConfig `protobuf:"bytes,3,opt,name=explicit_http_config,json=explicitHttpConfig,proto3,oneof"` }
type HttpProtocolOptions_ExplicitHttpConfig_Http2ProtocolOptions ¶
type HttpProtocolOptions_ExplicitHttpConfig_Http2ProtocolOptions struct {
Http2ProtocolOptions *v3.Http2ProtocolOptions `protobuf:"bytes,2,opt,name=http2_protocol_options,json=http2ProtocolOptions,proto3,oneof"`
}
type HttpProtocolOptions_ExplicitHttpConfig_Http3ProtocolOptions ¶ added in v0.9.9
type HttpProtocolOptions_ExplicitHttpConfig_Http3ProtocolOptions struct { // .. warning:: // QUIC upstream support is currently not ready for internet use. // Please see :ref:`here <arch_overview_http3>` for details. Http3ProtocolOptions *v3.Http3ProtocolOptions `protobuf:"bytes,3,opt,name=http3_protocol_options,json=http3ProtocolOptions,proto3,oneof"` }
type HttpProtocolOptions_ExplicitHttpConfig_HttpProtocolOptions ¶
type HttpProtocolOptions_ExplicitHttpConfig_HttpProtocolOptions struct {
HttpProtocolOptions *v3.Http1ProtocolOptions `protobuf:"bytes,1,opt,name=http_protocol_options,json=httpProtocolOptions,proto3,oneof"`
}
type HttpProtocolOptions_UseDownstreamHttpConfig ¶
type HttpProtocolOptions_UseDownstreamHttpConfig struct { HttpProtocolOptions *v3.Http1ProtocolOptions `protobuf:"bytes,1,opt,name=http_protocol_options,json=httpProtocolOptions,proto3" json:"http_protocol_options,omitempty"` Http2ProtocolOptions *v3.Http2ProtocolOptions `protobuf:"bytes,2,opt,name=http2_protocol_options,json=http2ProtocolOptions,proto3" json:"http2_protocol_options,omitempty"` // .. warning:: // QUIC upstream support is currently not ready for internet use. // Please see :ref:`here <arch_overview_http3>` for details. Http3ProtocolOptions *v3.Http3ProtocolOptions `protobuf:"bytes,3,opt,name=http3_protocol_options,json=http3ProtocolOptions,proto3" json:"http3_protocol_options,omitempty"` // contains filtered or unexported fields }
If this is used, the cluster can use either of the configured protocols, and will use whichever protocol was used by the downstream connection.
If HTTP/3 is configured for downstream and not configured for upstream, HTTP/3 requests will fail over to HTTP/2.
func (*HttpProtocolOptions_UseDownstreamHttpConfig) Descriptor
deprecated
func (*HttpProtocolOptions_UseDownstreamHttpConfig) Descriptor() ([]byte, []int)
Deprecated: Use HttpProtocolOptions_UseDownstreamHttpConfig.ProtoReflect.Descriptor instead.
func (*HttpProtocolOptions_UseDownstreamHttpConfig) GetHttp2ProtocolOptions ¶
func (x *HttpProtocolOptions_UseDownstreamHttpConfig) GetHttp2ProtocolOptions() *v3.Http2ProtocolOptions
func (*HttpProtocolOptions_UseDownstreamHttpConfig) GetHttp3ProtocolOptions ¶ added in v0.9.9
func (x *HttpProtocolOptions_UseDownstreamHttpConfig) GetHttp3ProtocolOptions() *v3.Http3ProtocolOptions
func (*HttpProtocolOptions_UseDownstreamHttpConfig) GetHttpProtocolOptions ¶
func (x *HttpProtocolOptions_UseDownstreamHttpConfig) GetHttpProtocolOptions() *v3.Http1ProtocolOptions
func (*HttpProtocolOptions_UseDownstreamHttpConfig) ProtoMessage ¶
func (*HttpProtocolOptions_UseDownstreamHttpConfig) ProtoMessage()
func (*HttpProtocolOptions_UseDownstreamHttpConfig) ProtoReflect ¶
func (x *HttpProtocolOptions_UseDownstreamHttpConfig) ProtoReflect() protoreflect.Message
func (*HttpProtocolOptions_UseDownstreamHttpConfig) Reset ¶
func (x *HttpProtocolOptions_UseDownstreamHttpConfig) Reset()
func (*HttpProtocolOptions_UseDownstreamHttpConfig) String ¶
func (x *HttpProtocolOptions_UseDownstreamHttpConfig) String() string
func (*HttpProtocolOptions_UseDownstreamHttpConfig) Validate ¶
func (m *HttpProtocolOptions_UseDownstreamHttpConfig) Validate() error
Validate checks the field values on HttpProtocolOptions_UseDownstreamHttpConfig 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 (*HttpProtocolOptions_UseDownstreamHttpConfig) ValidateAll ¶ added in v0.10.0
func (m *HttpProtocolOptions_UseDownstreamHttpConfig) ValidateAll() error
ValidateAll checks the field values on HttpProtocolOptions_UseDownstreamHttpConfig 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 HttpProtocolOptions_UseDownstreamHttpConfigMultiError, or nil if none found.
type HttpProtocolOptions_UseDownstreamHttpConfigMultiError ¶ added in v0.10.0
type HttpProtocolOptions_UseDownstreamHttpConfigMultiError []error
HttpProtocolOptions_UseDownstreamHttpConfigMultiError is an error wrapping multiple validation errors returned by HttpProtocolOptions_UseDownstreamHttpConfig.ValidateAll() if the designated constraints aren't met.
func (HttpProtocolOptions_UseDownstreamHttpConfigMultiError) AllErrors ¶ added in v0.10.0
func (m HttpProtocolOptions_UseDownstreamHttpConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HttpProtocolOptions_UseDownstreamHttpConfigMultiError) Error ¶ added in v0.10.0
func (m HttpProtocolOptions_UseDownstreamHttpConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HttpProtocolOptions_UseDownstreamHttpConfigValidationError ¶
type HttpProtocolOptions_UseDownstreamHttpConfigValidationError struct {
// contains filtered or unexported fields
}
HttpProtocolOptions_UseDownstreamHttpConfigValidationError is the validation error returned by HttpProtocolOptions_UseDownstreamHttpConfig.Validate if the designated constraints aren't met.
func (HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Cause ¶
func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Cause() error
Cause function returns cause value.
func (HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Error ¶
func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Error() string
Error satisfies the builtin error interface
func (HttpProtocolOptions_UseDownstreamHttpConfigValidationError) ErrorName ¶
func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) ErrorName() string
ErrorName returns error name.
func (HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Field ¶
func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Field() string
Field function returns field value.
func (HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Key ¶
func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Key() bool
Key function returns key value.
func (HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Reason ¶
func (e HttpProtocolOptions_UseDownstreamHttpConfigValidationError) Reason() string
Reason function returns reason value.
type HttpProtocolOptions_UseDownstreamProtocolConfig ¶
type HttpProtocolOptions_UseDownstreamProtocolConfig struct { // This allows switching on protocol based on what protocol the downstream // connection used. UseDownstreamProtocolConfig *HttpProtocolOptions_UseDownstreamHttpConfig `protobuf:"bytes,4,opt,name=use_downstream_protocol_config,json=useDownstreamProtocolConfig,proto3,oneof"` }