pluginrpcutil

package
v1.50.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalRunner added in v1.48.0

func NewLocalRunner(programName string, programArgs ...string) pluginrpc.Runner

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.

Jump to

Keyboard shortcuts

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