luarunner

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LuaRunner

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

LuaRunner embeds the Lua executable and manages script execution

func NewLuaRunner

func NewLuaRunner() (*LuaRunner, error)

NewLuaRunner initializes LuaRunner by first checking for system Lua, falling back to embedded binary if necessary

func (*LuaRunner) Cleanup

func (lr *LuaRunner) Cleanup() error

Cleanup removes temporary files

func (*LuaRunner) Run

func (lr *LuaRunner) Run(script string, envVars map[string]string) (runner.ScriptResult, error)

Run executes a Lua script and returns the result

Jump to

Keyboard shortcuts

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