envoy_extensions_filters_http_compressor_v3

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCompressor        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCompressor          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCompressor = fmt.Errorf("proto: unexpected end of group")
)

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.
	ContentLength *types.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.
	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.
	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.
	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. If not specified, defaults to enabled.
	RuntimeEnabled       *v3.RuntimeFeatureFlag `protobuf:"bytes,5,opt,name=runtime_enabled,json=runtimeEnabled,proto3" json:"runtime_enabled,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

[#next-free-field: 6]

func (*Compressor) Descriptor

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

func (*Compressor) GetContentLength

func (m *Compressor) GetContentLength() *types.UInt32Value

func (*Compressor) GetContentType

func (m *Compressor) GetContentType() []string

func (*Compressor) GetDisableOnEtagHeader

func (m *Compressor) GetDisableOnEtagHeader() bool

func (*Compressor) GetRemoveAcceptEncodingHeader

func (m *Compressor) GetRemoveAcceptEncodingHeader() bool

func (*Compressor) GetRuntimeEnabled

func (m *Compressor) GetRuntimeEnabled() *v3.RuntimeFeatureFlag

func (*Compressor) Marshal

func (m *Compressor) Marshal() (dAtA []byte, err error)

func (*Compressor) MarshalTo

func (m *Compressor) MarshalTo(dAtA []byte) (int, error)

func (*Compressor) MarshalToSizedBuffer

func (m *Compressor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Compressor) ProtoMessage

func (*Compressor) ProtoMessage()

func (*Compressor) Reset

func (m *Compressor) Reset()

func (*Compressor) Size

func (m *Compressor) Size() (n int)

func (*Compressor) String

func (m *Compressor) String() string

func (*Compressor) Unmarshal

func (m *Compressor) Unmarshal(dAtA []byte) error

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, an error is returned.

func (*Compressor) XXX_DiscardUnknown

func (m *Compressor) XXX_DiscardUnknown()

func (*Compressor) XXX_Marshal

func (m *Compressor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Compressor) XXX_Merge

func (m *Compressor) XXX_Merge(src proto.Message)

func (*Compressor) XXX_Size

func (m *Compressor) XXX_Size() int

func (*Compressor) XXX_Unmarshal

func (m *Compressor) XXX_Unmarshal(b []byte) error

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

Error satisfies the builtin error interface

func (CompressorValidationError) ErrorName

func (e CompressorValidationError) ErrorName() string

ErrorName returns error name.

func (CompressorValidationError) Field

Field function returns field value.

func (CompressorValidationError) Key

Key function returns key value.

func (CompressorValidationError) Reason

func (e CompressorValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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