Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDisallowedModuleError ¶ added in v0.20.2
Types ¶
type CachedModule ¶
type ErrDisallowedModule ¶ added in v0.20.2
type ErrDisallowedModule string
func (ErrDisallowedModule) Error ¶ added in v0.20.2
func (err ErrDisallowedModule) Error() string
func (ErrDisallowedModule) Is ¶ added in v0.20.2
func (ErrDisallowedModule) Is(err error) bool
type FromURLParams ¶ added in v0.20.8
type FromURLParams struct {
URL string
Checksum string
Insecure bool
Attrs ModuleAttrs
}
type ModuleAttrs ¶
type ModuleCache ¶
type ModuleCache struct {
Globs internal.Globs
Keys xcrypto.PublicKeySet
// contains filtered or unexported fields
}
func NewModuleCache ¶
func NewModuleCache(fsRoot string, globs internal.Globs, keys xcrypto.PublicKeySet) *ModuleCache
func (*ModuleCache) FromSource ¶
func (cache *ModuleCache) FromSource(ctx context.Context, wasm []byte, attrs ModuleAttrs) (*wasi.Module, error)
func (*ModuleCache) FromURL ¶
func (cache *ModuleCache) FromURL(ctx context.Context, params FromURLParams) (*wasi.Module, error)
Click to show internal directories.
Click to hide internal directories.