pub struct KubeapiOptions {
pub cache_dir: Option<PathBuf>,
pub as_user: Option<String>,
pub as_group: Option<Vec<String>>,
pub as_uid: Option<String>,
}
Fields§
§cache_dir: Option<PathBuf>
Default cache directory
as_user: Option<String>
Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
as_group: Option<Vec<String>>
Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
as_uid: Option<String>
UID to impersonate for the operation.
Implementations§
Source§impl KubeapiOptions
impl KubeapiOptions
pub fn cache_dir(&self) -> PathBuf
pub fn discovery_cache_for_config( &self, config: &Config, ) -> Result<PathBuf, KubeconfigError>
Trait Implementations§
Source§impl Args for KubeapiOptions
impl Args for KubeapiOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for KubeapiOptions
impl Clone for KubeapiOptions
Source§fn clone(&self) -> KubeapiOptions
fn clone(&self) -> KubeapiOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KubeapiOptions
impl Debug for KubeapiOptions
Source§impl Default for KubeapiOptions
impl Default for KubeapiOptions
Source§fn default() -> KubeapiOptions
fn default() -> KubeapiOptions
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for KubeapiOptions
impl FromArgMatches for KubeapiOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for KubeapiOptions
impl RefUnwindSafe for KubeapiOptions
impl Send for KubeapiOptions
impl Sync for KubeapiOptions
impl Unpin for KubeapiOptions
impl UnwindSafe for KubeapiOptions
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> 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 more