Help us shape the future of Go! Take the 2026 Go Developer Survey

plugin

package
v0.20.9 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginInfo

type PluginInfo struct {
	ModuleName    string // store
	PluginPath    string // store.in
	FuncName      string // run
	IsRead        bool
	HandlerName   string // "" marks a module constant
	ConstantValue starlark.Value
	// RequiresAuth marks a privileged system plugin that anonymous callers may
	// not invoke unless security.unsafe_allow_system_plugins_anon is set
	RequiresAuth bool
	// Remote marks a function served by an out-of-process plugin provider;
	// the call is dispatched over gRPC to the provider named by ProviderName.
	// Otherwise the function is served by the in-process provider of that
	// name, through the direct value bridge
	Remote       bool
	ProviderName string
}

PluginInfo is the info for one plugin module function (or constant), used to build the hooked Starlark module at load time. All plugins are SDK plugins (pkg/plugin ModuleDef); Remote selects the dispatch transport.

type PluginMap

type PluginMap map[string]*PluginInfo

PluginMap is the plugin function mapping to PluginFuncs

Jump to

Keyboard shortcuts

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