Documentation ¶
Index ¶
- func CallGlazedBareCommandFromLua(L *lua2.LState, cmd cmds.BareCommand, luaTable *lua2.LTable) error
- func CallGlazedCommandFromLua(L *lua2.LState, cmd cmds.GlazeCommand, luaTable *lua2.LTable) (*types.Table, error)
- func CallGlazedWriterCommandFromLua(L *lua2.LState, cmd cmds.WriterCommand, luaTable *lua2.LTable) (string, error)
- func GlazedTableToLuaTable(L *lua.LState, glazedTable *types.Table) *lua.LTable
- func InterfaceToLuaValue(L *lua.LState, value interface{}) lua.LValue
- func LuaCallGlazedBareCommand(L *lua2.LState) int
- func LuaCallGlazedCommand(L *lua2.LState) int
- func LuaCallGlazedWriterCommand(L *lua2.LState) int
- func LuaValueToInterface(L *lua.LState, value lua.LValue) interface{}
- func ParseLuaTableMiddleware(L *lua.LState, luaTable *lua.LTable, layerName string) middlewares.Middleware
- func ParseLuaTableToLayer(L *lua.LState, luaTable *lua.LTable, layer layers.ParameterLayer) (*layers.ParsedLayer, error)
- func ParseNestedLuaTableMiddleware(L *lua.LState, luaTable *lua.LTable) middlewares.Middleware
- func ParseNestedLuaTableToParsedLayers(L *lua.LState, luaTable *lua.LTable, parameterLayers *layers.ParameterLayers) (*layers.ParsedLayers, error)
- func ParseParameterFromLua(L *lua.LState, value lua.LValue, paramDef *parameters.ParameterDefinition) (interface{}, error)
- func ParsedLayerToLuaTable(L *lua.LState, parsedLayer *layers.ParsedLayer) *lua.LTable
- func ParsedLayersToLuaTable(L *lua.LState, parsedLayers *layers.ParsedLayers) *lua.LTable
- func RegisterGlazedCommand(L *lua2.LState, cmd interface{})
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 ¶
GlazedTableToLuaTable converts a Glazed table to a Lua table
func InterfaceToLuaValue ¶
InterfaceToLuaValue converts a Go interface{} to a Lua value
func LuaCallGlazedBareCommand ¶
LuaCallGlazedBareCommand is a Lua-callable wrapper for CallGlazedBareCommandFromLua
func LuaCallGlazedCommand ¶
LuaCallGlazedCommand is a Lua-callable wrapper for CallGlazedCommandFromLua
func LuaCallGlazedWriterCommand ¶
LuaCallGlazedWriterCommand is a Lua-callable wrapper for CallGlazedWriterCommandFromLua
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 ¶
ParsedLayerToLuaTable converts a ParsedLayer to a Lua table
func ParsedLayersToLuaTable ¶
ParsedLayersToLuaTable converts ParsedLayers to a nested Lua table
func RegisterGlazedCommand ¶
RegisterGlazedCommand registers a GlazeCommand, BareCommand, or WriterCommand in the Lua state
Types ¶
This section is empty.