lua

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 17 Imported by: 2

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 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

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 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

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

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

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

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

func SectionValuesToLuaTable added in v1.0.0

func SectionValuesToLuaTable(L *lua.LState, sectionValues *values.SectionValues) *lua.LTable

SectionValuesToLuaTable converts SectionValues to a Lua table.

func ValuesToLuaTable added in v1.0.0

func ValuesToLuaTable(L *lua.LState, parsedValues *values.Values) *lua.LTable

ValuesToLuaTable converts Values to a nested Lua table.

Types

This section is empty.

Jump to

Keyboard shortcuts

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