Documentation ¶
Index ¶
- Variables
- type Compressor
- func (*Compressor) Descriptor() ([]byte, []int)deprecated
- func (x *Compressor) GetChooseFirst() bool
- func (x *Compressor) GetCompressorLibrary() *v3.TypedExtensionConfig
- func (x *Compressor) GetContentLength() *wrappers.UInt32Valuedeprecated
- func (x *Compressor) GetContentType() []stringdeprecated
- func (x *Compressor) GetDisableOnEtagHeader() booldeprecated
- func (x *Compressor) GetRemoveAcceptEncodingHeader() booldeprecated
- func (x *Compressor) GetRequestDirectionConfig() *Compressor_RequestDirectionConfig
- func (x *Compressor) GetResponseDirectionConfig() *Compressor_ResponseDirectionConfig
- func (x *Compressor) GetRuntimeEnabled() *v3.RuntimeFeatureFlagdeprecated
- func (*Compressor) ProtoMessage()
- func (x *Compressor) ProtoReflect() protoreflect.Message
- func (x *Compressor) Reset()
- func (x *Compressor) String() string
- func (m *Compressor) Validate() error
- func (m *Compressor) ValidateAll() error
- type CompressorMultiError
- type CompressorOverrides
- func (*CompressorOverrides) Descriptor() ([]byte, []int)deprecated
- func (x *CompressorOverrides) GetResponseDirectionConfig() *ResponseDirectionOverrides
- func (*CompressorOverrides) ProtoMessage()
- func (x *CompressorOverrides) ProtoReflect() protoreflect.Message
- func (x *CompressorOverrides) Reset()
- func (x *CompressorOverrides) String() string
- func (m *CompressorOverrides) Validate() error
- func (m *CompressorOverrides) ValidateAll() error
- type CompressorOverridesMultiError
- type CompressorOverridesValidationError
- func (e CompressorOverridesValidationError) Cause() error
- func (e CompressorOverridesValidationError) Error() string
- func (e CompressorOverridesValidationError) ErrorName() string
- func (e CompressorOverridesValidationError) Field() string
- func (e CompressorOverridesValidationError) Key() bool
- func (e CompressorOverridesValidationError) Reason() string
- type CompressorPerRoute
- func (*CompressorPerRoute) Descriptor() ([]byte, []int)deprecated
- func (x *CompressorPerRoute) GetDisabled() bool
- func (m *CompressorPerRoute) GetOverride() isCompressorPerRoute_Override
- func (x *CompressorPerRoute) GetOverrides() *CompressorOverrides
- func (*CompressorPerRoute) ProtoMessage()
- func (x *CompressorPerRoute) ProtoReflect() protoreflect.Message
- func (x *CompressorPerRoute) Reset()
- func (x *CompressorPerRoute) String() string
- func (m *CompressorPerRoute) Validate() error
- func (m *CompressorPerRoute) ValidateAll() error
- type CompressorPerRouteMultiError
- type CompressorPerRouteValidationError
- func (e CompressorPerRouteValidationError) Cause() error
- func (e CompressorPerRouteValidationError) Error() string
- func (e CompressorPerRouteValidationError) ErrorName() string
- func (e CompressorPerRouteValidationError) Field() string
- func (e CompressorPerRouteValidationError) Key() bool
- func (e CompressorPerRouteValidationError) Reason() string
- type CompressorPerRoute_Disabled
- type CompressorPerRoute_Overrides
- type CompressorValidationError
- type Compressor_CommonDirectionConfig
- func (*Compressor_CommonDirectionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Compressor_CommonDirectionConfig) GetContentType() []string
- func (x *Compressor_CommonDirectionConfig) GetEnabled() *v3.RuntimeFeatureFlag
- func (x *Compressor_CommonDirectionConfig) GetMinContentLength() *wrappers.UInt32Value
- func (*Compressor_CommonDirectionConfig) ProtoMessage()
- func (x *Compressor_CommonDirectionConfig) ProtoReflect() protoreflect.Message
- func (x *Compressor_CommonDirectionConfig) Reset()
- func (x *Compressor_CommonDirectionConfig) String() string
- func (m *Compressor_CommonDirectionConfig) Validate() error
- func (m *Compressor_CommonDirectionConfig) ValidateAll() error
- type Compressor_CommonDirectionConfigMultiError
- type Compressor_CommonDirectionConfigValidationError
- func (e Compressor_CommonDirectionConfigValidationError) Cause() error
- func (e Compressor_CommonDirectionConfigValidationError) Error() string
- func (e Compressor_CommonDirectionConfigValidationError) ErrorName() string
- func (e Compressor_CommonDirectionConfigValidationError) Field() string
- func (e Compressor_CommonDirectionConfigValidationError) Key() bool
- func (e Compressor_CommonDirectionConfigValidationError) Reason() string
- type Compressor_RequestDirectionConfig
- func (*Compressor_RequestDirectionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Compressor_RequestDirectionConfig) GetCommonConfig() *Compressor_CommonDirectionConfig
- func (*Compressor_RequestDirectionConfig) ProtoMessage()
- func (x *Compressor_RequestDirectionConfig) ProtoReflect() protoreflect.Message
- func (x *Compressor_RequestDirectionConfig) Reset()
- func (x *Compressor_RequestDirectionConfig) String() string
- func (m *Compressor_RequestDirectionConfig) Validate() error
- func (m *Compressor_RequestDirectionConfig) ValidateAll() error
- type Compressor_RequestDirectionConfigMultiError
- type Compressor_RequestDirectionConfigValidationError
- func (e Compressor_RequestDirectionConfigValidationError) Cause() error
- func (e Compressor_RequestDirectionConfigValidationError) Error() string
- func (e Compressor_RequestDirectionConfigValidationError) ErrorName() string
- func (e Compressor_RequestDirectionConfigValidationError) Field() string
- func (e Compressor_RequestDirectionConfigValidationError) Key() bool
- func (e Compressor_RequestDirectionConfigValidationError) Reason() string
- type Compressor_ResponseDirectionConfig
- func (*Compressor_ResponseDirectionConfig) Descriptor() ([]byte, []int)deprecated
- func (x *Compressor_ResponseDirectionConfig) GetCommonConfig() *Compressor_CommonDirectionConfig
- func (x *Compressor_ResponseDirectionConfig) GetDisableOnEtagHeader() bool
- func (x *Compressor_ResponseDirectionConfig) GetRemoveAcceptEncodingHeader() bool
- func (*Compressor_ResponseDirectionConfig) ProtoMessage()
- func (x *Compressor_ResponseDirectionConfig) ProtoReflect() protoreflect.Message
- func (x *Compressor_ResponseDirectionConfig) Reset()
- func (x *Compressor_ResponseDirectionConfig) String() string
- func (m *Compressor_ResponseDirectionConfig) Validate() error
- func (m *Compressor_ResponseDirectionConfig) ValidateAll() error
- type Compressor_ResponseDirectionConfigMultiError
- type Compressor_ResponseDirectionConfigValidationError
- func (e Compressor_ResponseDirectionConfigValidationError) Cause() error
- func (e Compressor_ResponseDirectionConfigValidationError) Error() string
- func (e Compressor_ResponseDirectionConfigValidationError) ErrorName() string
- func (e Compressor_ResponseDirectionConfigValidationError) Field() string
- func (e Compressor_ResponseDirectionConfigValidationError) Key() bool
- func (e Compressor_ResponseDirectionConfigValidationError) Reason() string
- type ResponseDirectionOverrides
- func (*ResponseDirectionOverrides) Descriptor() ([]byte, []int)deprecated
- func (*ResponseDirectionOverrides) ProtoMessage()
- func (x *ResponseDirectionOverrides) ProtoReflect() protoreflect.Message
- func (x *ResponseDirectionOverrides) Reset()
- func (x *ResponseDirectionOverrides) String() string
- func (m *ResponseDirectionOverrides) Validate() error
- func (m *ResponseDirectionOverrides) ValidateAll() error
- type ResponseDirectionOverridesMultiError
- type ResponseDirectionOverridesValidationError
- func (e ResponseDirectionOverridesValidationError) Cause() error
- func (e ResponseDirectionOverridesValidationError) Error() string
- func (e ResponseDirectionOverridesValidationError) ErrorName() string
- func (e ResponseDirectionOverridesValidationError) Field() string
- func (e ResponseDirectionOverridesValidationError) Key() bool
- func (e ResponseDirectionOverridesValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_filters_http_compressor_v3_compressor_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor struct { // Minimum response length, in bytes, which will trigger compression. The default value is 30. // // Deprecated: Marked as deprecated in envoy/extensions/filters/http/compressor/v3/compressor.proto. ContentLength *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=content_length,json=contentLength,proto3" json:"content_length,omitempty"` // Set of strings that allows specifying which mime-types yield compression; e.g., // application/json, text/html, etc. When this field is not defined, compression will be applied // to the following mime-types: "application/javascript", "application/json", // "application/xhtml+xml", "image/svg+xml", "text/css", "text/html", "text/plain", "text/xml" // and their synonyms. // // Deprecated: Marked as deprecated in envoy/extensions/filters/http/compressor/v3/compressor.proto. ContentType []string `protobuf:"bytes,2,rep,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // If true, disables compression when the response contains an etag header. When it is false, the // filter will preserve weak etags and remove the ones that require strong validation. // // Deprecated: Marked as deprecated in envoy/extensions/filters/http/compressor/v3/compressor.proto. DisableOnEtagHeader bool `protobuf:"varint,3,opt,name=disable_on_etag_header,json=disableOnEtagHeader,proto3" json:"disable_on_etag_header,omitempty"` // If true, removes accept-encoding from the request headers before dispatching it to the upstream // so that responses do not get compressed before reaching the filter. // // .. attention:: // // To avoid interfering with other compression filters in the same chain use this option in // the filter closest to the upstream. // // Deprecated: Marked as deprecated in envoy/extensions/filters/http/compressor/v3/compressor.proto. RemoveAcceptEncodingHeader bool `` /* 144-byte string literal not displayed */ // Runtime flag that controls whether the filter is enabled or not. If set to false, the // filter will operate as a pass-through filter, unless overridden by // CompressorPerRoute. If not specified, defaults to enabled. // // Deprecated: Marked as deprecated in envoy/extensions/filters/http/compressor/v3/compressor.proto. RuntimeEnabled *v3.RuntimeFeatureFlag `protobuf:"bytes,5,opt,name=runtime_enabled,json=runtimeEnabled,proto3" json:"runtime_enabled,omitempty"` // A compressor library to use for compression. Currently only // :ref:`envoy.compression.gzip.compressor<envoy_v3_api_msg_extensions.compression.gzip.compressor.v3.Gzip>` // is included in Envoy. // [#extension-category: envoy.compression.compressor] CompressorLibrary *v3.TypedExtensionConfig `protobuf:"bytes,6,opt,name=compressor_library,json=compressorLibrary,proto3" json:"compressor_library,omitempty"` // Configuration for request compression. Compression is disabled by default if left empty. RequestDirectionConfig *Compressor_RequestDirectionConfig `` /* 129-byte string literal not displayed */ // Configuration for response compression. Compression is enabled by default if left empty. // // .. attention:: // // If the field is not empty then the duplicate deprecated fields of the “Compressor“ message, // such as “content_length“, “content_type“, “disable_on_etag_header“, // “remove_accept_encoding_header“ and “runtime_enabled“, are ignored. // // Also all the statistics related to response compression will be rooted in // “<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.response.*“ // instead of // “<stat_prefix>.compressor.<compressor_library.name>.<compressor_library_stat_prefix>.*“. ResponseDirectionConfig *Compressor_ResponseDirectionConfig `` /* 132-byte string literal not displayed */ // If true, chooses this compressor first to do compression when the q-values in `Accept-Encoding` are same. // The last compressor which enables choose_first will be chosen if multiple compressor filters in the chain have choose_first as true. ChooseFirst bool `protobuf:"varint,9,opt,name=choose_first,json=chooseFirst,proto3" json:"choose_first,omitempty"` // contains filtered or unexported fields }
[#next-free-field: 10]
func (*Compressor) Descriptor
deprecated
func (*Compressor) Descriptor() ([]byte, []int)
Deprecated: Use Compressor.ProtoReflect.Descriptor instead.
func (*Compressor) GetChooseFirst ¶ added in v3.4.0
func (x *Compressor) GetChooseFirst() bool
func (*Compressor) GetCompressorLibrary ¶
func (x *Compressor) GetCompressorLibrary() *v3.TypedExtensionConfig
func (*Compressor) GetContentLength
deprecated
func (x *Compressor) GetContentLength() *wrappers.UInt32Value
Deprecated: Marked as deprecated in envoy/extensions/filters/http/compressor/v3/compressor.proto.
func (*Compressor) GetContentType
deprecated
func (x *Compressor) GetContentType() []string
Deprecated: Marked as deprecated in envoy/extensions/filters/http/compressor/v3/compressor.proto.
func (*Compressor) GetDisableOnEtagHeader
deprecated
func (x *Compressor) GetDisableOnEtagHeader() bool
Deprecated: Marked as deprecated in envoy/extensions/filters/http/compressor/v3/compressor.proto.
func (*Compressor) GetRemoveAcceptEncodingHeader
deprecated
func (x *Compressor) GetRemoveAcceptEncodingHeader() bool
Deprecated: Marked as deprecated in envoy/extensions/filters/http/compressor/v3/compressor.proto.
func (*Compressor) GetRequestDirectionConfig ¶
func (x *Compressor) GetRequestDirectionConfig() *Compressor_RequestDirectionConfig
func (*Compressor) GetResponseDirectionConfig ¶
func (x *Compressor) GetResponseDirectionConfig() *Compressor_ResponseDirectionConfig
func (*Compressor) GetRuntimeEnabled
deprecated
func (x *Compressor) GetRuntimeEnabled() *v3.RuntimeFeatureFlag
Deprecated: Marked as deprecated in envoy/extensions/filters/http/compressor/v3/compressor.proto.
func (*Compressor) ProtoMessage ¶
func (*Compressor) ProtoMessage()
func (*Compressor) ProtoReflect ¶
func (x *Compressor) ProtoReflect() protoreflect.Message
func (*Compressor) Reset ¶
func (x *Compressor) Reset()
func (*Compressor) String ¶
func (x *Compressor) String() string
func (*Compressor) Validate ¶
func (m *Compressor) Validate() error
Validate checks the field values on Compressor 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 (*Compressor) ValidateAll ¶
func (m *Compressor) ValidateAll() error
ValidateAll checks the field values on Compressor 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 CompressorMultiError, or nil if none found.
type CompressorMultiError ¶
type CompressorMultiError []error
CompressorMultiError is an error wrapping multiple validation errors returned by Compressor.ValidateAll() if the designated constraints aren't met.
func (CompressorMultiError) AllErrors ¶
func (m CompressorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompressorMultiError) Error ¶
func (m CompressorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompressorOverrides ¶ added in v3.6.0
type CompressorOverrides struct { // If present, response compression is enabled. ResponseDirectionConfig *ResponseDirectionOverrides `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
Per-route overrides. As per-route overrides are needed, they should be added here, mirroring the structure of `Compressor`. All fields should be optional, to allow overriding arbitrary subsets of configuration.
func (*CompressorOverrides) Descriptor
deprecated
added in
v3.6.0
func (*CompressorOverrides) Descriptor() ([]byte, []int)
Deprecated: Use CompressorOverrides.ProtoReflect.Descriptor instead.
func (*CompressorOverrides) GetResponseDirectionConfig ¶ added in v3.6.0
func (x *CompressorOverrides) GetResponseDirectionConfig() *ResponseDirectionOverrides
func (*CompressorOverrides) ProtoMessage ¶ added in v3.6.0
func (*CompressorOverrides) ProtoMessage()
func (*CompressorOverrides) ProtoReflect ¶ added in v3.6.0
func (x *CompressorOverrides) ProtoReflect() protoreflect.Message
func (*CompressorOverrides) Reset ¶ added in v3.6.0
func (x *CompressorOverrides) Reset()
func (*CompressorOverrides) String ¶ added in v3.6.0
func (x *CompressorOverrides) String() string
func (*CompressorOverrides) Validate ¶ added in v3.6.0
func (m *CompressorOverrides) Validate() error
Validate checks the field values on CompressorOverrides 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 (*CompressorOverrides) ValidateAll ¶ added in v3.6.0
func (m *CompressorOverrides) ValidateAll() error
ValidateAll checks the field values on CompressorOverrides 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 CompressorOverridesMultiError, or nil if none found.
type CompressorOverridesMultiError ¶ added in v3.6.0
type CompressorOverridesMultiError []error
CompressorOverridesMultiError is an error wrapping multiple validation errors returned by CompressorOverrides.ValidateAll() if the designated constraints aren't met.
func (CompressorOverridesMultiError) AllErrors ¶ added in v3.6.0
func (m CompressorOverridesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompressorOverridesMultiError) Error ¶ added in v3.6.0
func (m CompressorOverridesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompressorOverridesValidationError ¶ added in v3.6.0
type CompressorOverridesValidationError struct {
// contains filtered or unexported fields
}
CompressorOverridesValidationError is the validation error returned by CompressorOverrides.Validate if the designated constraints aren't met.
func (CompressorOverridesValidationError) Cause ¶ added in v3.6.0
func (e CompressorOverridesValidationError) Cause() error
Cause function returns cause value.
func (CompressorOverridesValidationError) Error ¶ added in v3.6.0
func (e CompressorOverridesValidationError) Error() string
Error satisfies the builtin error interface
func (CompressorOverridesValidationError) ErrorName ¶ added in v3.6.0
func (e CompressorOverridesValidationError) ErrorName() string
ErrorName returns error name.
func (CompressorOverridesValidationError) Field ¶ added in v3.6.0
func (e CompressorOverridesValidationError) Field() string
Field function returns field value.
func (CompressorOverridesValidationError) Key ¶ added in v3.6.0
func (e CompressorOverridesValidationError) Key() bool
Key function returns key value.
func (CompressorOverridesValidationError) Reason ¶ added in v3.6.0
func (e CompressorOverridesValidationError) Reason() string
Reason function returns reason value.
type CompressorPerRoute ¶ added in v3.6.0
type CompressorPerRoute struct { // Types that are assignable to Override: // *CompressorPerRoute_Disabled // *CompressorPerRoute_Overrides Override isCompressorPerRoute_Override `protobuf_oneof:"override"` // contains filtered or unexported fields }
func (*CompressorPerRoute) Descriptor
deprecated
added in
v3.6.0
func (*CompressorPerRoute) Descriptor() ([]byte, []int)
Deprecated: Use CompressorPerRoute.ProtoReflect.Descriptor instead.
func (*CompressorPerRoute) GetDisabled ¶ added in v3.6.0
func (x *CompressorPerRoute) GetDisabled() bool
func (*CompressorPerRoute) GetOverride ¶ added in v3.6.0
func (m *CompressorPerRoute) GetOverride() isCompressorPerRoute_Override
func (*CompressorPerRoute) GetOverrides ¶ added in v3.6.0
func (x *CompressorPerRoute) GetOverrides() *CompressorOverrides
func (*CompressorPerRoute) ProtoMessage ¶ added in v3.6.0
func (*CompressorPerRoute) ProtoMessage()
func (*CompressorPerRoute) ProtoReflect ¶ added in v3.6.0
func (x *CompressorPerRoute) ProtoReflect() protoreflect.Message
func (*CompressorPerRoute) Reset ¶ added in v3.6.0
func (x *CompressorPerRoute) Reset()
func (*CompressorPerRoute) String ¶ added in v3.6.0
func (x *CompressorPerRoute) String() string
func (*CompressorPerRoute) Validate ¶ added in v3.6.0
func (m *CompressorPerRoute) Validate() error
Validate checks the field values on CompressorPerRoute 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 (*CompressorPerRoute) ValidateAll ¶ added in v3.6.0
func (m *CompressorPerRoute) ValidateAll() error
ValidateAll checks the field values on CompressorPerRoute 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 CompressorPerRouteMultiError, or nil if none found.
type CompressorPerRouteMultiError ¶ added in v3.6.0
type CompressorPerRouteMultiError []error
CompressorPerRouteMultiError is an error wrapping multiple validation errors returned by CompressorPerRoute.ValidateAll() if the designated constraints aren't met.
func (CompressorPerRouteMultiError) AllErrors ¶ added in v3.6.0
func (m CompressorPerRouteMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CompressorPerRouteMultiError) Error ¶ added in v3.6.0
func (m CompressorPerRouteMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CompressorPerRouteValidationError ¶ added in v3.6.0
type CompressorPerRouteValidationError struct {
// contains filtered or unexported fields
}
CompressorPerRouteValidationError is the validation error returned by CompressorPerRoute.Validate if the designated constraints aren't met.
func (CompressorPerRouteValidationError) Cause ¶ added in v3.6.0
func (e CompressorPerRouteValidationError) Cause() error
Cause function returns cause value.
func (CompressorPerRouteValidationError) Error ¶ added in v3.6.0
func (e CompressorPerRouteValidationError) Error() string
Error satisfies the builtin error interface
func (CompressorPerRouteValidationError) ErrorName ¶ added in v3.6.0
func (e CompressorPerRouteValidationError) ErrorName() string
ErrorName returns error name.
func (CompressorPerRouteValidationError) Field ¶ added in v3.6.0
func (e CompressorPerRouteValidationError) Field() string
Field function returns field value.
func (CompressorPerRouteValidationError) Key ¶ added in v3.6.0
func (e CompressorPerRouteValidationError) Key() bool
Key function returns key value.
func (CompressorPerRouteValidationError) Reason ¶ added in v3.6.0
func (e CompressorPerRouteValidationError) Reason() string
Reason function returns reason value.
type CompressorPerRoute_Disabled ¶ added in v3.6.0
type CompressorPerRoute_Disabled struct { // If set, the filter will operate as a pass-through filter. // Overrides Compressor.runtime_enabled and CommonDirectionConfig.enabled. Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3,oneof"` }
type CompressorPerRoute_Overrides ¶ added in v3.6.0
type CompressorPerRoute_Overrides struct { // Per-route overrides. Fields set here will override corresponding fields in `Compressor`. Overrides *CompressorOverrides `protobuf:"bytes,2,opt,name=overrides,proto3,oneof"` }
type CompressorValidationError ¶
type CompressorValidationError struct {
// contains filtered or unexported fields
}
CompressorValidationError is the validation error returned by Compressor.Validate if the designated constraints aren't met.
func (CompressorValidationError) Cause ¶
func (e CompressorValidationError) Cause() error
Cause function returns cause value.
func (CompressorValidationError) Error ¶
func (e CompressorValidationError) Error() string
Error satisfies the builtin error interface
func (CompressorValidationError) ErrorName ¶
func (e CompressorValidationError) ErrorName() string
ErrorName returns error name.
func (CompressorValidationError) Field ¶
func (e CompressorValidationError) Field() string
Field function returns field value.
func (CompressorValidationError) Key ¶
func (e CompressorValidationError) Key() bool
Key function returns key value.
func (CompressorValidationError) Reason ¶
func (e CompressorValidationError) Reason() string
Reason function returns reason value.
type Compressor_CommonDirectionConfig ¶
type Compressor_CommonDirectionConfig struct { // Runtime flag that controls whether compression is enabled or not for the direction this // common config is put in. If set to false, the filter will operate as a pass-through filter // in the chosen direction, unless overridden by CompressorPerRoute. // If the field is omitted, the filter will be enabled. Enabled *v3.RuntimeFeatureFlag `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // Minimum value of Content-Length header of request or response messages (depending on the direction // this common config is put in), in bytes, which will trigger compression. The default value is 30. MinContentLength *wrappers.UInt32Value `protobuf:"bytes,2,opt,name=min_content_length,json=minContentLength,proto3" json:"min_content_length,omitempty"` // Set of strings that allows specifying which mime-types yield compression; e.g., // application/json, text/html, etc. When this field is not defined, compression will be applied // to the following mime-types: "application/javascript", "application/json", // "application/xhtml+xml", "image/svg+xml", "text/css", "text/html", "text/plain", "text/xml" // and their synonyms. ContentType []string `protobuf:"bytes,3,rep,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // contains filtered or unexported fields }
func (*Compressor_CommonDirectionConfig) Descriptor
deprecated
func (*Compressor_CommonDirectionConfig) Descriptor() ([]byte, []int)
Deprecated: Use Compressor_CommonDirectionConfig.ProtoReflect.Descriptor instead.
func (*Compressor_CommonDirectionConfig) GetContentType ¶
func (x *Compressor_CommonDirectionConfig) GetContentType() []string
func (*Compressor_CommonDirectionConfig) GetEnabled ¶
func (x *Compressor_CommonDirectionConfig) GetEnabled() *v3.RuntimeFeatureFlag
func (*Compressor_CommonDirectionConfig) GetMinContentLength ¶
func (x *Compressor_CommonDirectionConfig) GetMinContentLength() *wrappers.UInt32Value
func (*Compressor_CommonDirectionConfig) ProtoMessage ¶
func (*Compressor_CommonDirectionConfig) ProtoMessage()
func (*Compressor_CommonDirectionConfig) ProtoReflect ¶
func (x *Compressor_CommonDirectionConfig) ProtoReflect() protoreflect.Message
func (*Compressor_CommonDirectionConfig) Reset ¶
func (x *Compressor_CommonDirectionConfig) Reset()
func (*Compressor_CommonDirectionConfig) String ¶
func (x *Compressor_CommonDirectionConfig) String() string
func (*Compressor_CommonDirectionConfig) Validate ¶
func (m *Compressor_CommonDirectionConfig) Validate() error
Validate checks the field values on Compressor_CommonDirectionConfig 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 (*Compressor_CommonDirectionConfig) ValidateAll ¶
func (m *Compressor_CommonDirectionConfig) ValidateAll() error
ValidateAll checks the field values on Compressor_CommonDirectionConfig 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 Compressor_CommonDirectionConfigMultiError, or nil if none found.
type Compressor_CommonDirectionConfigMultiError ¶
type Compressor_CommonDirectionConfigMultiError []error
Compressor_CommonDirectionConfigMultiError is an error wrapping multiple validation errors returned by Compressor_CommonDirectionConfig.ValidateAll() if the designated constraints aren't met.
func (Compressor_CommonDirectionConfigMultiError) AllErrors ¶
func (m Compressor_CommonDirectionConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Compressor_CommonDirectionConfigMultiError) Error ¶
func (m Compressor_CommonDirectionConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Compressor_CommonDirectionConfigValidationError ¶
type Compressor_CommonDirectionConfigValidationError struct {
// contains filtered or unexported fields
}
Compressor_CommonDirectionConfigValidationError is the validation error returned by Compressor_CommonDirectionConfig.Validate if the designated constraints aren't met.
func (Compressor_CommonDirectionConfigValidationError) Cause ¶
func (e Compressor_CommonDirectionConfigValidationError) Cause() error
Cause function returns cause value.
func (Compressor_CommonDirectionConfigValidationError) Error ¶
func (e Compressor_CommonDirectionConfigValidationError) Error() string
Error satisfies the builtin error interface
func (Compressor_CommonDirectionConfigValidationError) ErrorName ¶
func (e Compressor_CommonDirectionConfigValidationError) ErrorName() string
ErrorName returns error name.
func (Compressor_CommonDirectionConfigValidationError) Field ¶
func (e Compressor_CommonDirectionConfigValidationError) Field() string
Field function returns field value.
func (Compressor_CommonDirectionConfigValidationError) Key ¶
func (e Compressor_CommonDirectionConfigValidationError) Key() bool
Key function returns key value.
func (Compressor_CommonDirectionConfigValidationError) Reason ¶
func (e Compressor_CommonDirectionConfigValidationError) Reason() string
Reason function returns reason value.
type Compressor_RequestDirectionConfig ¶
type Compressor_RequestDirectionConfig struct { CommonConfig *Compressor_CommonDirectionConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` // contains filtered or unexported fields }
Configuration for filter behavior on the request direction.
func (*Compressor_RequestDirectionConfig) Descriptor
deprecated
func (*Compressor_RequestDirectionConfig) Descriptor() ([]byte, []int)
Deprecated: Use Compressor_RequestDirectionConfig.ProtoReflect.Descriptor instead.
func (*Compressor_RequestDirectionConfig) GetCommonConfig ¶
func (x *Compressor_RequestDirectionConfig) GetCommonConfig() *Compressor_CommonDirectionConfig
func (*Compressor_RequestDirectionConfig) ProtoMessage ¶
func (*Compressor_RequestDirectionConfig) ProtoMessage()
func (*Compressor_RequestDirectionConfig) ProtoReflect ¶
func (x *Compressor_RequestDirectionConfig) ProtoReflect() protoreflect.Message
func (*Compressor_RequestDirectionConfig) Reset ¶
func (x *Compressor_RequestDirectionConfig) Reset()
func (*Compressor_RequestDirectionConfig) String ¶
func (x *Compressor_RequestDirectionConfig) String() string
func (*Compressor_RequestDirectionConfig) Validate ¶
func (m *Compressor_RequestDirectionConfig) Validate() error
Validate checks the field values on Compressor_RequestDirectionConfig 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 (*Compressor_RequestDirectionConfig) ValidateAll ¶
func (m *Compressor_RequestDirectionConfig) ValidateAll() error
ValidateAll checks the field values on Compressor_RequestDirectionConfig 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 Compressor_RequestDirectionConfigMultiError, or nil if none found.
type Compressor_RequestDirectionConfigMultiError ¶
type Compressor_RequestDirectionConfigMultiError []error
Compressor_RequestDirectionConfigMultiError is an error wrapping multiple validation errors returned by Compressor_RequestDirectionConfig.ValidateAll() if the designated constraints aren't met.
func (Compressor_RequestDirectionConfigMultiError) AllErrors ¶
func (m Compressor_RequestDirectionConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Compressor_RequestDirectionConfigMultiError) Error ¶
func (m Compressor_RequestDirectionConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Compressor_RequestDirectionConfigValidationError ¶
type Compressor_RequestDirectionConfigValidationError struct {
// contains filtered or unexported fields
}
Compressor_RequestDirectionConfigValidationError is the validation error returned by Compressor_RequestDirectionConfig.Validate if the designated constraints aren't met.
func (Compressor_RequestDirectionConfigValidationError) Cause ¶
func (e Compressor_RequestDirectionConfigValidationError) Cause() error
Cause function returns cause value.
func (Compressor_RequestDirectionConfigValidationError) Error ¶
func (e Compressor_RequestDirectionConfigValidationError) Error() string
Error satisfies the builtin error interface
func (Compressor_RequestDirectionConfigValidationError) ErrorName ¶
func (e Compressor_RequestDirectionConfigValidationError) ErrorName() string
ErrorName returns error name.
func (Compressor_RequestDirectionConfigValidationError) Field ¶
func (e Compressor_RequestDirectionConfigValidationError) Field() string
Field function returns field value.
func (Compressor_RequestDirectionConfigValidationError) Key ¶
func (e Compressor_RequestDirectionConfigValidationError) Key() bool
Key function returns key value.
func (Compressor_RequestDirectionConfigValidationError) Reason ¶
func (e Compressor_RequestDirectionConfigValidationError) Reason() string
Reason function returns reason value.
type Compressor_ResponseDirectionConfig ¶
type Compressor_ResponseDirectionConfig struct { CommonConfig *Compressor_CommonDirectionConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"` // If true, disables compression when the response contains an etag header. When it is false, the // filter will preserve weak etags and remove the ones that require strong validation. DisableOnEtagHeader bool `protobuf:"varint,2,opt,name=disable_on_etag_header,json=disableOnEtagHeader,proto3" json:"disable_on_etag_header,omitempty"` // If true, removes accept-encoding from the request headers before dispatching it to the upstream // so that responses do not get compressed before reaching the filter. // // .. attention:: // // To avoid interfering with other compression filters in the same chain use this option in // the filter closest to the upstream. RemoveAcceptEncodingHeader bool `` /* 144-byte string literal not displayed */ // contains filtered or unexported fields }
Configuration for filter behavior on the response direction.
func (*Compressor_ResponseDirectionConfig) Descriptor
deprecated
func (*Compressor_ResponseDirectionConfig) Descriptor() ([]byte, []int)
Deprecated: Use Compressor_ResponseDirectionConfig.ProtoReflect.Descriptor instead.
func (*Compressor_ResponseDirectionConfig) GetCommonConfig ¶
func (x *Compressor_ResponseDirectionConfig) GetCommonConfig() *Compressor_CommonDirectionConfig
func (*Compressor_ResponseDirectionConfig) GetDisableOnEtagHeader ¶
func (x *Compressor_ResponseDirectionConfig) GetDisableOnEtagHeader() bool
func (*Compressor_ResponseDirectionConfig) GetRemoveAcceptEncodingHeader ¶
func (x *Compressor_ResponseDirectionConfig) GetRemoveAcceptEncodingHeader() bool
func (*Compressor_ResponseDirectionConfig) ProtoMessage ¶
func (*Compressor_ResponseDirectionConfig) ProtoMessage()
func (*Compressor_ResponseDirectionConfig) ProtoReflect ¶
func (x *Compressor_ResponseDirectionConfig) ProtoReflect() protoreflect.Message
func (*Compressor_ResponseDirectionConfig) Reset ¶
func (x *Compressor_ResponseDirectionConfig) Reset()
func (*Compressor_ResponseDirectionConfig) String ¶
func (x *Compressor_ResponseDirectionConfig) String() string
func (*Compressor_ResponseDirectionConfig) Validate ¶
func (m *Compressor_ResponseDirectionConfig) Validate() error
Validate checks the field values on Compressor_ResponseDirectionConfig 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 (*Compressor_ResponseDirectionConfig) ValidateAll ¶
func (m *Compressor_ResponseDirectionConfig) ValidateAll() error
ValidateAll checks the field values on Compressor_ResponseDirectionConfig 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 Compressor_ResponseDirectionConfigMultiError, or nil if none found.
type Compressor_ResponseDirectionConfigMultiError ¶
type Compressor_ResponseDirectionConfigMultiError []error
Compressor_ResponseDirectionConfigMultiError is an error wrapping multiple validation errors returned by Compressor_ResponseDirectionConfig.ValidateAll() if the designated constraints aren't met.
func (Compressor_ResponseDirectionConfigMultiError) AllErrors ¶
func (m Compressor_ResponseDirectionConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Compressor_ResponseDirectionConfigMultiError) Error ¶
func (m Compressor_ResponseDirectionConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Compressor_ResponseDirectionConfigValidationError ¶
type Compressor_ResponseDirectionConfigValidationError struct {
// contains filtered or unexported fields
}
Compressor_ResponseDirectionConfigValidationError is the validation error returned by Compressor_ResponseDirectionConfig.Validate if the designated constraints aren't met.
func (Compressor_ResponseDirectionConfigValidationError) Cause ¶
func (e Compressor_ResponseDirectionConfigValidationError) Cause() error
Cause function returns cause value.
func (Compressor_ResponseDirectionConfigValidationError) Error ¶
func (e Compressor_ResponseDirectionConfigValidationError) Error() string
Error satisfies the builtin error interface
func (Compressor_ResponseDirectionConfigValidationError) ErrorName ¶
func (e Compressor_ResponseDirectionConfigValidationError) ErrorName() string
ErrorName returns error name.
func (Compressor_ResponseDirectionConfigValidationError) Field ¶
func (e Compressor_ResponseDirectionConfigValidationError) Field() string
Field function returns field value.
func (Compressor_ResponseDirectionConfigValidationError) Key ¶
func (e Compressor_ResponseDirectionConfigValidationError) Key() bool
Key function returns key value.
func (Compressor_ResponseDirectionConfigValidationError) Reason ¶
func (e Compressor_ResponseDirectionConfigValidationError) Reason() string
Reason function returns reason value.
type ResponseDirectionOverrides ¶ added in v3.6.0
type ResponseDirectionOverrides struct {
// contains filtered or unexported fields
}
Per-route overrides of `ResponseDirectionConfig`. Anything added here should be optional, to allow overriding arbitrary subsets of configuration. Omitted fields must have no affect.
func (*ResponseDirectionOverrides) Descriptor
deprecated
added in
v3.6.0
func (*ResponseDirectionOverrides) Descriptor() ([]byte, []int)
Deprecated: Use ResponseDirectionOverrides.ProtoReflect.Descriptor instead.
func (*ResponseDirectionOverrides) ProtoMessage ¶ added in v3.6.0
func (*ResponseDirectionOverrides) ProtoMessage()
func (*ResponseDirectionOverrides) ProtoReflect ¶ added in v3.6.0
func (x *ResponseDirectionOverrides) ProtoReflect() protoreflect.Message
func (*ResponseDirectionOverrides) Reset ¶ added in v3.6.0
func (x *ResponseDirectionOverrides) Reset()
func (*ResponseDirectionOverrides) String ¶ added in v3.6.0
func (x *ResponseDirectionOverrides) String() string
func (*ResponseDirectionOverrides) Validate ¶ added in v3.6.0
func (m *ResponseDirectionOverrides) Validate() error
Validate checks the field values on ResponseDirectionOverrides 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 (*ResponseDirectionOverrides) ValidateAll ¶ added in v3.6.0
func (m *ResponseDirectionOverrides) ValidateAll() error
ValidateAll checks the field values on ResponseDirectionOverrides 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 ResponseDirectionOverridesMultiError, or nil if none found.
type ResponseDirectionOverridesMultiError ¶ added in v3.6.0
type ResponseDirectionOverridesMultiError []error
ResponseDirectionOverridesMultiError is an error wrapping multiple validation errors returned by ResponseDirectionOverrides.ValidateAll() if the designated constraints aren't met.
func (ResponseDirectionOverridesMultiError) AllErrors ¶ added in v3.6.0
func (m ResponseDirectionOverridesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResponseDirectionOverridesMultiError) Error ¶ added in v3.6.0
func (m ResponseDirectionOverridesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResponseDirectionOverridesValidationError ¶ added in v3.6.0
type ResponseDirectionOverridesValidationError struct {
// contains filtered or unexported fields
}
ResponseDirectionOverridesValidationError is the validation error returned by ResponseDirectionOverrides.Validate if the designated constraints aren't met.
func (ResponseDirectionOverridesValidationError) Cause ¶ added in v3.6.0
func (e ResponseDirectionOverridesValidationError) Cause() error
Cause function returns cause value.
func (ResponseDirectionOverridesValidationError) Error ¶ added in v3.6.0
func (e ResponseDirectionOverridesValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseDirectionOverridesValidationError) ErrorName ¶ added in v3.6.0
func (e ResponseDirectionOverridesValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseDirectionOverridesValidationError) Field ¶ added in v3.6.0
func (e ResponseDirectionOverridesValidationError) Field() string
Field function returns field value.
func (ResponseDirectionOverridesValidationError) Key ¶ added in v3.6.0
func (e ResponseDirectionOverridesValidationError) Key() bool
Key function returns key value.
func (ResponseDirectionOverridesValidationError) Reason ¶ added in v3.6.0
func (e ResponseDirectionOverridesValidationError) Reason() string
Reason function returns reason value.