pub struct RemoteWorkspaceConfig {
pub base_url: Option<String>,
pub template: Option<String>,
pub token_env: Option<String>,
pub idle_after_hours: Option<f64>,
}Expand description
Remote substrate (Coder-shaped) connection config (ticket
workspace-remote-coder-provider). Additive and serde-defaulted like the
rest of the config contract. The substrate token comes from the
environment variable NAMED by tokenEnv, read lazily at provision —
never a value in config, logs, or events. VPN/SSH reachability of the
substrate is an operator/network concern: no public IP is required, and
the adapter never opens one.
Fields§
§base_url: Option<String>Substrate API base URL (e.g. "https://coder.internal.example.com").
template: Option<String>The template/image id workspaces are provisioned from (pinned at
approval into workspace.provider.pinned as the remote template).
token_env: Option<String>NAME of the environment variable holding the substrate API token
(e.g. "CODER_SESSION_TOKEN") — the name only, never the value.
idle_after_hours: Option<f64>Substrate-side idle policy VALUE (ticket workspace-idle-hibernate):
hours of inactivity after which the SUBSTRATE hibernates the
workspace. kranz never schedules: the value is passed through to the
substrate at provision (when the substrate accepts an idle policy)
and recorded in workspace.provisioned’s detail; the substrate owns
the policy’s execution.
Trait Implementations§
Source§impl Clone for RemoteWorkspaceConfig
impl Clone for RemoteWorkspaceConfig
Source§fn clone(&self) -> RemoteWorkspaceConfig
fn clone(&self) -> RemoteWorkspaceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more