pluginrpcutil

package
v1.76.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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