MCPcopy Create free account

hub / github.com/NVIDIA/OpenShell / functions

Functions9,017 in github.com/NVIDIA/OpenShell

↓ 15 callersMethodsender
Get a sender handle for dispatching events from background tasks.
crates/openshell-tui/src/event.rs:120
↓ 14 callersFunctionempty_request
(path: &str)
crates/openshell-server/src/multiplex.rs:1393
↓ 14 callersMethodensure_current
(&self)
crates/openshell-supervisor-network/src/opa.rs:96
↓ 14 callersMethodid
(&self)
crates/openshell-providers/src/lib.rs:88
↓ 14 callersFunctionidentity_with_roles_and_scopes
(roles: &[&str], scopes: &[&str])
crates/openshell-server/src/auth/authz.rs:161
↓ 14 callersFunctioninstall_fake_ssh
(dir: &TempDir)
crates/openshell-cli/tests/sandbox_create_lifecycle_integration.rs:730
↓ 14 callersFunctionl7_jsonrpc_input
(host: &str, port: u16, path: &str, method: &str)
crates/openshell-supervisor-network/src/opa.rs:2126
↓ 14 callersFunctionload
Load and validate a TOML config file. Returns `Ok(ConfigFile::default())` for an empty file (the gateway then falls back entirely to CLI/env/built-in
crates/openshell-server/src/config_file.rs:195
↓ 14 callersFunctionload_symbol
(library: &'static Library, name: &[u8], path: &Path)
crates/openshell-driver-vm/src/ffi.rs:216
↓ 14 callersFunctionmake_context
(env: HashMap<String, String>)
crates/openshell-sandbox/src/google_cloud_metadata.rs:327
↓ 14 callersFunctionparse_http_request
Parse one HTTP/1.1 request from the stream. Reads one byte at a time to stop exactly at the `\r\n\r\n` header terminator. A multi-byte read could co
crates/openshell-supervisor-network/src/l7/rest.rs:138
↓ 14 callersFunctionplatform_event
(source: &str, event_type: &str, reason: &str, message: String)
crates/openshell-driver-vm/src/driver.rs:5042
↓ 14 callersMethodregister
(&mut self, plugin: P)
crates/openshell-providers/src/lib.rs:127
↓ 14 callersFunctionresolve_and_check_allowed_ips
Resolve a host:port using sandbox `/etc/hosts` first (when available), then validate resolved addresses against a CIDR/IP allowlist. Rejects loopback
crates/openshell-supervisor-network/src/proxy.rs:2622
↓ 14 callersMethodset_message
Set message.
crates/openshell-ocsf/src/events/base_event.rs:172
↓ 14 callersFunctiontest_config
Shared defaults for integration tests. Note: `keep` is `true` here (most tests expect persistent sandboxes) while `SandboxCreateConfig::default()` set
crates/openshell-cli/tests/sandbox_create_lifecycle_integration.rs:1106
↓ 14 callersFunctiontest_env
(fake_ssh_dir: &TempDir, xdg_dir: &TempDir)
crates/openshell-cli/tests/sandbox_create_lifecycle_integration.rs:1047
↓ 14 callersFunctiontest_policy_with_rule
(rule_name: &str, host: &str)
crates/openshell-server/src/grpc/policy.rs:4368
↓ 14 callersFunctionunique_temp_dir
()
crates/openshell-driver-vm/src/driver.rs:6742
↓ 14 callersMethodunmapped
(mut self, key: &str, value: impl Into<serde_json::Value>)
crates/openshell-ocsf/src/builders/base.rs:42
↓ 14 callersFunctionvalidate_specific_gpu_device_request
Validate a compute-driver GPU request against driver-owned specific devices. Drivers call this when a sandbox request combines portable GPU requireme
crates/openshell-core/src/gpu.rs:314
↓ 13 callersFunction_make_mock_transport
Build an httpx.MockTransport that serves OIDC discovery + token refresh from an in-memory script. `refresh_responses` is consumed in order ac
python/openshell/sandbox_test.py:532
↓ 13 callersFunctionbuild_filter
(allow_inet: bool)
crates/openshell-supervisor-process/src/sandbox/linux/seccomp.rs:83
↓ 13 callersFunctioncheck
(ret: i32, func: &'static str)
crates/openshell-driver-vm/src/runtime.rs:1364
↓ 13 callersFunctionconfig_file_from_toml
(toml: &str)
crates/openshell-server/src/cli.rs:1111
↓ 13 callersMethoddownload
Download files from the sandbox via `openshell sandbox download`. # Arguments `sandbox_path` — Path inside the sandbox to download. `local_dest` — L
e2e/rust/src/harness/sandbox.rs:415
↓ 13 callersFunctionflavor_headers
()
crates/openshell-sandbox/src/google_cloud_metadata.rs:341
↓ 13 callersFunctionget_sandbox_policy
(state: &Arc<ServerState>, sandbox_id: &str)
crates/openshell-server/src/grpc/policy.rs:4429
↓ 13 callersFunctiongpu_resources
(count: Option<u32>)
crates/openshell-driver-vm/src/driver.rs:5189
↓ 13 callersFunctionhandle_attach_sandbox_provider
( state: &Arc<ServerState>, request: Request<AttachSandboxProviderRequest>, )
crates/openshell-server/src/grpc/sandbox.rs:290
↓ 13 callersFunctionjson_struct
(value: serde_json::Value)
crates/openshell-driver-docker/src/tests.rs:120
↓ 13 callersFunctionload_gateway_metadata
(name: &str)
crates/openshell-bootstrap/src/metadata.rs:213
↓ 13 callersFunctionmark_progress_active
( metadata: &mut HashMap<String, String, S>, step: &'static str, )
crates/openshell-core/src/progress.rs:27
↓ 13 callersMethodname
(&self)
crates/openshell-supervisor-process/src/netns/mod.rs:204
↓ 13 callersFunctionrelay_http_request_with_options_guarded
( req: &L7Request, client: &mut C, upstream: &mut U, options: RelayRequestOptions<'_>, )
crates/openshell-supervisor-network/src/l7/rest.rs:432
↓ 13 callersFunctionrelay_response
( request_method: &str, upstream: &mut U, client: &mut C, options: RelayResponseOptions, )
crates/openshell-supervisor-network/src/l7/rest.rs:1917
↓ 13 callersMethodresolve
(self)
crates/openshell-router/src/config.rs:97
↓ 13 callersFunctionrun_cli
Run an `openshell` CLI command and return the result.
e2e/rust/tests/live_policy_update.rs:144
↓ 13 callersFunctiontest_provider
(name: &str, provider_type: &str)
crates/openshell-server/src/grpc/sandbox.rs:2240
↓ 13 callersFunctiontest_runtime
(driver: SharedComputeDriver)
crates/openshell-server/src/compute/mod.rs:2343
↓ 13 callersFunctiontest_sandbox
( id: &str, name: &str, policy: ProtoSandboxPolicy, providers: Vec<String>,
crates/openshell-server/src/grpc/policy.rs:4387
↓ 13 callersFunctionupsert_env
(env: &mut Vec<serde_json::Value>, name: &str, value: &str)
crates/openshell-driver-kubernetes/src/driver.rs:2079
↓ 12 callersMethodadd_unmapped
Add an unmapped field.
crates/openshell-ocsf/src/events/base_event.rs:192
↓ 12 callersFunctioncdi_devices_config
(device_ids: &[&str])
crates/openshell-driver-docker/src/tests.rs:52
↓ 12 callersFunctioncentered_rect
Center a popup rectangle within `area` using absolute width and height (in terminal columns/rows).
crates/openshell-tui/src/ui/mod.rs:504
↓ 12 callersFunctiondetect_inference_pattern
Check if an HTTP request matches a known inference API pattern. Path globs support two wildcard shapes (one per pattern, not both): - **Trailing `/*`
crates/openshell-supervisor-network/src/l7/inference.rs:151
↓ 12 callersFunctiondriver_gpu_requirements
( resources: Option<&DriverResourceRequirements>, )
crates/openshell-core/src/gpu.rs:55
↓ 12 callersFunctionemit_protocol_failure
(host: &str, port: u16, policy_name: &str, failure_class: &str)
crates/openshell-supervisor-network/src/l7/websocket.rs:1082
↓ 12 callersFunctiongateway_add
( endpoint: &str, name: Option<&str>, remote: Option<&str>, local: bool, oidc_issuer: Opti
crates/openshell-cli/src/run.rs:874
↓ 12 callersMethodlist
List objects by type.
crates/openshell-server/src/persistence/mod.rs:306
↓ 12 callersFunctionmake_provider
(name: &str, provider_type: &str, key_name: &str, key_value: &str)
crates/openshell-server/src/inference.rs:1043
↓ 12 callersFunctionparse_body_length
Parse Content-Length or Transfer-Encoding from HTTP headers. Per RFC 7230 Section 3.3.3, rejects requests containing both `Content-Length` and `Trans
crates/openshell-supervisor-network/src/l7/rest.rs:1691
↓ 12 callersFunctionprotocol_failure_class
(error: &miette::Report)
crates/openshell-supervisor-network/src/l7/websocket.rs:1051
↓ 12 callersMethodpublish_platform_event
(&self, sandbox_id: String, event: PlatformEvent)
crates/openshell-driver-vm/src/driver.rs:2958
↓ 12 callersMethodquery_endpoint_config
Query the L7 endpoint config for a matched policy and host:port. After L4 evaluation allows a CONNECT, this method queries the Rego data to get the f
crates/openshell-supervisor-network/src/opa.rs:490
↓ 12 callersMethodresolve_placeholder
Resolve a placeholder string to the real secret value. Returns `None` if the placeholder is unknown or the resolved value contains prohibited control
crates/openshell-core/src/secrets.rs:225
↓ 12 callersFunctionresolve_ssh_gateway
Resolve the SSH gateway host and port for a sandbox connection. If the server-provided gateway host is a loopback address, use the host and port from
crates/openshell-core/src/forward.rs:711
↓ 12 callersMethodspawn
( program: &str, args: &[String], workdir: Option<&str>, interactive: bool,
crates/openshell-supervisor-process/src/process.rs:440
↓ 12 callersFunctionvalidate_container_mount_target
Validate a container-side mount target for user-supplied driver mounts.
crates/openshell-core/src/driver_mounts.rs:81
↓ 11 callersFunctioncompute_config_revision
Compute a fingerprint for the effective sandbox configuration.
crates/openshell-server/src/grpc/policy.rs:3119
↓ 11 callersFunctioncontains_reserved_credential_marker
(value: &str)
crates/openshell-core/src/secrets.rs:30
↓ 11 callersFunctionextract_field
Extract a field value from CLI tabular output. Given output like: ```text Name: fuzzy-panda Status: Running ``` `extract_field(output, "Name")`
e2e/rust/src/harness/output.rs:45
↓ 11 callersFunctionformat_log_line_plain
Format a log line as plain text for clipboard copy. Produces the same layout as `render_log_line()` but without styles or truncation: `HH:MM:SS {sour
crates/openshell-tui/src/ui/sandbox_logs.rs:405
↓ 11 callersMethodfrom_active_cluster
Construct a `SandboxClient` from the active gateway's on-disk state. Args: cluster: explicit gateway name; otherwise reads
python/openshell/sandbox.py:280
↓ 11 callersMethodget_sandbox
( &self, _request: tonic::Request<openshell_core::proto::GetSandboxRequest>, )
crates/openshell-cli/tests/mtls_integration.rs:55
↓ 11 callersFunctionhandle_get_sandbox_provider_environment
( state: &Arc<ServerState>, request: Request<GetSandboxProviderEnvironmentRequest>, )
crates/openshell-server/src/grpc/policy.rs:1392
↓ 11 callersFunctionhealth_router
Build the health router by spawning a background [`DatabaseHealthMonitor`] for `store` and wiring its receiver into the handlers. Returns immediately
crates/openshell-server/src/http.rs:150
↓ 11 callersFunctioninternal_status
(operation: &str, err: BollardError)
crates/openshell-driver-docker/src/lib.rs:3531
↓ 11 callersFunctionl7_graphql_input
(host: &str, operations: serde_json::Value)
crates/openshell-supervisor-network/src/opa.rs:2178
↓ 11 callersFunctionl7_input_with_query
( host: &str, port: u16, method: &str, path: &str, query_params: serde
crates/openshell-supervisor-network/src/opa.rs:2104
↓ 11 callersFunctionl7_jsonrpc_input_with_params
( host: &str, port: u16, path: &str, method: &str, params: serde_json:
crates/openshell-supervisor-network/src/opa.rs:2145
↓ 11 callersFunctionmerge_file_into_args
Apply gateway-wide values from `[openshell.gateway]` onto `RunArgs` for every argument that is still sourced from clap's built-in default. The functi
crates/openshell-server/src/cli.rs:570
↓ 11 callersFunctionnormalize_provider_type
(input: &str)
crates/openshell-providers/src/lib.rs:186
↓ 11 callersFunctionpending_relay
( sandbox_id: &str, relay_tx: RelayStreamSender, created_at: Instant, )
crates/openshell-server/src/supervisor_session.rs:849
↓ 11 callersFunctionpersistence_error_to_status
Map a `PersistenceError` to an appropriate gRPC `Status`. CAS conflicts (optimistic concurrency failures) are mapped to `ABORTED` to signal that the
crates/openshell-server/src/grpc/mod.rs:80
↓ 11 callersMethodrequest
Perform a versioned HTTP request and return status + body bytes.
crates/openshell-driver-podman/src/client.rs:337
↓ 11 callersMethodsandbox_sync_guard
Serializes sandbox/provider-profile invariant checks and object writes within this gateway process. This is a temporary single-gateway guard for cros
crates/openshell-server/src/compute/mod.rs:335
↓ 11 callersMethodselected_sandbox_name
Get the name of the currently selected sandbox.
crates/openshell-tui/src/app.rs:2515
↓ 11 callersMethodsend_request
Send a pre-built HTTP request and return status + body bytes.
crates/openshell-driver-podman/src/client.rs:317
↓ 11 callersFunctionsetting_for_key
(key: &str)
crates/openshell-core/src/settings.rs:144
↓ 11 callersFunctiontest_proto
()
crates/openshell-supervisor-network/src/opa.rs:1388
↓ 10 callersFunction_delete_provider
Delete a provider, ignoring not-found errors.
e2e/python/test_sandbox_providers.py:91
↓ 10 callersMethodallocate
(&mut self, sandbox_id: &str)
crates/openshell-driver-vm/src/gpu.rs:190
↓ 10 callersFunctionallowed_ips_engine
()
crates/openshell-supervisor-network/src/opa.rs:4795
↓ 10 callersFunctionbuild_ca
()
crates/openshell-cli/tests/helpers/mod.rs:84
↓ 10 callersFunctioncanonicalize_request_target
Canonicalize an HTTP request-target's path component. Accepts origin-form (`"/a/b?q=1"`) or absolute-form (`"http://h/a/b"`) targets. Asterisk-form (
crates/openshell-supervisor-network/src/l7/path.rs:109
↓ 10 callersMethoddelete
Delete an object by id.
crates/openshell-server/src/persistence/mod.rs:296
↓ 10 callersFunctionderegister_vfio_new_id
Best-effort deregistration of a device's vendor:device ID from `vfio-pci`. Reverses the effect of [`register_vfio_new_id`] by writing to `/sys/bus/pc
crates/openshell-vfio/src/bind.rs:70
↓ 10 callersFunctionenable_providers_v2
(state: &Arc<ServerState>)
crates/openshell-server/src/grpc/policy.rs:4414
↓ 10 callersMethoderror
( source: impl Into<String>, profile_id: impl Into<String>, field: impl Into<String>,
crates/openshell-providers/src/profiles.rs:63
↓ 10 callersFunctiongenerate_bypass_ruleset
nftables ruleset generation for sandbox network bypass enforcement. This module provides pure functions to generate nftables rulesets that enforce th
crates/openshell-supervisor-process/src/netns/nft_ruleset.rs:22
↓ 10 callersFunctionhandle_configure_provider_refresh
( state: &Arc<ServerState>, request: Request<ConfigureProviderRefreshRequest>, )
crates/openshell-server/src/grpc/provider.rs:1970
↓ 10 callersFunctionhandle_get_provider_profile
( state: &Arc<ServerState>, request: Request<GetProviderProfileRequest>, )
crates/openshell-server/src/grpc/provider.rs:1235
↓ 10 callersFunctionhandle_update_provider_profiles
( state: &Arc<ServerState>, request: Request<UpdateProviderProfilesRequest>, )
crates/openshell-server/src/grpc/provider.rs:1307
↓ 10 callersFunctionimplicit_allowed_ips_for_ip_host
When the policy endpoint host is a literal IP address, the user has explicitly declared intent to allow that destination. Synthesize an `allowed_ips`
crates/openshell-supervisor-network/src/proxy.rs:2227
↓ 10 callersFunctioninstall_rustls_provider
Initialise the rustls crypto provider (idempotent).
crates/openshell-server/tests/common/mod.rs:483
↓ 10 callersFunctioninstall_rustls_provider
()
crates/openshell-cli/tests/helpers/mod.rs:78
↓ 10 callersMethodinto_parts
Split into message and structured fields map.
crates/openshell-supervisor-process/src/log_push.rs:286
↓ 10 callersFunctionis_not_found_error
(err: &BollardError)
crates/openshell-driver-docker/src/lib.rs:3487
↓ 10 callersFunctionjson_struct
(value: Value)
crates/openshell-driver-podman/src/container.rs:1130
← previousnext →201–300 of 9,017, ranked by callers