v2

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthLua = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLua   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Lua

type Lua struct {
	// The Lua code that Envoy will execute. This can be a very small script that
	// further loads code from disk if desired. Note that if JSON configuration is used, the code must
	// be properly escaped. YAML configuration may be easier to read since YAML supports multi-line
	// strings so complex scripts can be easily expressed inline in the configuration.
	InlineCode           string   `protobuf:"bytes,1,opt,name=inline_code,json=inlineCode,proto3" json:"inline_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Lua) Descriptor

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

func (*Lua) GetInlineCode

func (m *Lua) GetInlineCode() string

func (*Lua) Marshal

func (m *Lua) Marshal() (dAtA []byte, err error)

func (*Lua) MarshalTo

func (m *Lua) MarshalTo(dAtA []byte) (int, error)

func (*Lua) ProtoMessage

func (*Lua) ProtoMessage()

func (*Lua) Reset

func (m *Lua) Reset()

func (*Lua) Size

func (m *Lua) Size() (n int)

func (*Lua) String

func (m *Lua) String() string

func (*Lua) Unmarshal

func (m *Lua) Unmarshal(dAtA []byte) error

func (*Lua) Validate

func (m *Lua) Validate() error

Validate checks the field values on Lua with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Lua) XXX_DiscardUnknown

func (m *Lua) XXX_DiscardUnknown()

func (*Lua) XXX_Marshal

func (m *Lua) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Lua) XXX_Merge

func (m *Lua) XXX_Merge(src proto.Message)

func (*Lua) XXX_Size

func (m *Lua) XXX_Size() int

func (*Lua) XXX_Unmarshal

func (m *Lua) XXX_Unmarshal(b []byte) error

type LuaValidationError

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

LuaValidationError is the validation error returned by Lua.Validate if the designated constraints aren't met.

func (LuaValidationError) Cause

func (e LuaValidationError) Cause() error

Cause function returns cause value.

func (LuaValidationError) Error

func (e LuaValidationError) Error() string

Error satisfies the builtin error interface

func (LuaValidationError) ErrorName added in v0.7.0

func (e LuaValidationError) ErrorName() string

ErrorName returns error name.

func (LuaValidationError) Field

func (e LuaValidationError) Field() string

Field function returns field value.

func (LuaValidationError) Key

func (e LuaValidationError) Key() bool

Key function returns key value.

func (LuaValidationError) Reason

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