pub struct ProviderInstaller { /* private fields */ }Expand description
Provider installer that manages downloading and installing provider configs
Implementations§
Source§impl ProviderInstaller
impl ProviderInstaller
Sourcepub async fn fetch_registry(&self) -> Result<ProviderRegistry>
pub async fn fetch_registry(&self) -> Result<ProviderRegistry>
Fetch the provider registry
Sourcepub fn get_cached_registry(&self) -> Result<Option<ProviderRegistry>>
pub fn get_cached_registry(&self) -> Result<Option<ProviderRegistry>>
Get cached registry if available
Sourcepub async fn list_available(&self) -> Result<Vec<(String, ProviderMetadata)>>
pub async fn list_available(&self) -> Result<Vec<(String, ProviderMetadata)>>
List available providers
Sourcepub async fn install_provider(
&self,
provider_id: &str,
force: bool,
) -> Result<()>
pub async fn install_provider( &self, provider_id: &str, force: bool, ) -> Result<()>
Install a provider configuration
Sourcepub async fn update_provider(&self, provider_id: &str) -> Result<()>
pub async fn update_provider(&self, provider_id: &str) -> Result<()>
Update a provider configuration
Sourcepub async fn update_all_providers(&self) -> Result<()>
pub async fn update_all_providers(&self) -> Result<()>
Update all installed providers
Sourcepub fn list_installed_providers(&self) -> Result<Vec<String>>
pub fn list_installed_providers(&self) -> Result<Vec<String>>
List installed providers
Sourcepub fn uninstall_provider(&self, provider_id: &str) -> Result<()>
pub fn uninstall_provider(&self, provider_id: &str) -> Result<()>
Remove an installed provider
Auto Trait Implementations§
impl Freeze for ProviderInstaller
impl RefUnwindSafe for ProviderInstaller
impl Send for ProviderInstaller
impl Sync for ProviderInstaller
impl Unpin for ProviderInstaller
impl UnwindSafe for ProviderInstaller
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.