Documentation
¶
Index ¶
- func NewLocalRunner(programName string, programArgs ...string) pluginrpc.Runner
- func NewLocalWasmRunner(delegate wasm.Runtime, programName string, programArgs ...string) pluginrpc.Runner
- func NewWasmRunner(delegate wasm.Runtime, getData func() ([]byte, error), programName string, ...) pluginrpc.Runner
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.
func NewLocalWasmRunner ¶ added in v1.48.0
func NewLocalWasmRunner(delegate wasm.Runtime, programName string, programArgs ...string) pluginrpc.Runner
NewLocalWasmRunner returns a new pluginrpc.Runner for the local wasm file.
This is used for local Wasm plugins. The program name is the path to the Wasm file. The program args are the arguments to the program. May be empty. The Wasm file is read from the filesystem.
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.
Types ¶
This section is empty.