bookclerk_plugin_destination_b2::plugin

Development These docs follow the development version and change with every merge.

Last updated View as Markdown

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.

Structs

B2Root

pub struct B2Root;

Root capability for the B2 destination guest.

Implements: PluginWorker

Functions

destination_from

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.

Arguments

  • config - the instance settings.
  • secrets - the instance's sealed secrets.

Errors

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