Documentation ¶
Index ¶
- Variables
- type LuaConfig
- func (*LuaConfig) Descriptor() ([]byte, []int)deprecated
- func (x *LuaConfig) GetDefaultCluster() string
- func (x *LuaConfig) GetSourceCode() *v3.DataSource
- func (*LuaConfig) ProtoMessage()
- func (x *LuaConfig) ProtoReflect() protoreflect.Message
- func (x *LuaConfig) Reset()
- func (x *LuaConfig) String() string
- func (m *LuaConfig) Validate() error
- func (m *LuaConfig) ValidateAll() error
- type LuaConfigMultiError
- type LuaConfigValidationError
Constants ¶
This section is empty.
Variables ¶
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) GetDefaultCluster ¶
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) Validate ¶
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 ¶
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 ¶
func (e LuaConfigValidationError) Key() bool
Key function returns key value.
func (LuaConfigValidationError) Reason ¶
func (e LuaConfigValidationError) Reason() string
Reason function returns reason value.