pluginpdk

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pluginpdk provides helpers for honey WASM plugins built with the Extism Go PDK.

Recipe KV (stepkv) is optional per plugin and per recipe run:

  • plugin.yaml: allow_kv: true
  • recipe step or defaults: kv_tunnel: true

Without both, KV* functions return an error from the host (e.g. "kv not available for this call"). RemoteExec/RemoteUpload/RemoteStat require allow_remote_exec / allow_sftp in plugin.yaml. PostgresQuery/PostgresExec require allow_postgres in plugin.yaml. Keys are shared with remote command/script steps that use HONEY_KV_URL on the same cue-exec run.

Build plugins for WASI:

GOOS=wasip1 GOARCH=wasm go build -buildmode=c-shared -o plugin.wasm .

Example recipe: examples/recipe/echo_plugin_kv_demo.cue Reference plugin: examples/plugins/echo/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KVDelete

func KVDelete(string) error

KVDelete removes key (WASM build only).

func KVGet

func KVGet(string) (string, bool, error)

KVGet reads a key from the recipe stepkv store (WASM build only).

func KVPut

func KVPut(string, string) error

KVPut stores value under key (WASM build only).

Types

This section is empty.

Jump to

Keyboard shortcuts

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