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 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.Source§impl PartialEq for PodAttachOptions
impl PartialEq for PodAttachOptions
impl StructuralPartialEq for PodAttachOptions
Auto Trait Implementations§
impl Freeze for PodAttachOptions
impl RefUnwindSafe for PodAttachOptions
impl Send for PodAttachOptions
impl Sync for PodAttachOptions
impl Unpin for PodAttachOptions
impl UnsafeUnpin for PodAttachOptions
impl UnwindSafe for PodAttachOptions
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request