package v3alpha

import "github.com/envoyproxy/go-control-plane/contrib/envoy/extensions/compression/qatzip/compressor/v3alpha"

Index

Variables

var (
	Qatzip_HardwareBufferSize_name = map[int32]string{
		0: "DEFAULT",
		1: "SZ_4K",
		2: "SZ_8K",
		3: "SZ_32K",
		4: "SZ_64K",
		5: "SZ_128K",
		6: "SZ_512K",
	}
	Qatzip_HardwareBufferSize_value = map[string]int32{
		"DEFAULT": 0,
		"SZ_4K":   1,
		"SZ_8K":   2,
		"SZ_32K":  3,
		"SZ_64K":  4,
		"SZ_128K": 5,
		"SZ_512K": 6,
	}
)

Enum value maps for Qatzip_HardwareBufferSize.

var File_contrib_envoy_extensions_compression_qatzip_compressor_v3alpha_qatzip_proto protoreflect.FileDescriptor

Types

type Qatzip

type Qatzip struct {

	// Value from 1 to 9 that controls the main compression speed-density lever.
	// The higher quality, the slower compression. The default value is 1.
	CompressionLevel *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=compression_level,json=compressionLevel,proto3" json:"compression_level,omitempty"`
	// A size of qat hardware buffer. This field will be set to "DEFAULT" if not specified.
	HardwareBufferSize Qatzip_HardwareBufferSize `protobuf:"varint,2,opt,name=hardware_buffer_size,json=hardwareBufferSize,proto3,enum=envoy.extensions.compression.qatzip.compressor.v3alpha.Qatzip_HardwareBufferSize" json:"hardware_buffer_size,omitempty"`
	// Threshold of compression service’s input size for software failover.
	// If the size of input request less than the threshold, qatzip will route the request to software
	// compressor. The default value is 1024. The maximum value is 512*1024.
	InputSizeThreshold *wrappers.UInt32Value `protobuf:"bytes,3,opt,name=input_size_threshold,json=inputSizeThreshold,proto3" json:"input_size_threshold,omitempty"`
	// A size of stream buffer. The default value is 128 * 1024. The maximum value is 2*1024*1024 -
	// 5*1024
	StreamBufferSize *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=stream_buffer_size,json=streamBufferSize,proto3" json:"stream_buffer_size,omitempty"`
	// Value for compressor's next output buffer. If not set, defaults to 4096.
	ChunkSize *wrappers.UInt32Value `protobuf:"bytes,5,opt,name=chunk_size,json=chunkSize,proto3" json:"chunk_size,omitempty"`
	// contains filtered or unexported fields
}

[#next-free-field: 6]

func (*Qatzip) Descriptor

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

Deprecated: Use Qatzip.ProtoReflect.Descriptor instead.

func (*Qatzip) GetChunkSize

func (x *Qatzip) GetChunkSize() *wrappers.UInt32Value

func (*Qatzip) GetCompressionLevel

func (x *Qatzip) GetCompressionLevel() *wrappers.UInt32Value

func (*Qatzip) GetHardwareBufferSize

func (x *Qatzip) GetHardwareBufferSize() Qatzip_HardwareBufferSize

func (*Qatzip) GetInputSizeThreshold

func (x *Qatzip) GetInputSizeThreshold() *wrappers.UInt32Value

func (*Qatzip) GetStreamBufferSize

func (x *Qatzip) GetStreamBufferSize() *wrappers.UInt32Value

func (*Qatzip) ProtoMessage

func (*Qatzip) ProtoMessage()

func (*Qatzip) ProtoReflect

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

func (*Qatzip) Reset

func (x *Qatzip) Reset()

func (*Qatzip) String

func (x *Qatzip) String() string

func (*Qatzip) Validate

func (m *Qatzip) Validate() error

Validate checks the field values on Qatzip 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 (*Qatzip) ValidateAll

func (m *Qatzip) ValidateAll() error

ValidateAll checks the field values on Qatzip 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 QatzipMultiError, or nil if none found.

type QatzipMultiError

type QatzipMultiError []error

QatzipMultiError is an error wrapping multiple validation errors returned by Qatzip.ValidateAll() if the designated constraints aren't met.

func (QatzipMultiError) AllErrors

func (m QatzipMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QatzipMultiError) Error

func (m QatzipMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type QatzipValidationError

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

QatzipValidationError is the validation error returned by Qatzip.Validate if the designated constraints aren't met.

func (QatzipValidationError) Cause

func (e QatzipValidationError) Cause() error

Cause function returns cause value.

func (QatzipValidationError) Error

func (e QatzipValidationError) Error() string

Error satisfies the builtin error interface

func (QatzipValidationError) ErrorName

func (e QatzipValidationError) ErrorName() string

ErrorName returns error name.

func (QatzipValidationError) Field

func (e QatzipValidationError) Field() string

Field function returns field value.

func (QatzipValidationError) Key

func (e QatzipValidationError) Key() bool

Key function returns key value.

func (QatzipValidationError) Reason

func (e QatzipValidationError) Reason() string

Reason function returns reason value.

type Qatzip_HardwareBufferSize

type Qatzip_HardwareBufferSize int32
const (
	Qatzip_DEFAULT Qatzip_HardwareBufferSize = 0
	Qatzip_SZ_4K   Qatzip_HardwareBufferSize = 1
	Qatzip_SZ_8K   Qatzip_HardwareBufferSize = 2
	Qatzip_SZ_32K  Qatzip_HardwareBufferSize = 3
	Qatzip_SZ_64K  Qatzip_HardwareBufferSize = 4
	Qatzip_SZ_128K Qatzip_HardwareBufferSize = 5
	Qatzip_SZ_512K Qatzip_HardwareBufferSize = 6
)

func (Qatzip_HardwareBufferSize) Descriptor

func (Qatzip_HardwareBufferSize) Enum

func (Qatzip_HardwareBufferSize) EnumDescriptor

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

Deprecated: Use Qatzip_HardwareBufferSize.Descriptor instead.

func (Qatzip_HardwareBufferSize) Number

func (Qatzip_HardwareBufferSize) String

func (x Qatzip_HardwareBufferSize) String() string

func (Qatzip_HardwareBufferSize) Type

Source Files

qatzip.pb.go qatzip.pb.validate.go

Version
v0.12.0
Published
Jan 2, 2024
Platform
windows/amd64
Imports
19 packages
Last checked
28 minutes ago

Tools for package owners.