pub struct CreateAccessSessionRequest {
pub endpoint: String,
pub ttl_secs: u64,
pub local_port: Option<u16>,
}Expand description
Request to create a temporary access session for an existing tunneled service.
Used by zlayer tunnel access <endpoint> to ask the daemon to bind a local
TCP listener that proxies to a remote service. The daemon returns the local
address so the CLI can either connect directly (when the daemon and CLI
share a host) or open a second hop forwarder.
Fields§
§endpoint: StringService endpoint to access (e.g. “postgres.service.zlayer” or “host:port”). The daemon resolves this through the overlay network when configured.
ttl_secs: u64Time-to-live in seconds for the session. After this expires the listener is torn down.
local_port: Option<u16>Optional local port for the daemon to bind. None (or 0) lets the
daemon auto-assign an ephemeral port.
Trait Implementations§
Source§impl ComposeSchema for CreateAccessSessionRequest
impl ComposeSchema for CreateAccessSessionRequest
Source§impl Debug for CreateAccessSessionRequest
impl Debug for CreateAccessSessionRequest
Source§impl<'de> Deserialize<'de> for CreateAccessSessionRequest
impl<'de> Deserialize<'de> for CreateAccessSessionRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CreateAccessSessionRequest
impl RefUnwindSafe for CreateAccessSessionRequest
impl Send for CreateAccessSessionRequest
impl Sync for CreateAccessSessionRequest
impl Unpin for CreateAccessSessionRequest
impl UnsafeUnpin for CreateAccessSessionRequest
impl UnwindSafe for CreateAccessSessionRequest
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
Mutably borrows from an owned value. Read more