pub struct PodAttachOptions {
pub stdin: Option<bool>,
pub stdout: Option<bool>,
pub stderr: Option<bool>,
pub tty: Option<bool>,
pub container: Option<String>,
}
Expand description
§PodAttachOptions is the query options to a Pod’s remote attach call.
TODO: merge w/ PodExecOptions below for stdin, stdout, etc and also when we cut V2, we should export a “StreamOptions” or somesuch that contains Stdin, Stdout, Stder and TTY
Fields§
§stdin: Option<bool>
Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. +optional
stdout: Option<bool>
Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. +optional
stderr: Option<bool>
Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. +optional
tty: Option<bool>
TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. +optional
container: Option<String>
The container in which to execute the command. Defaults to only container if there is only one container in the pod. +optional
Implementations§
Source§impl PodAttachOptions
impl PodAttachOptions
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 PodAttachOptions
impl Clone for PodAttachOptions
Source§fn clone(&self) -> PodAttachOptions
fn clone(&self) -> PodAttachOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PodAttachOptions
impl Debug for PodAttachOptions
Source§impl Default for PodAttachOptions
impl Default for PodAttachOptions
Source§impl Hash for PodAttachOptions
impl Hash for PodAttachOptions
Source§impl Message for PodAttachOptions
impl Message for PodAttachOptions
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
.