Documentation
¶
Overview ¶
Package wazero is the native Executor: it runs a container's wasip1 module with wazero (pure Go, no cgo), the container's rootfs mounted as the guest's "/".
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor runs modules with wazero. Compiled modules are cached by the sha256 of their bytes and memory limit, so a second container of the same image does not compile again.
type Options ¶
type Options struct {
// DefaultMemoryLimitBytes applies when a Spec sets none (default 256 MiB).
DefaultMemoryLimitBytes int64
// MaxCompiled bounds the compiled-module cache (default 64 modules).
MaxCompiled int
// Interpreter forces wazero's interpreter instead of its compiler.
Interpreter bool
}
Options configures the executor.
Click to show internal directories.
Click to hide internal directories.