#[non_exhaustive]pub struct HelmClient {}Expand description
Client to manage helm operations
Implementations§
Source§impl HelmClient
impl HelmClient
Sourcepub fn new() -> Result<Self, HelmError>
pub fn new() -> Result<Self, HelmError>
Creates a Rust client to manage our helm needs.
This only succeeds if the helm command can be found.
Sourcepub fn install(&self, args: &InstallArg) -> Result<(), HelmError>
pub fn install(&self, args: &InstallArg) -> Result<(), HelmError>
Installs the given chart under the given name.
Sourcepub fn uninstall(&self, uninstall: UninstallArg) -> Result<(), HelmError>
pub fn uninstall(&self, uninstall: UninstallArg) -> Result<(), HelmError>
Uninstalls specified chart library
Sourcepub fn repo_add(&self, chart: &str, location: &str) -> Result<(), HelmError>
pub fn repo_add(&self, chart: &str, location: &str) -> Result<(), HelmError>
Adds a new helm repo with the given chart name and chart location
Sourcepub fn repo_update(&self) -> Result<(), HelmError>
pub fn repo_update(&self) -> Result<(), HelmError>
Updates the local helm repository
Sourcepub fn search_repo(
&self,
chart: &str,
version: &str,
) -> Result<Vec<Chart>, HelmError>
pub fn search_repo( &self, chart: &str, version: &str, ) -> Result<Vec<Chart>, HelmError>
Searches the repo for the named helm chart
Sourcepub fn versions(&self, chart: &str) -> Result<Vec<Chart>, HelmError>
pub fn versions(&self, chart: &str) -> Result<Vec<Chart>, HelmError>
Get all the available versions
Sourcepub fn chart_version_exists(
&self,
name: &str,
version: &str,
) -> Result<bool, HelmError>
pub fn chart_version_exists( &self, name: &str, version: &str, ) -> Result<bool, HelmError>
Checks that a given version of a given chart exists in the repo.
Sourcepub fn get_installed_chart_by_name(
&self,
name: &str,
namespace: Option<&str>,
) -> Result<Vec<InstalledChart>, HelmError>
pub fn get_installed_chart_by_name( &self, name: &str, namespace: Option<&str>, ) -> Result<Vec<InstalledChart>, HelmError>
Returns the list of installed charts by name
Sourcepub fn get_helm_version(&self) -> Result<String, HelmError>
pub fn get_helm_version(&self) -> Result<String, HelmError>
get helm package version
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HelmClient
impl RefUnwindSafe for HelmClient
impl Send for HelmClient
impl Sync for HelmClient
impl Unpin for HelmClient
impl UnwindSafe for HelmClient
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