go-control-plane: github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/lua/v3 Index | Files

package envoy_extensions_filters_http_lua_v3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/lua/v3"

Index

Package Files

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

Variables

var File_envoy_extensions_filters_http_lua_v3_lua_proto protoreflect.FileDescriptor

type Lua Uses

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"`
    // Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
    // <envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
    // loaded from inline string or local files.
    //
    // Example:
    //
    // .. code-block:: yaml
    //
    //   source_codes:
    //     hello.lua:
    //       inline_string: |
    //         function envoy_on_response(response_handle)
    //           -- Do something.
    //         end
    //     world.lua:
    //       filename: /etc/lua/world.lua
    //
    SourceCodes map[string]*v3.DataSource `protobuf:"bytes,2,rep,name=source_codes,json=sourceCodes,proto3" json:"source_codes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    // contains filtered or unexported fields
}

func (*Lua) Descriptor Uses

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

Deprecated: Use Lua.ProtoReflect.Descriptor instead.

func (*Lua) GetInlineCode Uses

func (x *Lua) GetInlineCode() string

func (*Lua) GetSourceCodes Uses

func (x *Lua) GetSourceCodes() map[string]*v3.DataSource

func (*Lua) ProtoMessage Uses

func (*Lua) ProtoMessage()

func (*Lua) ProtoReflect Uses

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

func (*Lua) Reset Uses

func (x *Lua) Reset()

func (*Lua) String Uses

func (x *Lua) String() string

func (*Lua) Validate Uses

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.

type LuaPerRoute Uses

type LuaPerRoute struct {

    // Types that are assignable to Override:
    //	*LuaPerRoute_Disabled
    //	*LuaPerRoute_Name
    //	*LuaPerRoute_SourceCode
    Override isLuaPerRoute_Override `protobuf_oneof:"override"`
    // contains filtered or unexported fields
}

func (*LuaPerRoute) Descriptor Uses

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

Deprecated: Use LuaPerRoute.ProtoReflect.Descriptor instead.

func (*LuaPerRoute) GetDisabled Uses

func (x *LuaPerRoute) GetDisabled() bool

func (*LuaPerRoute) GetName Uses

func (x *LuaPerRoute) GetName() string

func (*LuaPerRoute) GetOverride Uses

func (m *LuaPerRoute) GetOverride() isLuaPerRoute_Override

func (*LuaPerRoute) GetSourceCode Uses

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

func (*LuaPerRoute) ProtoMessage Uses

func (*LuaPerRoute) ProtoMessage()

func (*LuaPerRoute) ProtoReflect Uses

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

func (*LuaPerRoute) Reset Uses

func (x *LuaPerRoute) Reset()

func (*LuaPerRoute) String Uses

func (x *LuaPerRoute) String() string

func (*LuaPerRoute) Validate Uses

func (m *LuaPerRoute) Validate() error

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

type LuaPerRouteValidationError Uses

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

LuaPerRouteValidationError is the validation error returned by LuaPerRoute.Validate if the designated constraints aren't met.

func (LuaPerRouteValidationError) Cause Uses

func (e LuaPerRouteValidationError) Cause() error

Cause function returns cause value.

func (LuaPerRouteValidationError) Error Uses

func (e LuaPerRouteValidationError) Error() string

Error satisfies the builtin error interface

func (LuaPerRouteValidationError) ErrorName Uses

func (e LuaPerRouteValidationError) ErrorName() string

ErrorName returns error name.

func (LuaPerRouteValidationError) Field Uses

func (e LuaPerRouteValidationError) Field() string

Field function returns field value.

func (LuaPerRouteValidationError) Key Uses

func (e LuaPerRouteValidationError) Key() bool

Key function returns key value.

func (LuaPerRouteValidationError) Reason Uses

func (e LuaPerRouteValidationError) Reason() string

Reason function returns reason value.

type LuaPerRoute_Disabled Uses

type LuaPerRoute_Disabled struct {
    // Disable the Lua filter for this particular vhost or route. If disabled is specified in
    // multiple per-filter-configs, the most specific one will be used.
    Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3,oneof"`
}

type LuaPerRoute_Name Uses

type LuaPerRoute_Name struct {
    // A name of a Lua source code stored in
    // :ref:`Lua.source_codes <envoy_v3_api_field_extensions.filters.http.lua.v3.Lua.source_codes>`.
    Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

type LuaPerRoute_SourceCode Uses

type LuaPerRoute_SourceCode struct {
    // A configured per-route Lua source code that can be served by RDS or provided inline.
    SourceCode *v3.DataSource `protobuf:"bytes,3,opt,name=source_code,json=sourceCode,proto3,oneof"`
}

type LuaValidationError Uses

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 Uses

func (e LuaValidationError) Cause() error

Cause function returns cause value.

func (LuaValidationError) Error Uses

func (e LuaValidationError) Error() string

Error satisfies the builtin error interface

func (LuaValidationError) ErrorName Uses

func (e LuaValidationError) ErrorName() string

ErrorName returns error name.

func (LuaValidationError) Field Uses

func (e LuaValidationError) Field() string

Field function returns field value.

func (LuaValidationError) Key Uses

func (e LuaValidationError) Key() bool

Key function returns key value.

func (LuaValidationError) Reason Uses

func (e LuaValidationError) Reason() string

Reason function returns reason value.

Package envoy_extensions_filters_http_lua_v3 imports 19 packages (graph) and is imported by 8 packages. Updated 2021-01-08. Refresh now. Tools for package owners.