pub struct PodExecOptions {
pub stdin: Option<bool>,
pub stdout: Option<bool>,
pub stderr: Option<bool>,
pub tty: Option<bool>,
pub container: Option<String>,
pub command: Vec<String>,
}
Expand description
§PodExecOptions is the query options to a Pod’s remote exec call.
TODO: This is largely identical to PodAttachOptions above, make sure they stay in sync and see about merging and also when we cut V2, we should export a “StreamOptions” or somesuch that contains Stdin, Stdout, Stder and TTY
Fields§
§stdin: Option<bool>
Redirect the standard input stream of the pod for this call. Defaults to false. +optional
stdout: Option<bool>
Redirect the standard output stream of the pod for this call. +optional
stderr: Option<bool>
Redirect the standard error stream of the pod for this call. +optional
tty: Option<bool>
TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. +optional
container: Option<String>
Container in which to execute the command. Defaults to only container if there is only one container in the pod. +optional
command: Vec<String>
Command is the remote command to execute. argv array. Not executed within a shell. +listType=atomic
Implementations§
Source§impl PodExecOptions
impl PodExecOptions
Sourcepub fn stdin(&self) -> bool
pub fn stdin(&self) -> bool
Returns the value of stdin
, or the default value if stdin
is unset.
Sourcepub fn stdout(&self) -> bool
pub fn stdout(&self) -> bool
Returns the value of stdout
, or the default value if stdout
is unset.
Trait Implementations§
Source§impl Clone for PodExecOptions
impl Clone for PodExecOptions
Source§fn clone(&self) -> PodExecOptions
fn clone(&self) -> PodExecOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PodExecOptions
impl Debug for PodExecOptions
Source§impl Default for PodExecOptions
impl Default for PodExecOptions
Source§impl Hash for PodExecOptions
impl Hash for PodExecOptions
Source§impl Message for PodExecOptions
impl Message for PodExecOptions
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.