pub enum PluginSourceInput {
LocalDir(PathBuf),
LocalArchive(PathBuf),
Url {
url: String,
sha256: Option<String>,
allow_unverified: bool,
allow_untrusted_host: bool,
allow_unsigned: bool,
},
}Expand description
What the caller pointed the installer at.
Variants§
LocalDir(PathBuf)
A local directory containing plugin.json at its root.
LocalArchive(PathBuf)
A local .zip / .tar.gz / .tgz archive containing plugin.json
(at its root, or under a single top-level directory).
Url
A URL to either a bare plugin.json or an archive containing one
(same root-or-single-subdir rule as LocalArchive). Three trust
layers, all enforced in [fetch_manifest_bundle] (see the module
docs’ “three trust layers” summary):
allow_untrusted_host: opt out of the host allowlist (bamboo_config::PluginTrustConfig::trusted_hosts) — seePluginError::UntrustedHost.allow_unsigned: opt out of requiring the bundle’s.sigto verify against a trusted key — seePluginError::UnsignedOrUntrustedSignature.sha256/allow_unverified: the checksum layer, unchanged from before EXCEPT a verified signature now also satisfies it (see [fetch_manifest_bundle]) — seePluginError::ChecksumRequired.
Trait Implementations§
Source§impl Clone for PluginSourceInput
impl Clone for PluginSourceInput
Source§fn clone(&self) -> PluginSourceInput
fn clone(&self) -> PluginSourceInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PluginSourceInput
impl RefUnwindSafe for PluginSourceInput
impl Send for PluginSourceInput
impl Sync for PluginSourceInput
impl Unpin for PluginSourceInput
impl UnsafeUnpin for PluginSourceInput
impl UnwindSafe for PluginSourceInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more