wasi

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context, params ExecParams) (output []byte, err error)

Types

type CompileParams added in v0.1.3

type CompileParams struct {
	Wasm     []byte
	CacheDir string
}

type ExecParams

type ExecParams struct {
	Wasm     []byte
	Module   *Module
	Release  string
	Stdin    io.Reader
	Args     []string
	Env      map[string]string
	CacheDir string
}

type Module added in v0.6.7

type Module struct {
	wazero.CompiledModule
	wazero.Runtime
}

func Compile added in v0.1.3

func Compile(ctx context.Context, params CompileParams) (Module, error)

func (Module) Close added in v0.6.7

func (mod Module) Close(ctx context.Context) error

func (Module) Instantiate added in v0.6.7

func (mod Module) Instantiate(ctx context.Context, cfg wazero.ModuleConfig) error

Jump to

Keyboard shortcuts

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