Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitMetadata ¶
type InitMetadata struct {
// URL is how to load a `%.wasm` file that implements a command, usually
// compiled to target WASI.
//
// If no scheme is present, this defaults to oci://, referencing an OCI
// image. The wasm is identified be ENTRYPOINT and any other files in the
// corresponding layers will be mounted read-only as the root file system.
//
// Other valid schemes are file:// for a local file or http[s]:// for one
// retrieved via HTTP. In these cases, no filesystem will be mounted.
URL string `mapstructure:"url"`
// Guest is WebAssembly binary implementing the guest, loaded from URL.
Guest []byte `mapstructure:"-"`
// GuestName is module name of the guest, loaded from URL.
GuestName string `mapstructure:"-"`
}
func GetInitMetadata ¶
GetInitMetadata returns InitMetadata from the input metadata.
Click to show internal directories.
Click to hide internal directories.