lua

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallGlazedBareCommandFromLua

func CallGlazedBareCommandFromLua(L *lua2.LState, cmd cmds.BareCommand, luaTable *lua2.LTable) error

CallGlazedBareCommandFromLua executes a BareCcommand with parameters from a Lua table

func CallGlazedCommandFromLua

func CallGlazedCommandFromLua(L *lua2.LState, cmd cmds.GlazeCommand, luaTable *lua2.LTable) (*types.Table, error)

CallGlazedCommandFromLua executes a GlazeCommand with parameters from a Lua table

func CallGlazedWriterCommandFromLua

func CallGlazedWriterCommandFromLua(L *lua2.LState, cmd cmds.WriterCommand, luaTable *lua2.LTable) (string, error)

CallGlazedWriterCommandFromLua executes a WriterCommand with parameters from a Lua table

func GlazedTableToLuaTable

func GlazedTableToLuaTable(L *lua.LState, glazedTable *types.Table) *lua.LTable

GlazedTableToLuaTable converts a Glazed table to a Lua table

func InterfaceToLuaValue

func InterfaceToLuaValue(L *lua.LState, value interface{}) lua.LValue

InterfaceToLuaValue converts a Go interface{} to a Lua value

func LuaCallGlazedBareCommand

func LuaCallGlazedBareCommand(L *lua2.LState) int

LuaCallGlazedBareCommand is a Lua-callable wrapper for CallGlazedBareCommandFromLua

func LuaCallGlazedCommand

func LuaCallGlazedCommand(L *lua2.LState) int

LuaCallGlazedCommand is a Lua-callable wrapper for CallGlazedCommandFromLua

func LuaCallGlazedWriterCommand

func LuaCallGlazedWriterCommand(L *lua2.LState) int

LuaCallGlazedWriterCommand is a Lua-callable wrapper for CallGlazedWriterCommandFromLua

func LuaValueToInterface

func LuaValueToInterface(L *lua.LState, value lua.LValue) interface{}

func ParseLuaTableMiddleware

func ParseLuaTableMiddleware(L *lua.LState, luaTable *lua.LTable, layerName string) middlewares.Middleware

Middleware to parse Lua table into a ParsedLayer

func ParseLuaTableToLayer

func ParseLuaTableToLayer(L *lua.LState, luaTable *lua.LTable, layer layers.ParameterLayer) (*layers.ParsedLayer, error)

ParseLuaTableToLayer parses a Lua table into a ParsedLayer

func ParseNestedLuaTableMiddleware

func ParseNestedLuaTableMiddleware(L *lua.LState, luaTable *lua.LTable) middlewares.Middleware

Middleware to parse nested Lua table into ParsedLayers

func ParseNestedLuaTableToParsedLayers

func ParseNestedLuaTableToParsedLayers(L *lua.LState, luaTable *lua.LTable, parameterLayers *layers.ParameterLayers) (*layers.ParsedLayers, error)

ParseNestedLuaTableToParsedLayers parses a nested Lua table into ParsedLayers

func ParseParameterFromLua

func ParseParameterFromLua(L *lua.LState, value lua.LValue, paramDef *parameters.ParameterDefinition) (interface{}, error)

ParseParameterFromLua parses a Lua value into a Go value based on the parameter definition

func ParsedLayerToLuaTable

func ParsedLayerToLuaTable(L *lua.LState, parsedLayer *layers.ParsedLayer) *lua.LTable

ParsedLayerToLuaTable converts a ParsedLayer to a Lua table

func ParsedLayersToLuaTable

func ParsedLayersToLuaTable(L *lua.LState, parsedLayers *layers.ParsedLayers) *lua.LTable

ParsedLayersToLuaTable converts ParsedLayers to a nested Lua table

func RegisterGlazedCommand

func RegisterGlazedCommand(L *lua2.LState, cmd interface{})

RegisterGlazedCommand registers a GlazeCommand, BareCommand, or WriterCommand in the Lua state

Types

This section is empty.

Jump to

Keyboard shortcuts

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