Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CompileBase64 ¶
func CompileBase64( ctx context.Context, scriptContent string, opts *Settings, ) (adapters.CompiledPlugin, error)
CompileBase64 creates a compiled Extism plugin from base64-encoded WASM content
func CompileBytes ¶
func CompileBytes( ctx context.Context, wasmBytes []byte, opts *Settings, ) (adapters.CompiledPlugin, error)
CompileBytes creates a compiled Extism plugin from raw WASM bytes
Types ¶
type Settings ¶
type Settings struct {
// EnableWASI enables WASI support in the plugin
EnableWASI bool
// RuntimeConfig allows customizing the wazero runtime configuration
RuntimeConfig wazero.RuntimeConfig
// HostFunctions are additional host functions to be registered with the plugin
HostFunctions []extismSDK.HostFunction
}
Settings holds configuration for compiling a WASM module
func WithDefaultCompileSettings ¶
func WithDefaultCompileSettings() *Settings
WithDefaultCompileSettings returns the default compilation options
Click to show internal directories.
Click to hide internal directories.