enginex

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package enginex builds engine result values from internal types, for internal tests that need results without running a file, and reaches engine settings that are not part of its public API. Package engine sets these functions when it is initialized; they take and return engine types as any, since this package cannot import engine.

Index

Constants

This section is empty.

Variables

View Source
var (
	// RunError returns an *engine.Error for err, raised by the entry whose
	// request is at line entryLine of file, with content src.
	RunError func(err *runerr.Error, file string, src []byte, entryLine int) any
	// ParseError returns an *engine.Error for a parse error of file.
	ParseError func(err *syntax.Error, file string, src []byte) any
	// Value returns an engine.Value holding v.
	Value func(v value.Value) any
	// SetHosts restricts the hosts an *engine.Runner may contact
	// (`sonde mcp --allow-host`): every request URL, redirect and
	// connection is checked, and the entry options that would reroute a
	// connection, send netrc credentials or write a file are refused.
	// It is kept out of engine.Options so the public API does not freeze
	// the policy's shape.
	SetHosts func(runner any, hosts *netpolicy.Policy)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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