Struct kube_client::api::AttachParams
source · [−]pub struct AttachParams {
pub container: Option<String>,
pub stdin: bool,
pub stdout: bool,
pub stderr: bool,
pub tty: bool,
pub max_stdin_buf_size: Option<usize>,
pub max_stdout_buf_size: Option<usize>,
pub max_stderr_buf_size: Option<usize>,
}client and ws only.Expand description
Parameters for attaching to a container in a Pod.
- One of
stdin,stdout, orstderrmust betrue. stderrandttycannot both betruebecause multiplexing is not supported with TTY.
Fields
container: Option<String>The name of the container to attach. Defaults to the only container if there is only one container in the pod.
stdin: boolAttach to the container’s standard input. Defaults to false.
Call AttachedProcess::stdin to obtain a writer.
stdout: boolAttach to the container’s standard output. Defaults to true.
Call AttachedProcess::stdout to obtain a reader.
stderr: boolAttach to the container’s standard error. Defaults to true.
Call AttachedProcess::stderr to obtain a reader.
tty: boolAllocate TTY. Defaults to false.
NOTE: Terminal resizing is not implemented yet.
max_stdin_buf_size: Option<usize>The maximum amount of bytes that can be written to the internal stdin
pipe before the write returns Poll::Pending.
Defaults to 1024.
This is not sent to the server.
max_stdout_buf_size: Option<usize>The maximum amount of bytes that can be written to the internal stdout
pipe before the write returns Poll::Pending.
Defaults to 1024.
This is not sent to the server.
max_stderr_buf_size: Option<usize>The maximum amount of bytes that can be written to the internal stderr
pipe before the write returns Poll::Pending.
Defaults to 1024.
This is not sent to the server.
Implementations
sourceimpl AttachParams
impl AttachParams
sourcepub fn interactive_tty() -> AttachParams
pub fn interactive_tty() -> AttachParams
Default parameters for an tty exec with stdin and stdout
sourcepub fn container<T>(self, container: T) -> AttachParams where
T: Into<String>,
pub fn container<T>(self, container: T) -> AttachParams where
T: Into<String>,
Specify the container to execute in.
sourcepub fn stdin(self, enable: bool) -> AttachParams
pub fn stdin(self, enable: bool) -> AttachParams
Set stdin field.
sourcepub fn stdout(self, enable: bool) -> AttachParams
pub fn stdout(self, enable: bool) -> AttachParams
Set stdout field.
sourcepub fn stderr(self, enable: bool) -> AttachParams
pub fn stderr(self, enable: bool) -> AttachParams
Set stderr field.
sourcepub fn tty(self, enable: bool) -> AttachParams
pub fn tty(self, enable: bool) -> AttachParams
Set tty field.
sourcepub fn max_stdin_buf_size(self, size: usize) -> AttachParams
pub fn max_stdin_buf_size(self, size: usize) -> AttachParams
Set max_stdin_buf_size field.
sourcepub fn max_stdout_buf_size(self, size: usize) -> AttachParams
pub fn max_stdout_buf_size(self, size: usize) -> AttachParams
Set max_stdout_buf_size field.
sourcepub fn max_stderr_buf_size(self, size: usize) -> AttachParams
pub fn max_stderr_buf_size(self, size: usize) -> AttachParams
Set max_stderr_buf_size field.
Trait Implementations
sourceimpl Debug for AttachParams
impl Debug for AttachParams
sourceimpl Default for AttachParams
impl Default for AttachParams
sourcepub fn default() -> AttachParams
pub fn default() -> AttachParams
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AttachParams
impl Send for AttachParams
impl Sync for AttachParams
impl Unpin for AttachParams
impl UnwindSafe for AttachParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more