bookclerk_plugin_destination_b2::plugin
Destination + job-handler surface for the Backblaze B2 guest.
| Item | Kind | Summary |
|---|---|---|
B2Root |
struct | Root capability for the B2 destination guest. |
destination_from |
function | Builds the destination from the instance's CONFIG and SECRETS. Nothing is sent to B2 until the first storage call. |
pub struct B2Root;
Root capability for the B2 destination guest.
Implements: PluginWorker
pub fn destination_from(
config: &ExtensibleConfig,
secrets: &ExtensibleConfig,
) -> Result<ObjectStoreDestination<B2Backend>, PluginError>
Builds the destination from the instance's CONFIG and SECRETS.
Nothing is sent to B2 until the first storage call.
config- the instance settings.secrets- the instance's sealed secrets.
Returns invalid_params for a missing or malformed setting or secret, and internal when the client cannot be constructed.
Generated from crates/bookclerk-plugins/optional/destination-b2 at main · View as Markdown