package luav3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/router/cluster_specifiers/lua/v3"

Index

Variables

var File_envoy_extensions_router_cluster_specifiers_lua_v3_lua_proto protoreflect.FileDescriptor

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

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.

Source Files

lua.pb.go lua.pb.validate.go

Version
v1.32.4 (latest)
Published
Feb 3, 2025
Platform
linux/amd64
Imports
19 packages
Last checked
1 day ago

Tools for package owners.