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

Method default

crates/openshell-driver-podman/src/config.rs:247–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245
246impl Default for PodmanComputeConfig {
247 fn default() -> Self {
248 Self {
249 socket_path: Self::default_socket_path(),
250 default_image: openshell_core::image::default_sandbox_image(),
251 image_pull_policy: ImagePullPolicy::default(),
252 grpc_endpoint: String::new(),
253 gateway_port: openshell_core::config::DEFAULT_SERVER_PORT,
254 sandbox_ssh_socket_path: "/run/openshell/ssh.sock".to_string(),
255 network_name: DEFAULT_NETWORK_NAME.to_string(),
256 host_gateway_ip: Self::default_host_gateway_ip(),
257 stop_timeout_secs: DEFAULT_STOP_TIMEOUT_SECS,
258 supervisor_image: DEFAULT_SUPERVISOR_IMAGE.to_string(),
259 guest_tls_ca: None,
260 guest_tls_cert: None,
261 guest_tls_key: None,
262 sandbox_pids_limit: DEFAULT_SANDBOX_PIDS_LIMIT,
263 enable_bind_mounts: false,
264 health_check_interval_secs: DEFAULT_HEALTH_CHECK_INTERVAL_SECS,
265 }
266 }
267}
268
269impl std::fmt::Debug for PodmanComputeConfig {

Callers

nothing calls this directly

Calls 1

default_sandbox_imageFunction · 0.85

Tested by

no test coverage detected