pub enum DebugSessionResponse {
Push(PushDebugSession),
Pull(PullDebugSession),
Pending(PendingDebugSession),
PushTunnel(PushTunnelDebugSession),
RuntimeTunnel(RuntimeTunnelDebugSession),
}Expand description
Wire response. Discriminated by kind. Identical shape on both ends so
the CLI can deserialize a session regardless of who produced it (manager
or agent).
Variants§
Push(PushDebugSession)
Cloud credentials projected as env vars (+ optional files / setup script). The CLI execs the user’s command with the merged env.
Pull(PullDebugSession)
Pure-Kubernetes session: a self-contained kubeconfig the CLI binds to
KUBECONFIG.
Pending(PendingDebugSession)
Session creation is async. Returned for pull-mode deployments where
the agent must first open an outbound tunnel back to the manager
before the kubeconfig resolves. The CLI long-polls poll_url until
the session resolves to Pull (kubeconfig ready) or errors out.
PushTunnel(PushTunnelDebugSession)
Push-mode cloud session via a manager-hosted WebSocket tunnel.
Credentials stay on the manager; the CLI dials tunnel_url, spawns
a local HTTP proxy, and every cloud-CLI request the child process
emits is forwarded over the tunnel for the manager to re-sign with
the impersonated identity.
RuntimeTunnel(RuntimeTunnelDebugSession)
Runtime shell/exec session via an agent-hosted process tunnel.
Implementations§
Source§impl DebugSessionResponse
impl DebugSessionResponse
Sourcepub fn expires_at(&self) -> Option<&str>
pub fn expires_at(&self) -> Option<&str>
RFC3339 expiry of the underlying credentials, if the producer surfaced one. Used by the CLI’s on-disk cache to skip near-expired sessions.
Trait Implementations§
Source§impl Clone for DebugSessionResponse
impl Clone for DebugSessionResponse
Source§fn clone(&self) -> DebugSessionResponse
fn clone(&self) -> DebugSessionResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more