wasm

package
v1.4.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func InitManager

func InitManager() (*Manager, error)

func MockManager

func MockManager(plugins map[string]*PluginInfo) (*Manager, error)

func (*Manager) ConvName

func (m *Manager) ConvName(funcName string) (string, bool)

func (*Manager) Delete

func (m *Manager) Delete(name string) error

func (*Manager) Function

func (m *Manager) Function(name string) (api.Function, error)

func (*Manager) FunctionPluginInfo

func (m *Manager) FunctionPluginInfo(funcName string) (plugin.EXTENSION_TYPE, string, string)

func (*Manager) GetPluginInfo

func (m *Manager) GetPluginInfo(pluginName string) (*PluginInfo, bool)

func (*Manager) GetPluginMeta

func (m *Manager) GetPluginMeta(pt plugin.PluginType, symbolName string) (*runtime.PluginMeta, bool)

func (*Manager) HasFunctionSet

func (m *Manager) HasFunctionSet(funcName string) bool

func (*Manager) List

func (m *Manager) List() []*PluginInfo

func (*Manager) Register

func (m *Manager) Register(p plugin.Plugin) error

type PluginInfo

type PluginInfo struct {
	runtime.PluginMeta
	Functions []string `json:"functions"`
}

func (*PluginInfo) Validate

func (p *PluginInfo) Validate(expectedName string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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