pub struct Helm<B: Backend> { /* private fields */ }Expand description
A Helm handle: a backend plus the global options applied to every command. Cloning is cheap
(the backend is shared); the with_* methods return a modified clone.
Commands are built with their derived builders (see the crate documentation) and run with
Helm::run:
use helm_rs::Helm;
use helm_rs::command::Uninstall;
let helm = Helm::detect().await?.with_namespace("prod");
helm.run(Uninstall::builder("web").release("web-db").keep_history(true).build()).await?;Implementations§
Source§impl<B: Backend> Helm<B>
impl<B: Backend> Helm<B>
Sourcepub fn with_options(&self, options: GlobalOptions) -> Self
pub fn with_options(&self, options: GlobalOptions) -> Self
Returns a handle that uses options for every command.
Sourcepub fn with_namespace(&self, namespace: impl Into<String>) -> Self
pub fn with_namespace(&self, namespace: impl Into<String>) -> Self
Returns a handle scoped to namespace (--namespace).
Sourcepub fn options(&self) -> &GlobalOptions
pub fn options(&self) -> &GlobalOptions
The global options applied to every command.
Trait Implementations§
Auto Trait Implementations§
impl<B> Forget for Helm<B>
impl<B> Freeze for Helm<B>where
*const ArcInner<B> is !null: Freeze,
PhantomData<ArcInner<B>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<u8>: Freeze,
impl<B> Move for Helm<B>
impl<B> RefUnwindSafe for Helm<B>
impl<B> Send for Helm<B>
impl<B> Sync for Helm<B>
impl<B> Unpin for Helm<B>
impl<B> UnsafeUnpin for Helm<B>where
*const ArcInner<B> is !null: UnsafeUnpin,
PhantomData<ArcInner<B>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl<B> UnwindSafe for Helm<B>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more