Help us shape the future of Go! Take the 2026 Go Developer Survey

runtime

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadModuleFunc

type LoadModuleFunc func() (starlark.StringDict, error)

LoadModuleFunc is a concurrency-safe and idempotent function that returns the module when is called from the `load` funcion.

type Runtime

type Runtime struct {
	Terraform *types.Terraform
	// contains filtered or unexported fields
}

Runtime represents the AsCode runtime, it defines the available modules, the predeclared globals and handles how the `load` function behaves.

func NewRuntime

func NewRuntime(pm *terraform.PluginManager) *Runtime

NewRuntime returns a new Runtime for the given terraform.PluginManager.

func (*Runtime) ExecFile

func (r *Runtime) ExecFile(filename string) (starlark.StringDict, error)

ExecFile parses, resolves, and executes a Starlark file.

func (*Runtime) REPL

func (r *Runtime) REPL()

REPL executes a read, eval, print loop.

Jump to

Keyboard shortcuts

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