(
config: Config,
store: Arc<Store>,
compute: ComputeRuntime,
sandbox_index: SandboxIndex,
sandbox_watch_bus: SandboxWatchBus,
tracing_log_bus: TracingL
| 170 | #[must_use] |
| 171 | #[allow(clippy::too_many_arguments)] |
| 172 | pub fn new( |
| 173 | config: Config, |
| 174 | store: Arc<Store>, |
| 175 | compute: ComputeRuntime, |
| 176 | sandbox_index: SandboxIndex, |
| 177 | sandbox_watch_bus: SandboxWatchBus, |
| 178 | tracing_log_bus: TracingLogBus, |
| 179 | supervisor_sessions: Arc<supervisor_session::SupervisorSessionRegistry>, |
| 180 | oidc_cache: Option<Arc<auth::oidc::JwksCache>>, |
| 181 | ) -> Self { |
| 182 | let grpc_rate_limiter = multiplex::GrpcRateLimiter::from_config(&config); |
| 183 | Self { |
| 184 | config, |
| 185 | store, |
| 186 | compute, |
| 187 | sandbox_index, |
| 188 | sandbox_watch_bus, |
| 189 | tracing_log_bus, |
| 190 | telemetry: telemetry::TelemetryState::new(), |
| 191 | ssh_connections_by_token: Mutex::new(HashMap::new()), |
| 192 | ssh_connections_by_sandbox: Mutex::new(HashMap::new()), |
| 193 | settings_mutex: tokio::sync::Mutex::new(()), |
| 194 | supervisor_sessions, |
| 195 | oidc_cache, |
| 196 | sandbox_jwt_issuer: None, |
| 197 | sandbox_jwt_authenticator: None, |
| 198 | k8s_sa_authenticator: None, |
| 199 | grpc_rate_limiter, |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | /// Run the `OpenShell` server. |
nothing calls this directly
no outgoing calls
no test coverage detected