()
| 87 | } |
| 88 | |
| 89 | fn runtime_config() -> DockerDriverRuntimeConfig { |
| 90 | DockerDriverRuntimeConfig { |
| 91 | default_image: "image:latest".to_string(), |
| 92 | image_pull_policy: String::new(), |
| 93 | sandbox_namespace: "default".to_string(), |
| 94 | grpc_endpoint: "https://localhost:8443".to_string(), |
| 95 | network_name: DEFAULT_DOCKER_NETWORK_NAME.to_string(), |
| 96 | gateway_route: DockerGatewayRoute::Bridge { |
| 97 | bind_address: SocketAddr::new( |
| 98 | IpAddr::V4(Ipv4Addr::new(172, 18, 0, 1)), |
| 99 | DEFAULT_SERVER_PORT, |
| 100 | ), |
| 101 | host_alias_ip: IpAddr::V4(Ipv4Addr::new(172, 18, 0, 1)), |
| 102 | }, |
| 103 | ssh_socket_path: "/run/openshell/ssh.sock".to_string(), |
| 104 | stop_timeout_secs: DEFAULT_STOP_TIMEOUT_SECS, |
| 105 | log_level: "info".to_string(), |
| 106 | supervisor_bin: PathBuf::from("/tmp/openshell-sandbox"), |
| 107 | guest_tls: Some(DockerGuestTlsPaths { |
| 108 | ca: PathBuf::from("/tmp/ca.crt"), |
| 109 | cert: PathBuf::from("/tmp/tls.crt"), |
| 110 | key: PathBuf::from("/tmp/tls.key"), |
| 111 | }), |
| 112 | daemon_version: "28.0.0".to_string(), |
| 113 | supports_gpu: false, |
| 114 | allow_all_default_gpu: false, |
| 115 | sandbox_pids_limit: DEFAULT_SANDBOX_PIDS_LIMIT, |
| 116 | enable_bind_mounts: false, |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | fn json_struct(value: serde_json::Value) -> prost_types::Struct { |
| 121 | match json_value(value).kind { |
no outgoing calls
no test coverage detected