file_basedv3

package
v0.0.0-...-63d0b4a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_key_value_file_based_v3_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FileBasedKeyValueStoreConfig

type FileBasedKeyValueStoreConfig struct {

	// The filename to read the keys and values from, and write the keys and
	// values to.
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	// The interval at which the key value store should be flushed to the file.
	FlushInterval *durationpb.Duration `protobuf:"bytes,2,opt,name=flush_interval,json=flushInterval,proto3" json:"flush_interval,omitempty"`
	// The maximum number of entries to cache, or 0 to allow for unlimited entries.
	// Defaults to 1000 if not present.
	MaxEntries *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty"`
	// contains filtered or unexported fields
}

[#extension: envoy.key_value.file_based] This is configuration to flush a key value store out to disk.

func (*FileBasedKeyValueStoreConfig) Descriptor deprecated

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

Deprecated: Use FileBasedKeyValueStoreConfig.ProtoReflect.Descriptor instead.

func (*FileBasedKeyValueStoreConfig) GetFilename

func (x *FileBasedKeyValueStoreConfig) GetFilename() string

func (*FileBasedKeyValueStoreConfig) GetFlushInterval

func (x *FileBasedKeyValueStoreConfig) GetFlushInterval() *durationpb.Duration

func (*FileBasedKeyValueStoreConfig) GetMaxEntries

func (*FileBasedKeyValueStoreConfig) ProtoMessage

func (*FileBasedKeyValueStoreConfig) ProtoMessage()

func (*FileBasedKeyValueStoreConfig) ProtoReflect

func (*FileBasedKeyValueStoreConfig) Reset

func (x *FileBasedKeyValueStoreConfig) Reset()

func (*FileBasedKeyValueStoreConfig) String

func (*FileBasedKeyValueStoreConfig) Validate

func (m *FileBasedKeyValueStoreConfig) Validate() error

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

func (m *FileBasedKeyValueStoreConfig) ValidateAll() error

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

type FileBasedKeyValueStoreConfigMultiError

type FileBasedKeyValueStoreConfigMultiError []error

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

func (FileBasedKeyValueStoreConfigMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (FileBasedKeyValueStoreConfigMultiError) Error

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

type FileBasedKeyValueStoreConfigValidationError

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

FileBasedKeyValueStoreConfigValidationError is the validation error returned by FileBasedKeyValueStoreConfig.Validate if the designated constraints aren't met.

func (FileBasedKeyValueStoreConfigValidationError) Cause

Cause function returns cause value.

func (FileBasedKeyValueStoreConfigValidationError) Error

Error satisfies the builtin error interface

func (FileBasedKeyValueStoreConfigValidationError) ErrorName

ErrorName returns error name.

func (FileBasedKeyValueStoreConfigValidationError) Field

Field function returns field value.

func (FileBasedKeyValueStoreConfigValidationError) Key

Key function returns key value.

func (FileBasedKeyValueStoreConfigValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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