Skip to main content

GlobalOptionsBuilder

Struct GlobalOptionsBuilder 

Source
pub struct GlobalOptionsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<S: State> GlobalOptionsBuilder<S>

Source

pub fn build(self) -> GlobalOptions
where S: IsComplete,

Finish building and return the requested object

Source

pub fn kubeconfig( self, value: impl Into<PathBuf>, ) -> GlobalOptionsBuilder<SetKubeconfig<S>>
where S::Kubeconfig: IsUnset,

Optional (Some / Option setters). Flag --kubeconfig. When unset, helm reads KUBECONFIG from the environment, then ~/.kube/config, the same resolution as kubectl and kube::Client::try_default.

Source

pub fn maybe_kubeconfig( self, value: Option<impl Into<PathBuf>>, ) -> GlobalOptionsBuilder<SetKubeconfig<S>>
where S::Kubeconfig: IsUnset,

Optional (Some / Option setters). Flag --kubeconfig. When unset, helm reads KUBECONFIG from the environment, then ~/.kube/config, the same resolution as kubectl and kube::Client::try_default.

Source

pub fn kube_context( self, value: impl Into<String>, ) -> GlobalOptionsBuilder<SetKubeContext<S>>
where S::KubeContext: IsUnset,

Optional (Some / Option setters). Flag --kube-context.

Source

pub fn maybe_kube_context( self, value: Option<impl Into<String>>, ) -> GlobalOptionsBuilder<SetKubeContext<S>>
where S::KubeContext: IsUnset,

Optional (Some / Option setters). Flag --kube-context.

Source

pub fn namespace( self, value: impl Into<String>, ) -> GlobalOptionsBuilder<SetNamespace<S>>
where S::Namespace: IsUnset,

Optional (Some / Option setters). Flag --namespace.

Source

pub fn maybe_namespace( self, value: Option<impl Into<String>>, ) -> GlobalOptionsBuilder<SetNamespace<S>>
where S::Namespace: IsUnset,

Optional (Some / Option setters). Flag --namespace.

Source

pub fn kube_apiserver( self, value: impl Into<String>, ) -> GlobalOptionsBuilder<SetKubeApiserver<S>>
where S::KubeApiserver: IsUnset,

Optional (Some / Option setters). Flag --kube-apiserver.

Source

pub fn maybe_kube_apiserver( self, value: Option<impl Into<String>>, ) -> GlobalOptionsBuilder<SetKubeApiserver<S>>
where S::KubeApiserver: IsUnset,

Optional (Some / Option setters). Flag --kube-apiserver.

Source

pub fn kube_as_user( self, value: impl Into<String>, ) -> GlobalOptionsBuilder<SetKubeAsUser<S>>
where S::KubeAsUser: IsUnset,

Optional (Some / Option setters). Flag --kube-as-user.

Source

pub fn maybe_kube_as_user( self, value: Option<impl Into<String>>, ) -> GlobalOptionsBuilder<SetKubeAsUser<S>>
where S::KubeAsUser: IsUnset,

Optional (Some / Option setters). Flag --kube-as-user.

Source

pub fn kube_ca_file( self, value: impl Into<PathBuf>, ) -> GlobalOptionsBuilder<SetKubeCaFile<S>>
where S::KubeCaFile: IsUnset,

Optional (Some / Option setters). Flag --kube-ca-file.

Source

pub fn maybe_kube_ca_file( self, value: Option<impl Into<PathBuf>>, ) -> GlobalOptionsBuilder<SetKubeCaFile<S>>
where S::KubeCaFile: IsUnset,

Optional (Some / Option setters). Flag --kube-ca-file.

Source

pub fn kube_insecure_skip_tls_verify( self, value: bool, ) -> GlobalOptionsBuilder<SetKubeInsecureSkipTlsVerify<S>>
where S::KubeInsecureSkipTlsVerify: IsUnset,

Optional (Some / Option setters). Default: false.

Flag --kube-insecure-skip-tls-verify.

Source

pub fn maybe_kube_insecure_skip_tls_verify( self, value: Option<bool>, ) -> GlobalOptionsBuilder<SetKubeInsecureSkipTlsVerify<S>>
where S::KubeInsecureSkipTlsVerify: IsUnset,

Optional (Some / Option setters). Default: false.

Flag --kube-insecure-skip-tls-verify.

Source

pub fn kube_tls_server_name( self, value: impl Into<String>, ) -> GlobalOptionsBuilder<SetKubeTlsServerName<S>>
where S::KubeTlsServerName: IsUnset,

Optional (Some / Option setters). Flag --kube-tls-server-name.

Source

pub fn maybe_kube_tls_server_name( self, value: Option<impl Into<String>>, ) -> GlobalOptionsBuilder<SetKubeTlsServerName<S>>
where S::KubeTlsServerName: IsUnset,

