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
- A generic identifier.
- OciClient
- An OCI client that wraps
oci_client::Client. - Plugin
Container - A container around Extism’s
PluginandManifesttypes 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 plugin file (
.wasm) to the host’s file system. - Plugin
Manifest - The
Manifesttype is used to configure the runtime and specify how to load modules. - Registry
Config - Configures an individual plugin registry.
- Registry
Locator - An OCI registry locator.
- 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
Http Client Error - HTTP(S) client errors.
- Warpgate
Loader Error - Loader errors.
- Warpgate
Plugin Error - Plugin/runtime errors.
- Wasm
- The
Wasmtype specifies how to access a WebAssembly module
Constants§
- WASM_
LAYER_ MEDIA_ TYPE_ JSON - WASM_
LAYER_ MEDIA_ TYPE_ TOML - WASM_
LAYER_ MEDIA_ TYPE_ WASM - WASM_
LAYER_ MEDIA_ TYPE_ YAML
Functions§
- create_
cache_ key - Create a SHA256 hash key based on the provided value 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_idandhost_environmentfor 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.