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 ParseFieldFromLua(L *lua.LState, value lua.LValue, fieldDef *fields.Definition) (interface{}, error)
- func ParseLuaTableMiddleware(L *lua.LState, luaTable *lua.LTable, sectionName string) sources.Middleware
- func ParseLuaTableToSection(L *lua.LState, luaTable *lua.LTable, section schema.Section) (*values.SectionValues, error)
- func ParseNestedLuaTableMiddleware(L *lua.LState, luaTable *lua.LTable) sources.Middleware
- func ParseNestedLuaTableToValues(L *lua.LState, luaTable *lua.LTable, sectionSchema *schema.Schema) (*values.Values, error)
- func RegisterGlazedCommand(L *lua2.LState, cmd interface{})
- func SectionValuesToLuaTable(L *lua.LState, sectionValues *values.SectionValues) *lua.LTable
- func ValuesToLuaTable(L *lua.LState, parsedValues *values.Values) *lua.LTable
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 BareCommand with fields 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 fields from a Lua table.
func CallGlazedWriterCommandFromLua ¶
func CallGlazedWriterCommandFromLua(L *lua2.LState, cmd cmds.WriterCommand, luaTable *lua2.LTable) (string, error)
CallGlazedWriterCommandFromLua executes a WriterCommand with fields 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 ParseFieldFromLua ¶ added in v1.0.0
func ParseFieldFromLua(L *lua.LState, value lua.LValue, fieldDef *fields.Definition) (interface{}, error)
ParseFieldFromLua parses a Lua value into a Go value based on a field definition.
func ParseLuaTableMiddleware ¶
func ParseLuaTableMiddleware(L *lua.LState, luaTable *lua.LTable, sectionName string) sources.Middleware
ParseLuaTableMiddleware parses a Lua table into SectionValues.
func ParseLuaTableToSection ¶ added in v1.0.0
func ParseLuaTableToSection(L *lua.LState, luaTable *lua.LTable, section schema.Section) (*values.SectionValues, error)
ParseLuaTableToSection parses a Lua table into SectionValues.
func ParseNestedLuaTableMiddleware ¶
ParseNestedLuaTableMiddleware parses nested Lua tables into Values.
func ParseNestedLuaTableToValues ¶ added in v1.0.0
func ParseNestedLuaTableToValues(L *lua.LState, luaTable *lua.LTable, sectionSchema *schema.Schema) (*values.Values, error)
ParseNestedLuaTableToValues parses a nested Lua table into Values.
func RegisterGlazedCommand ¶
RegisterGlazedCommand registers a GlazeCommand, BareCommand, or WriterCommand in the Lua state
func SectionValuesToLuaTable ¶ added in v1.0.0
SectionValuesToLuaTable converts SectionValues to a Lua table.
Types ¶
This section is empty.