plugin

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewPluginFunc

type NewPluginFunc func(pluginContext *types.PluginContext) (any, error)

type PluginFunc

type PluginFunc struct {
	Name         string
	IsRead       bool
	FunctionName string
	Constant     starlark.Value
}

PluginFunc is the Clace plugin function mapping to starlark function

type PluginInfo

type PluginInfo struct {
	ModuleName    string // exec
	PluginPath    string // exec.in
	FuncName      string // run
	IsRead        bool
	HandlerName   string
	Builder       NewPluginFunc
	ConstantValue starlark.Value
}

PluginFuncInfo is the Clace plugin function info for the starlark function

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