MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / new

Method new

crates/openshell-supervisor-process/src/ssh.rs:231–250  ·  view source on GitHub ↗
(
        policy: SandboxPolicy,
        workdir: Option<String>,
        netns_fd: Option<RawFd>,
        proxy_url: Option<String>,
        ca_file_paths: Option<Arc<(PathBuf, PathBuf)>>,
        pr

Source from the content-addressed store, hash-verified

229impl SshHandler {
230 #[allow(clippy::too_many_arguments)]
231 fn new(
232 policy: SandboxPolicy,
233 workdir: Option<String>,
234 netns_fd: Option<RawFd>,
235 proxy_url: Option<String>,
236 ca_file_paths: Option<Arc<(PathBuf, PathBuf)>>,
237 provider_credentials: ProviderCredentialState,
238 user_environment: HashMap<String, String>,
239 ) -> Self {
240 Self {
241 policy,
242 workdir,
243 netns_fd,
244 proxy_url,
245 ca_file_paths,
246 provider_credentials,
247 user_environment,
248 channels: HashMap::new(),
249 }
250 }
251}
252
253impl russh::server::Handler for SshHandler {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected