lua

package
v0.0.0-...-692316b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package lua provides Lua bindings for the kairo service layer This is the primary extensibility interface for plugins

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine manages the Lua runtime and plugin execution

func NewEngine

func NewEngine(svc service.TaskService, hks *hooks.Manager) *Engine

NewEngine creates a new Lua engine with the given service and hooks

func (*Engine) RunFile

func (e *Engine) RunFile(filePath string) (lua.LValue, error)

RunFile executes a Lua file in a sandboxed environment with kairo bindings

func (*Engine) SetTimeout

func (e *Engine) SetTimeout(d time.Duration)

SetTimeout sets the execution timeout for plugin code

func (*Engine) SetupKairoAPI

func (e *Engine) SetupKairoAPI(L *lua.LState)

SetupKairoAPI sets up the kairo module and API in the given Lua state

Jump to

Keyboard shortcuts

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