wasmcommand

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package wasmcommand adapts a WASI WebAssembly program to a Kefka command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

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

Impl runs a WASI program as a Kefka command. The program is compiled on the first call to Exec, not when the Impl is created.

func New

func New(name string, wasm []byte) *Impl

New prepares wasm to run as a command named name. Compilation errors are returned by Exec.

func (*Impl) Exec

func (i *Impl) Exec(ctx context.Context, ec *command.ExecContext, args []string) error

Exec runs the command with stdio, arguments, and filesystem from ec.

Jump to

Keyboard shortcuts

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