[][src]Struct fluvio_helm::HelmClient

#[non_exhaustive]pub struct HelmClient {}

Client to manage helm operations

Implementations

impl HelmClient[src]

pub fn new() -> Result<Self, HelmError>[src]

Creates a Rust client to manage our helm needs.

This only succeeds if the helm command can be found.

pub fn install(
    &self,
    namespace: &str,
    name: &str,
    chart: &str,
    version: Option<&str>,
    opts: &[(&str, &str)]
) -> Result<(), HelmError>
[src]

Installs the given chart under the given name.

The opts are passed to helm as --set arguments.

pub fn uninstall(
    &self,
    name: &str,
    namespace: &str,
    ignore_not_found: bool
) -> Result<(), HelmError>
[src]

Uninstalls specified chart library

pub fn repo_add(&self, chart: &str, location: &str) -> Result<(), HelmError>[src]

Adds a new helm repo with the given chart name and chart location

pub fn repo_update(&self) -> Result<(), HelmError>[src]

Updates the local helm repository

pub fn search_repo(
    &self,
    chart: &str,
    version: &str
) -> Result<Vec<Chart>, HelmError>
[src]

Searches the repo for the named helm chart

pub fn versions(&self, chart: &str) -> Result<Vec<Chart>, HelmError>[src]

Get all the available versions

pub fn chart_version_exists(
    &self,
    name: &str,
    version: &str
) -> Result<bool, HelmError>
[src]

Checks that a given version of a given chart exists in the repo.

pub fn get_installed_chart_by_name(
    &self,
    name: &str,
    namespace: &str
) -> Result<Vec<InstalledChart>, HelmError>
[src]

Returns the list of installed charts by name

pub fn get_helm_version(&self) -> Result<String, HelmError>[src]

get helm package version

Trait Implementations

impl Debug for HelmClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.