file_system_bufferv3

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_filters_http_file_system_buffer_v3_file_system_buffer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BufferBehavior

type BufferBehavior struct {

	// Types that are assignable to Behavior:
	//	*BufferBehavior_StreamWhenPossible_
	//	*BufferBehavior_Bypass_
	//	*BufferBehavior_InjectContentLengthIfNecessary_
	//	*BufferBehavior_FullyBufferAndAlwaysInjectContentLength_
	//	*BufferBehavior_FullyBuffer_
	Behavior isBufferBehavior_Behavior `protobuf_oneof:"behavior"`
	// contains filtered or unexported fields
}

The behavior of the filter for a stream. [#next-free-field: 6]

func (*BufferBehavior) Descriptor deprecated

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

Deprecated: Use BufferBehavior.ProtoReflect.Descriptor instead.

func (*BufferBehavior) GetBehavior

func (m *BufferBehavior) GetBehavior() isBufferBehavior_Behavior

func (*BufferBehavior) GetBypass

func (x *BufferBehavior) GetBypass() *BufferBehavior_Bypass

func (*BufferBehavior) GetFullyBuffer

func (x *BufferBehavior) GetFullyBuffer() *BufferBehavior_FullyBuffer

func (*BufferBehavior) GetFullyBufferAndAlwaysInjectContentLength

func (x *BufferBehavior) GetFullyBufferAndAlwaysInjectContentLength() *BufferBehavior_FullyBufferAndAlwaysInjectContentLength

func (*BufferBehavior) GetInjectContentLengthIfNecessary

func (x *BufferBehavior) GetInjectContentLengthIfNecessary() *BufferBehavior_InjectContentLengthIfNecessary

func (*BufferBehavior) GetStreamWhenPossible

func (x *BufferBehavior) GetStreamWhenPossible() *BufferBehavior_StreamWhenPossible

func (*BufferBehavior) ProtoMessage

func (*BufferBehavior) ProtoMessage()

func (*BufferBehavior) ProtoReflect

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

func (*BufferBehavior) Reset

func (x *BufferBehavior) Reset()

func (*BufferBehavior) String

func (x *BufferBehavior) String() string

func (*BufferBehavior) Validate

func (m *BufferBehavior) Validate() error

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

func (m *BufferBehavior) ValidateAll() error

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

type BufferBehaviorMultiError

type BufferBehaviorMultiError []error

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

func (BufferBehaviorMultiError) AllErrors

func (m BufferBehaviorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BufferBehaviorMultiError) Error

func (m BufferBehaviorMultiError) Error() string

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

type BufferBehaviorValidationError

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

BufferBehaviorValidationError is the validation error returned by BufferBehavior.Validate if the designated constraints aren't met.

func (BufferBehaviorValidationError) Cause

Cause function returns cause value.

func (BufferBehaviorValidationError) Error

Error satisfies the builtin error interface

func (BufferBehaviorValidationError) ErrorName

func (e BufferBehaviorValidationError) ErrorName() string

ErrorName returns error name.

func (BufferBehaviorValidationError) Field

Field function returns field value.

func (BufferBehaviorValidationError) Key

Key function returns key value.

func (BufferBehaviorValidationError) Reason

Reason function returns reason value.

type BufferBehavior_Bypass

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

func (*BufferBehavior_Bypass) Descriptor deprecated

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

Deprecated: Use BufferBehavior_Bypass.ProtoReflect.Descriptor instead.

func (*BufferBehavior_Bypass) ProtoMessage

func (*BufferBehavior_Bypass) ProtoMessage()

func (*BufferBehavior_Bypass) ProtoReflect

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

func (*BufferBehavior_Bypass) Reset

func (x *BufferBehavior_Bypass) Reset()

func (*BufferBehavior_Bypass) String

func (x *BufferBehavior_Bypass) String() string

func (*BufferBehavior_Bypass) Validate

func (m *BufferBehavior_Bypass) Validate() error

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

func (m *BufferBehavior_Bypass) ValidateAll() error

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

type BufferBehavior_BypassMultiError

type BufferBehavior_BypassMultiError []error

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

func (BufferBehavior_BypassMultiError) AllErrors

func (m BufferBehavior_BypassMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BufferBehavior_BypassMultiError) Error

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

type BufferBehavior_BypassValidationError

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

BufferBehavior_BypassValidationError is the validation error returned by BufferBehavior_Bypass.Validate if the designated constraints aren't met.

func (BufferBehavior_BypassValidationError) Cause

Cause function returns cause value.

func (BufferBehavior_BypassValidationError) Error

Error satisfies the builtin error interface

func (BufferBehavior_BypassValidationError) ErrorName

ErrorName returns error name.

func (BufferBehavior_BypassValidationError) Field

Field function returns field value.

func (BufferBehavior_BypassValidationError) Key

Key function returns key value.

func (BufferBehavior_BypassValidationError) Reason

Reason function returns reason value.

type BufferBehavior_Bypass_

type BufferBehavior_Bypass_ struct {
	// Never buffer, do nothing.
	Bypass *BufferBehavior_Bypass `protobuf:"bytes,2,opt,name=bypass,proto3,oneof"`
}

type BufferBehavior_FullyBuffer

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

func (*BufferBehavior_FullyBuffer) Descriptor deprecated

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

Deprecated: Use BufferBehavior_FullyBuffer.ProtoReflect.Descriptor instead.

func (*BufferBehavior_FullyBuffer) ProtoMessage

func (*BufferBehavior_FullyBuffer) ProtoMessage()

func (*BufferBehavior_FullyBuffer) ProtoReflect

func (*BufferBehavior_FullyBuffer) Reset

func (x *BufferBehavior_FullyBuffer) Reset()

func (*BufferBehavior_FullyBuffer) String

func (x *BufferBehavior_FullyBuffer) String() string

func (*BufferBehavior_FullyBuffer) Validate

func (m *BufferBehavior_FullyBuffer) Validate() error

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

func (m *BufferBehavior_FullyBuffer) ValidateAll() error

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

type BufferBehavior_FullyBufferAndAlwaysInjectContentLength

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

func (*BufferBehavior_FullyBufferAndAlwaysInjectContentLength) Descriptor deprecated

Deprecated: Use BufferBehavior_FullyBufferAndAlwaysInjectContentLength.ProtoReflect.Descriptor instead.

func (*BufferBehavior_FullyBufferAndAlwaysInjectContentLength) ProtoMessage

func (*BufferBehavior_FullyBufferAndAlwaysInjectContentLength) ProtoReflect

func (*BufferBehavior_FullyBufferAndAlwaysInjectContentLength) Reset

func (*BufferBehavior_FullyBufferAndAlwaysInjectContentLength) String

func (*BufferBehavior_FullyBufferAndAlwaysInjectContentLength) Validate

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

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

type BufferBehavior_FullyBufferAndAlwaysInjectContentLengthMultiError

type BufferBehavior_FullyBufferAndAlwaysInjectContentLengthMultiError []error

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

func (BufferBehavior_FullyBufferAndAlwaysInjectContentLengthMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BufferBehavior_FullyBufferAndAlwaysInjectContentLengthMultiError) Error

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

type BufferBehavior_FullyBufferAndAlwaysInjectContentLengthValidationError

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

BufferBehavior_FullyBufferAndAlwaysInjectContentLengthValidationError is the validation error returned by BufferBehavior_FullyBufferAndAlwaysInjectContentLength.Validate if the designated constraints aren't met.

func (BufferBehavior_FullyBufferAndAlwaysInjectContentLengthValidationError) Cause

Cause function returns cause value.

func (BufferBehavior_FullyBufferAndAlwaysInjectContentLengthValidationError) Error

Error satisfies the builtin error interface

func (BufferBehavior_FullyBufferAndAlwaysInjectContentLengthValidationError) ErrorName

ErrorName returns error name.

func (BufferBehavior_FullyBufferAndAlwaysInjectContentLengthValidationError) Field

Field function returns field value.

func (BufferBehavior_FullyBufferAndAlwaysInjectContentLengthValidationError) Key

Key function returns key value.

func (BufferBehavior_FullyBufferAndAlwaysInjectContentLengthValidationError) Reason

Reason function returns reason value.

type BufferBehavior_FullyBufferAndAlwaysInjectContentLength_

type BufferBehavior_FullyBufferAndAlwaysInjectContentLength_ struct {
	// Always buffer the entire input, and inject “content-length“,
	// overwriting any provided content-length header.
	FullyBufferAndAlwaysInjectContentLength *BufferBehavior_FullyBufferAndAlwaysInjectContentLength `` /* 131-byte string literal not displayed */
}

type BufferBehavior_FullyBufferMultiError

type BufferBehavior_FullyBufferMultiError []error

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

func (BufferBehavior_FullyBufferMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BufferBehavior_FullyBufferMultiError) Error

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

type BufferBehavior_FullyBufferValidationError

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

BufferBehavior_FullyBufferValidationError is the validation error returned by BufferBehavior_FullyBuffer.Validate if the designated constraints aren't met.

func (BufferBehavior_FullyBufferValidationError) Cause

Cause function returns cause value.

func (BufferBehavior_FullyBufferValidationError) Error

Error satisfies the builtin error interface

func (BufferBehavior_FullyBufferValidationError) ErrorName

ErrorName returns error name.

func (BufferBehavior_FullyBufferValidationError) Field

Field function returns field value.

func (BufferBehavior_FullyBufferValidationError) Key

Key function returns key value.

func (BufferBehavior_FullyBufferValidationError) Reason

Reason function returns reason value.

type BufferBehavior_FullyBuffer_

type BufferBehavior_FullyBuffer_ struct {
	// Always buffer the entire input, do not modify “content-length“.
	FullyBuffer *BufferBehavior_FullyBuffer `protobuf:"bytes,5,opt,name=fully_buffer,json=fullyBuffer,proto3,oneof"`
}

type BufferBehavior_InjectContentLengthIfNecessary

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

func (*BufferBehavior_InjectContentLengthIfNecessary) Descriptor deprecated

Deprecated: Use BufferBehavior_InjectContentLengthIfNecessary.ProtoReflect.Descriptor instead.

func (*BufferBehavior_InjectContentLengthIfNecessary) ProtoMessage

func (*BufferBehavior_InjectContentLengthIfNecessary) ProtoReflect

func (*BufferBehavior_InjectContentLengthIfNecessary) Reset

func (*BufferBehavior_InjectContentLengthIfNecessary) String

func (*BufferBehavior_InjectContentLengthIfNecessary) Validate

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

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

type BufferBehavior_InjectContentLengthIfNecessaryMultiError

type BufferBehavior_InjectContentLengthIfNecessaryMultiError []error

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

func (BufferBehavior_InjectContentLengthIfNecessaryMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BufferBehavior_InjectContentLengthIfNecessaryMultiError) Error

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

type BufferBehavior_InjectContentLengthIfNecessaryValidationError

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

BufferBehavior_InjectContentLengthIfNecessaryValidationError is the validation error returned by BufferBehavior_InjectContentLengthIfNecessary.Validate if the designated constraints aren't met.

func (BufferBehavior_InjectContentLengthIfNecessaryValidationError) Cause

Cause function returns cause value.

func (BufferBehavior_InjectContentLengthIfNecessaryValidationError) Error

Error satisfies the builtin error interface

func (BufferBehavior_InjectContentLengthIfNecessaryValidationError) ErrorName

ErrorName returns error name.

func (BufferBehavior_InjectContentLengthIfNecessaryValidationError) Field

Field function returns field value.

func (BufferBehavior_InjectContentLengthIfNecessaryValidationError) Key

Key function returns key value.

func (BufferBehavior_InjectContentLengthIfNecessaryValidationError) Reason

Reason function returns reason value.

type BufferBehavior_InjectContentLengthIfNecessary_

type BufferBehavior_InjectContentLengthIfNecessary_ struct {
	// If “content-length“ is not present, buffer the entire input,
	// inject “content-length“ header, then output.
	// If “content-length“ is already present, act like “stream_when_possible“.
	InjectContentLengthIfNecessary *BufferBehavior_InjectContentLengthIfNecessary `protobuf:"bytes,3,opt,name=inject_content_length_if_necessary,json=injectContentLengthIfNecessary,proto3,oneof"`
}

type BufferBehavior_StreamWhenPossible

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

func (*BufferBehavior_StreamWhenPossible) Descriptor deprecated

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

Deprecated: Use BufferBehavior_StreamWhenPossible.ProtoReflect.Descriptor instead.

func (*BufferBehavior_StreamWhenPossible) ProtoMessage

func (*BufferBehavior_StreamWhenPossible) ProtoMessage()

func (*BufferBehavior_StreamWhenPossible) ProtoReflect

func (*BufferBehavior_StreamWhenPossible) Reset

func (*BufferBehavior_StreamWhenPossible) String

func (*BufferBehavior_StreamWhenPossible) Validate

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

func (m *BufferBehavior_StreamWhenPossible) ValidateAll() error

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

type BufferBehavior_StreamWhenPossibleMultiError

type BufferBehavior_StreamWhenPossibleMultiError []error

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

func (BufferBehavior_StreamWhenPossibleMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BufferBehavior_StreamWhenPossibleMultiError) Error

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

type BufferBehavior_StreamWhenPossibleValidationError

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

BufferBehavior_StreamWhenPossibleValidationError is the validation error returned by BufferBehavior_StreamWhenPossible.Validate if the designated constraints aren't met.

func (BufferBehavior_StreamWhenPossibleValidationError) Cause

Cause function returns cause value.

func (BufferBehavior_StreamWhenPossibleValidationError) Error

Error satisfies the builtin error interface

func (BufferBehavior_StreamWhenPossibleValidationError) ErrorName

ErrorName returns error name.

func (BufferBehavior_StreamWhenPossibleValidationError) Field

Field function returns field value.

func (BufferBehavior_StreamWhenPossibleValidationError) Key

Key function returns key value.

func (BufferBehavior_StreamWhenPossibleValidationError) Reason

Reason function returns reason value.

type BufferBehavior_StreamWhenPossible_

type BufferBehavior_StreamWhenPossible_ struct {
	// Don't inject “content-length“ header.
	// Output immediately, buffer only if output is slower than input.
	StreamWhenPossible *BufferBehavior_StreamWhenPossible `protobuf:"bytes,1,opt,name=stream_when_possible,json=streamWhenPossible,proto3,oneof"`
}

type FileSystemBufferFilterConfig

type FileSystemBufferFilterConfig struct {

	// A configuration for an AsyncFileManager.
	//
	// If unset in route, vhost and listener, and the behavior is not “bypass“
	// in both directions, an Internal Server Error response will be sent.
	ManagerConfig *v3.AsyncFileManagerConfig `protobuf:"bytes,1,opt,name=manager_config,json=managerConfig,proto3" json:"manager_config,omitempty"`
	// An optional path to which the unlinked files should be written - this may
	// determine which physical storage device will be used.
	//
	// If unset in route, vhost and listener, will use the environment variable
	// “TMPDIR“, or, if that's also unset, will use “/tmp“.
	StorageBufferPath *wrappers.StringValue `protobuf:"bytes,2,opt,name=storage_buffer_path,json=storageBufferPath,proto3" json:"storage_buffer_path,omitempty"`
	// Optional configuration for how to buffer (or not) requests.
	// If unset in route, vhost and listener, “StreamConfig“ default values will be used
	// (with behavior “stream_when_possible“)
	Request *StreamConfig `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"`
	// Optional configuration for how to buffer (or not) responses.
	// If unset in route, vhost and listener, “StreamConfig“ default values will be used
	// (with behavior “stream_when_possible“)
	Response *StreamConfig `protobuf:"bytes,4,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

A :ref:`file system buffer <config_http_filters_file_system_buffer>` filter configuration.

Route-specific configs override only the fields they explicitly include; unset fields inherit from the vhost or listener-level config, or, if never set, and not required, use a default value.

func (*FileSystemBufferFilterConfig) Descriptor deprecated

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

Deprecated: Use FileSystemBufferFilterConfig.ProtoReflect.Descriptor instead.

func (*FileSystemBufferFilterConfig) GetManagerConfig

func (*FileSystemBufferFilterConfig) GetRequest

func (x *FileSystemBufferFilterConfig) GetRequest() *StreamConfig

func (*FileSystemBufferFilterConfig) GetResponse

func (x *FileSystemBufferFilterConfig) GetResponse() *StreamConfig

func (*FileSystemBufferFilterConfig) GetStorageBufferPath

func (x *FileSystemBufferFilterConfig) GetStorageBufferPath() *wrappers.StringValue

func (*FileSystemBufferFilterConfig) ProtoMessage

func (*FileSystemBufferFilterConfig) ProtoMessage()

func (*FileSystemBufferFilterConfig) ProtoReflect

func (*FileSystemBufferFilterConfig) Reset

func (x *FileSystemBufferFilterConfig) Reset()

func (*FileSystemBufferFilterConfig) String

func (*FileSystemBufferFilterConfig) Validate

func (m *FileSystemBufferFilterConfig) Validate() error

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

func (m *FileSystemBufferFilterConfig) ValidateAll() error

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

type FileSystemBufferFilterConfigMultiError

type FileSystemBufferFilterConfigMultiError []error

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

func (FileSystemBufferFilterConfigMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (FileSystemBufferFilterConfigMultiError) Error

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

type FileSystemBufferFilterConfigValidationError

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

FileSystemBufferFilterConfigValidationError is the validation error returned by FileSystemBufferFilterConfig.Validate if the designated constraints aren't met.

func (FileSystemBufferFilterConfigValidationError) Cause

Cause function returns cause value.

func (FileSystemBufferFilterConfigValidationError) Error

Error satisfies the builtin error interface

func (FileSystemBufferFilterConfigValidationError) ErrorName

ErrorName returns error name.

func (FileSystemBufferFilterConfigValidationError) Field

Field function returns field value.

func (FileSystemBufferFilterConfigValidationError) Key

Key function returns key value.

func (FileSystemBufferFilterConfigValidationError) Reason

Reason function returns reason value.

type StreamConfig

type StreamConfig struct {

	// Whether to bypass / stream / fully buffer / etc.
	// If unset in route, vhost and listener config, the default is “stream_when_possible“.
	Behavior *BufferBehavior `protobuf:"bytes,1,opt,name=behavior,proto3" json:"behavior,omitempty"`
	// The amount stored in the memory buffer before buffering to disk.
	// If unset in route, vhost and listener config, defaults to a hardcoded value of 1MiB
	MemoryBufferBytesLimit *wrappers.UInt64Value `` /* 131-byte string literal not displayed */
	// The maximum storage (excluding memory) to be buffered in this filter.
	// If unset in route, vhost and listener config, defaults to a hardcoded value of 32MiB
	StorageBufferBytesLimit *wrappers.UInt64Value `` /* 134-byte string literal not displayed */
	// The maximum amount that can be queued for writing to storage, above which the
	// source is requested to pause. If unset, defaults to the same value as
	// “memory_buffer_bytes_limit“.
	//
	// For example, assuming the recipient is not consuming data at all, if
	// “memory_buffer_bytes_limit“ was 32MiB, and “storage_buffer_queue_high_watermark_bytes“
	// was 64MiB, and the filesystem is backed up so writes are not occurring promptly,
	// then:
	//
	// * Any request less than 32MiB will eventually pass through without ever attempting
	//   to write to disk.
	// * Any request with over 32MiB buffered will start trying to write to disk.
	//   If it reaches (32+64)MiB buffered in memory (write to disk isn't keeping up), a high
	//   watermark signal is sent to the source.
	// * Any stream whose total size exceeds
	//   “memory_buffer_bytes_limit + storage_buffer_bytes_limit“ will provoke an error.
	//   (Note, if the recipient *is* consuming data then it is possible for such an
	//   oversized request to pass through the buffer filter, provided the recipient
	//   isn't consuming data too slowly.)
	//
	// The low watermark signal is sent when the memory buffer is at size
	// “memory_buffer_bytes_limit + (storage_buffer_queue_high_watermark_bytes / 2)“.
	StorageBufferQueueHighWatermarkBytes *wrappers.UInt64Value `` /* 177-byte string literal not displayed */
	// contains filtered or unexported fields
}

The configuration for one direction of the filter behavior.

func (*StreamConfig) Descriptor deprecated

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

Deprecated: Use StreamConfig.ProtoReflect.Descriptor instead.

func (*StreamConfig) GetBehavior

func (x *StreamConfig) GetBehavior() *BufferBehavior

func (*StreamConfig) GetMemoryBufferBytesLimit

func (x *StreamConfig) GetMemoryBufferBytesLimit() *wrappers.UInt64Value

func (*StreamConfig) GetStorageBufferBytesLimit

func (x *StreamConfig) GetStorageBufferBytesLimit() *wrappers.UInt64Value

func (*StreamConfig) GetStorageBufferQueueHighWatermarkBytes

func (x *StreamConfig) GetStorageBufferQueueHighWatermarkBytes() *wrappers.UInt64Value

func (*StreamConfig) ProtoMessage

func (*StreamConfig) ProtoMessage()

func (*StreamConfig) ProtoReflect

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

func (*StreamConfig) Reset

func (x *StreamConfig) Reset()

func (*StreamConfig) String

func (x *StreamConfig) String() string

func (*StreamConfig) Validate

func (m *StreamConfig) Validate() error

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

func (m *StreamConfig) ValidateAll() error

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

type StreamConfigMultiError

type StreamConfigMultiError []error

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

func (StreamConfigMultiError) AllErrors

func (m StreamConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StreamConfigMultiError) Error

func (m StreamConfigMultiError) Error() string

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

type StreamConfigValidationError

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

StreamConfigValidationError is the validation error returned by StreamConfig.Validate if the designated constraints aren't met.

func (StreamConfigValidationError) Cause

Cause function returns cause value.

func (StreamConfigValidationError) Error

Error satisfies the builtin error interface

func (StreamConfigValidationError) ErrorName

func (e StreamConfigValidationError) ErrorName() string

ErrorName returns error name.

func (StreamConfigValidationError) Field

Field function returns field value.

func (StreamConfigValidationError) Key

Key function returns key value.

func (StreamConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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