pluginrpcutil

package
v1.61.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 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. 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

func ReadWasmFileFromOS(name string) ([]byte, error)

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.

Jump to

Keyboard shortcuts

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