Crate bulwark_wasm_host

Source

Structs§

DecisionComponents
The primary output of a PluginInstance’s execution. Combines a Decision and a list of tags together.
ForwardedIP
Wraps an IpAddr representing the forwarded IP for the incoming request.
Plugin
A singular detection plugin and provides the interface between WASM host and guest.
PluginInstance
An instance of a Plugin, associated with a RequestContext.
PluginStdio
Wraps buffers to capture plugin stdio.
RedisInfo
Wraps a Redis connection pool and a registry of predefined Lua scripts.
RemoteIP
Wraps an IpAddr representing the remote IP for the incoming request.
RequestContext
The RequestContext provides a store of information that needs to cross the plugin sandbox boundary.
ScriptRegistry
A registry of predefined Lua scripts for execution within Redis.

Enums§

ContextInstantiationError
Returned when attempting to create a RequestContext fails.
PluginExecutionError
Returned when an attempt to execute a function within a plugin environment fails.
PluginInstantiationError
Returned when an attempt to instantiate a plugin fails.
PluginLoadError
Returned when an attempt to load a plugin fails.