Optional (Some / Option setters). Flag --kube-tls-server-name.

Source

pub fn kube_token( self, value: impl Into<Secret>, ) -> GlobalOptionsBuilder<SetKubeToken<S>>
where S::KubeToken: IsUnset,

Optional (Some / Option setters). Env HELM_KUBETOKEN (never argv, so it stays out of the process list).

Source

pub fn maybe_kube_token( self, value: Option<impl Into<Secret>>, ) -> GlobalOptionsBuilder<SetKubeToken<S>>
where S::KubeToken: IsUnset,

Optional (Some / Option setters). Env HELM_KUBETOKEN (never argv, so it stays out of the process list).

Source

pub fn qps(self, value: f32) -> GlobalOptionsBuilder<SetQps<S>>
where S::Qps: IsUnset,

Optional (Some / Option setters). Flag --qps.

Source

pub fn maybe_qps(self, value: Option<f32>) -> GlobalOptionsBuilder<SetQps<S>>
where S::Qps: IsUnset,

Optional (Some / Option setters). Flag --qps.

Source

pub fn burst_limit(self, value: i32) -> GlobalOptionsBuilder<SetBurstLimit<S>>
where S::BurstLimit: IsUnset,

Optional (Some / Option setters). Flag --burst-limit; Helm accepts -1 to disable throttling.

Source

pub fn maybe_burst_limit( self, value: Option<i32>, ) -> GlobalOptionsBuilder<SetBurstLimit<S>>
where S::BurstLimit: IsUnset,

Optional (Some / Option setters). Flag --burst-limit; Helm accepts -1 to disable throttling.

Source

pub fn debug(self, value: bool) -> GlobalOptionsBuilder<SetDebug<S>>
where S::Debug: IsUnset,

Optional (Some / Option setters). Default: false.

Flag --debug.

Source

pub fn maybe_debug( self, value: Option<bool>, ) -> GlobalOptionsBuilder<SetDebug<S>>
where S::Debug: IsUnset,

Optional (Some / Option setters). Default: false.

Flag --debug.

Source

pub fn color(self, value: Color) -> GlobalOptionsBuilder<SetColor<S>>
where S::Color: IsUnset,

Optional (Some / Option setters). Flag --color (--colour is the same flag).

Source

pub fn maybe_color( self, value: Option<Color>, ) -> GlobalOptionsBuilder<SetColor<S>>
where S::Color: IsUnset,

Optional (Some / Option setters). Flag --color (--colour is the same flag).

Source

pub fn registry_config( self, value: impl Into<PathBuf>, ) -> GlobalOptionsBuilder<SetRegistryConfig<S>>
where S::RegistryConfig: IsUnset,

Optional (Some / Option setters). Flag --registry-config.

Source

pub fn maybe_registry_config( self, value: Option<impl Into<PathBuf>>, ) -> GlobalOptionsBuilder<SetRegistryConfig<S>>
where S::RegistryConfig: IsUnset,

Optional (Some / Option setters). Flag --registry-config.

Source

pub fn repository_config( self, value: impl Into<PathBuf>, ) -> GlobalOptionsBuilder<SetRepositoryConfig<S>>
where S::RepositoryConfig: IsUnset,

Optional (Some / Option setters). Flag --repository-config.

Source

pub fn maybe_repository_config( self, value: Option<impl Into<PathBuf>>, ) -> GlobalOptionsBuilder<SetRepositoryConfig<S>>
where S::RepositoryConfig: IsUnset,

Optional (Some / Option setters). Flag --repository-config.

Source

pub fn repository_cache( self, value: impl Into<PathBuf>, ) -> GlobalOptionsBuilder<SetRepositoryCache<S>>
where S::RepositoryCache: IsUnset,

Optional (Some / Option setters). Flag --repository-cache.

Source

pub fn maybe_repository_cache( self, value: Option<impl Into<PathBuf>>, ) -> GlobalOptionsBuilder<SetRepositoryCache<S>>
where S::RepositoryCache: IsUnset,

Optional (Some / Option setters). Flag --repository-cache.

Source

pub fn content_cache( self, value: impl Into<PathBuf>, ) -> GlobalOptionsBuilder<SetContentCache<S>>
where S::ContentCache: IsUnset,

Optional (Some / Option setters). Flag --content-cache.

Source

pub fn maybe_content_cache( self, value: Option<impl Into<PathBuf>>, ) -> GlobalOptionsBuilder<SetContentCache<S>>
where S::ContentCache: IsUnset,

Optional (Some / Option setters). Flag --content-cache.

Source

pub fn cache_home( self, value: impl Into<PathBuf>, ) -> GlobalOptionsBuilder<SetCacheHome<S>>
where S::CacheHome: IsUnset,

Optional (Some / Option setters). Env HELM_CACHE_HOME.

Source

