pub struct CliOpts {
pub kubeconfig: Option<PathBuf>,
pub context: Option<String>,
pub namespace: Vec<String>,
pub selector: Option<String>,
pub utilization: bool,
pub show_zero: bool,
pub used_mode: UsedMode,
pub precheck: bool,
pub accept_invalid_certs: bool,
pub resource_name: Vec<String>,
pub group_by: Vec<GroupBy>,
pub output: Output,
}Fields§
§kubeconfig: Option<PathBuf>Path to the kubeconfig file to use for requests to kubernetes cluster
context: Option<String>The name of the kubeconfig context to use
namespace: Vec<String>Filter pods by namespace(s), by default pods in all namespaces are listed (comma separated list or multiple calls)
selector: Option<String>Show only nodes match this label selector
utilization: boolForce to retrieve utilization (for cpu and memory), requires having metrics-server https://github.com/kubernetes-sigs/metrics-server
show_zero: boolShow lines with zero requested AND zero limit AND zero allocatable,
OR pods with unset requested AND limit for cpu and memory
used_mode: UsedModeThe way to compute the used part for free (allocatable - used)
precheck: boolPre-check access and refresh token on kubeconfig by running kubectl cluster-info
accept_invalid_certs: boolAccept invalid certificates (dangerous)
resource_name: Vec<String>Filter resources shown by name(s), by default all resources are listed (comma separated list or multiple calls)
group_by: Vec<GroupBy>Group information in a hierarchical manner; defaults to -g resource,node,pod (comma-separated list or multiple calls)
output: OutputOutput format
Trait Implementations§
Source§impl Args for CliOpts
impl Args for CliOpts
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for CliOpts
impl CommandFactory for CliOpts
Source§impl FromArgMatches for CliOpts
impl FromArgMatches for CliOpts
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>
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>
ArgMatches to self.Source§impl Parser for CliOpts
impl Parser for CliOpts
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CliOpts
impl RefUnwindSafe for CliOpts
impl Send for CliOpts
impl Sync for CliOpts
impl Unpin for CliOpts
impl UnwindSafe for CliOpts
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
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>
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>
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