Re-exports§
pub use warpgate_api as api;
Modules§
Structs§
- File
Locator - A file system locator.
- GitHub
Locator - A GitHub release locator.
- Http
Client - An HTTP(S) client with middleware that wraps
reqwest::Client
. - Http
Downloader - A downloader that uses our internal HTTP(S) client.
- Http
Options - Configures the HTTP(S) client used for making requests.
- Id
- An identifier for plugins.
- Plugin
Container - A container around Extism’s
Plugin
andManifest
types that provides convenience methods for calling and caching functions from the WASM plugin. It also provides additional methods for easily working with WASI and virtual paths. - Plugin
Loader - A system for loading plugins from a locator strategy,
and caching the
.wasm
file to the host’s file system. - Plugin
Manifest - The
Manifest
type is used to configure the runtime and specify how to load modules. - UrlLocator
- A HTTPS URL locator.
Enums§
- Plugin
Locator - Strategies and protocols for locating plugins.
- Plugin
Locator Error - Errors during plugin locator parsing.
- Virtual
Path - A container for WASI virtual paths that can also keep a reference to the original real path.
- Warpgate
Client Error - HTTP(S) client errors.
- Warpgate
Loader Error - Loader errors.
- Warpgate
Plugin Error - Plugin/runtime errors.
- Wasm
- The
Wasm
type specifies how to access a WebAssembly module
Functions§
- create_
cache_ key - Create a SHA256 hash key based on the provided URL and seed.
- create_
http_ client - Create an HTTP(S) client that’ll be used for downloading files.
- create_
http_ client_ with_ options - Create an HTTP(S) client with the provided options, that’ll be used for downloading files.
- determine_
cache_ extension - Determine the extension to use for a cache file, based on our list of supported extensions.
- download_
from_ url_ to_ file - Download a file from the provided URL, with the provided HTTP(S) client, and save it to a destination location.
- from_
virtual_ path - Convert the provided virtual guest path to an absolute host path.
- inject_
default_ manifest_ config - Inject our default configuration into the provided plugin manifest.
This will set
plugin_id
andhost_environment
for use within PDKs. - move_
or_ unpack_ download - If the temporary file is an archive, unpack it into the destination, otherwise more the file into the destination.
- to_
virtual_ path - Convert the provided absolute host path to a virtual guest path suitable for WASI sandboxed runtimes.