Documentation
¶
Index ¶
- type Loader
- func (l Loader) Discover(ctx context.Context) ([]string, error)
- func (l Loader) EnsurePluginsDir() error
- func (l Loader) Load(ctx context.Context, filePath string) (plugin.Plugin, *capability.Manifest, error)
- func (l Loader) LoadAll(ctx context.Context) ([]plugin.Plugin, []PluginLoadResult)
- func (l Loader) Unload(ctx context.Context, plg *plugin.Plugin) error
- type PluginLoadResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (Loader) EnsurePluginsDir ¶
func (Loader) Load ¶
func (l Loader) Load( ctx context.Context, filePath string, ) (plugin.Plugin, *capability.Manifest, error)
Load loads a single .wasm plugin, along with its optional capability manifest. The returned PluginLoadResult includes the parsed manifest if one was found.
type PluginLoadResult ¶
type PluginLoadResult struct {
Plugin plugin.Plugin
Manifest *capability.Manifest
Err error
}
Click to show internal directories.
Click to hide internal directories.