pub fn maybe_cache_home( self, value: Option<impl Into<PathBuf>>, ) -> GlobalOptionsBuilder<SetCacheHome<S>>
where S::CacheHome: IsUnset,

Optional (Some / Option setters). Env HELM_CACHE_HOME.

Source

pub fn config_home( self, value: impl Into<PathBuf>, ) -> GlobalOptionsBuilder<SetConfigHome<S>>
where S::ConfigHome: IsUnset,

Optional (Some / Option setters). Env HELM_CONFIG_HOME.

Source

pub fn maybe_config_home( self, value: Option<impl Into<PathBuf>>, ) -> GlobalOptionsBuilder<SetConfigHome<S>>
where S::ConfigHome: IsUnset,

Optional (Some / Option setters). Env HELM_CONFIG_HOME.

Source

pub fn data_home( self, value: impl Into<PathBuf>, ) -> GlobalOptionsBuilder<SetDataHome<S>>
where S::DataHome: IsUnset,

Optional (Some / Option setters). Env HELM_DATA_HOME.

Source

pub fn maybe_data_home( self, value: Option<impl Into<PathBuf>>, ) -> GlobalOptionsBuilder<SetDataHome<S>>
where S::DataHome: IsUnset,

Optional (Some / Option setters). Env HELM_DATA_HOME.

Source

pub fn driver(self, value: Driver) -> GlobalOptionsBuilder<SetDriver<S>>
where S::Driver: IsUnset,

Optional (Some / Option setters). Env HELM_DRIVER.

Source

pub fn maybe_driver( self, value: Option<Driver>, ) -> GlobalOptionsBuilder<SetDriver<S>>
where S::Driver: IsUnset,

Optional (Some / Option setters). Env HELM_DRIVER.

Source

pub fn driver_sql_connection_string( self, value: impl Into<Secret>, ) -> GlobalOptionsBuilder<SetDriverSqlConnectionString<S>>
where S::DriverSqlConnectionString: IsUnset,

Optional (Some / Option setters). Env HELM_DRIVER_SQL_CONNECTION_STRING.

Source

pub fn maybe_driver_sql_connection_string( self, value: Option<impl Into<Secret>>, ) -> GlobalOptionsBuilder<SetDriverSqlConnectionString<S>>
where S::DriverSqlConnectionString: IsUnset,

Optional (Some / Option setters). Env HELM_DRIVER_SQL_CONNECTION_STRING.

Source

pub fn max_history(self, value: u32) -> GlobalOptionsBuilder<SetMaxHistory<S>>
where S::MaxHistory: IsUnset,

Optional (Some / Option setters). Env HELM_MAX_HISTORY.

Source

pub fn maybe_max_history( self, value: Option<u32>, ) -> GlobalOptionsBuilder<SetMaxHistory<S>>
where S::MaxHistory: IsUnset,

Optional (Some / Option setters). Env HELM_MAX_HISTORY.

Source

pub fn plugins( self, value: impl Into<PathBuf>, ) -> GlobalOptionsBuilder<SetPlugins<S>>
where S::Plugins: IsUnset,

Optional (Some / Option setters). Env HELM_PLUGINS.

Source

pub fn maybe_plugins( self, value: Option<impl Into<PathBuf>>, ) -> GlobalOptionsBuilder<SetPlugins<S>>
where S::Plugins: IsUnset,

Optional (Some / Option setters). Env HELM_PLUGINS.

Source

pub fn no_plugins(self, value: bool) -> GlobalOptionsBuilder<SetNoPlugins<S>>
where S::NoPlugins: IsUnset,

Optional (Some / Option setters). Default: false.

Env HELM_NO_PLUGINS (1 when true).

Source

pub fn maybe_no_plugins( self, value: Option<bool>, ) -> GlobalOptionsBuilder<SetNoPlugins<S>>
where S::NoPlugins: IsUnset,

Optional (Some / Option setters). Default: false.

Env HELM_NO_PLUGINS (1 when true).

Source§

impl<S: State> GlobalOptionsBuilder<S>

Source

pub fn kube_as_group( self, items: impl IntoIterator<Item = impl Into<String>>, ) -> Self

Replaces every value of the repeated flag --kube-as-group: the groups to impersonate.

Source

pub fn add_kube_as_group(self, item: impl Into<String>) -> Self

Adds one value of the repeated flag --kube-as-group: the groups to impersonate.

Source

pub fn memory_driver_data( self, items: impl IntoIterator<Item = impl Into<PathBuf>>, ) -> Self

Replaces every value of the HELM_MEMORY_DRIVER_DATA files: the files the memory driver loads.

Source

pub fn memory_driver_file(self, item: impl Into<PathBuf>) -> Self

Adds one value of the HELM_MEMORY_DRIVER_DATA files: the files the memory driver loads.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ServiceExt for T

Source§

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,

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,

High level tracing that classifies responses using gRPC headers. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more