pub struct SetupConnectionRequest {
pub target: String,
pub user: String,
pub env: HashMap<String, String>,
pub command: String,
pub argv: Vec<String>,
pub window_rows: i32,
pub window_cols: i32,
pub nopty: bool,
pub cwd: String,
pub cwd_pid: i32,
}
Expand description
Request to set up a connection to a container. This must be the first message sent to the server from the client.
Fields§
§target: String
Target container. “vm_shell” is a special value to get a VM shell.
user: String
User to execute the target program.
env: HashMap<String, String>
Map of environment variables to forward.
command: String
Deprecated. Target command. Empty indicates a login shell.
argv: Vec<String>
Argv of the target program to run. Empty indicates a login shell.
window_rows: i32
Initial window size (rows) of the pty.
window_cols: i32
Initial window size (cols) of the pty.
nopty: bool
True if using a noninteractive client and a pty should not be allocated. The logic here is inverted to keep backwards compatibility with the current behavior (always allocate a pty).
cwd: String
Optional: directory to set for current working directory.
cwd_pid: i32
Optional: use /proc/<cwd_pid>/cwd for current working directory.
Trait Implementations§
Source§impl Clone for SetupConnectionRequest
impl Clone for SetupConnectionRequest
Source§fn clone(&self) -> SetupConnectionRequest
fn clone(&self) -> SetupConnectionRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SetupConnectionRequest
impl Debug for SetupConnectionRequest
Source§impl Default for SetupConnectionRequest
impl Default for SetupConnectionRequest
Source§impl Message for SetupConnectionRequest
impl Message for SetupConnectionRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.