Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalRunner ¶ added in v1.48.0
NewLocalRunner returns a new pluginrpc.Runner for the local program.
The programName is the path or name of the program. Any program args are passed to the program when it is run. The programArgs may be nil. The environment is set to os.Environ().
func NewWasmRunner ¶ added in v1.44.0
func NewWasmRunner(delegate wasm.Runtime, getData func() ([]byte, error), programName string, programArgs ...string) pluginrpc.Runner
NewWasmRunner returns a new pluginrpc.Runner for the wasm.Runtime and Wasm data.
This is used for Wasm plugins. getData returns the Wasm data. The program name is the name of the source file. Must be non-empty. The program args are the arguments to the program. May be empty.
func ReadWasmFileFromOS ¶ added in v1.53.0
ReadWasmFileFromOS reads the Wasm data from the OS.
This is used for local Wasm plugins. The lookup is similar to exec.LookPath. The file must be in the local directory or in the PATH. The file is not required to be executable.
Types ¶
This section is empty.