v2

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 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 (dst *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 {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

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

func (LuaValidationError) Error

func (e LuaValidationError) Error() string

Error satisfies the builtin error interface

Jump to

Keyboard shortcuts

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