luav3

package
v0.0.0-...-24151e5 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_envoy_extensions_router_cluster_specifiers_lua_v3_lua_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type LuaConfig

type LuaConfig struct {

	// The lua code that Envoy will execute to select cluster.
	SourceCode *v3.DataSource `protobuf:"bytes,1,opt,name=source_code,json=sourceCode,proto3" json:"source_code,omitempty"`
	// Default cluster. It will be used when the lua code execute failure.
	DefaultCluster string `protobuf:"bytes,2,opt,name=default_cluster,json=defaultCluster,proto3" json:"default_cluster,omitempty"`
	// contains filtered or unexported fields
}

func (*LuaConfig) Descriptor deprecated

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

Deprecated: Use LuaConfig.ProtoReflect.Descriptor instead.

func (*LuaConfig) GetDefaultCluster

func (x *LuaConfig) GetDefaultCluster() string

func (*LuaConfig) GetSourceCode

func (x *LuaConfig) GetSourceCode() *v3.DataSource

func (*LuaConfig) ProtoMessage

func (*LuaConfig) ProtoMessage()

func (*LuaConfig) ProtoReflect

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

func (*LuaConfig) Reset

func (x *LuaConfig) Reset()

func (*LuaConfig) String

func (x *LuaConfig) String() string

func (*LuaConfig) Validate

func (m *LuaConfig) Validate() error

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

func (m *LuaConfig) ValidateAll() error

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

type LuaConfigMultiError

type LuaConfigMultiError []error

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

func (LuaConfigMultiError) AllErrors

func (m LuaConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LuaConfigMultiError) Error

func (m LuaConfigMultiError) Error() string

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

type LuaConfigValidationError

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

LuaConfigValidationError is the validation error returned by LuaConfig.Validate if the designated constraints aren't met.

func (LuaConfigValidationError) Cause

func (e LuaConfigValidationError) Cause() error

Cause function returns cause value.

func (LuaConfigValidationError) Error

func (e LuaConfigValidationError) Error() string

Error satisfies the builtin error interface

func (LuaConfigValidationError) ErrorName

func (e LuaConfigValidationError) ErrorName() string

ErrorName returns error name.

func (LuaConfigValidationError) Field

func (e LuaConfigValidationError) Field() string

Field function returns field value.

func (LuaConfigValidationError) Key

Key function returns key value.

func (LuaConfigValidationError) Reason

func (e LuaConfigValidationError) 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