Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/OpenShell
/ functions
Functions
9,017 in github.com/NVIDIA/OpenShell
⨍
Functions
9,017
◇
Types & classes
806
↓ 15 callers
Method
sender
Get a sender handle for dispatching events from background tasks.
crates/openshell-tui/src/event.rs:120
↓ 14 callers
Function
empty_request
(path: &str)
crates/openshell-server/src/multiplex.rs:1393
↓ 14 callers
Method
ensure_current
(&self)
crates/openshell-supervisor-network/src/opa.rs:96
↓ 14 callers
Method
id
(&self)
crates/openshell-providers/src/lib.rs:88
↓ 14 callers
Function
identity_with_roles_and_scopes
(roles: &[&str], scopes: &[&str])
crates/openshell-server/src/auth/authz.rs:161
↓ 14 callers
Function
install_fake_ssh
(dir: &TempDir)
crates/openshell-cli/tests/sandbox_create_lifecycle_integration.rs:730
↓ 14 callers
Function
l7_jsonrpc_input
(host: &str, port: u16, path: &str, method: &str)
crates/openshell-supervisor-network/src/opa.rs:2126
↓ 14 callers
Function
load
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 callers
Function
load_symbol
(library: &'static Library, name: &[u8], path: &Path)
crates/openshell-driver-vm/src/ffi.rs:216
↓ 14 callers
Function
make_context
(env: HashMap<String, String>)
crates/openshell-sandbox/src/google_cloud_metadata.rs:327
↓ 14 callers
Function
parse_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 callers
Function
platform_event
(source: &str, event_type: &str, reason: &str, message: String)
crates/openshell-driver-vm/src/driver.rs:5042
↓ 14 callers
Method
register
(&mut self, plugin: P)
crates/openshell-providers/src/lib.rs:127
↓ 14 callers
Function
resolve_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 callers
Method
set_message
Set message.
crates/openshell-ocsf/src/events/base_event.rs:172
↓ 14 callers
Function
test_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 callers
Function
test_env
(fake_ssh_dir: &TempDir, xdg_dir: &TempDir)
crates/openshell-cli/tests/sandbox_create_lifecycle_integration.rs:1047
↓ 14 callers
Function
test_policy_with_rule
(rule_name: &str, host: &str)
crates/openshell-server/src/grpc/policy.rs:4368
↓ 14 callers
Function
unique_temp_dir
()
crates/openshell-driver-vm/src/driver.rs:6742
↓ 14 callers
Method
unmapped
(mut self, key: &str, value: impl Into<serde_json::Value>)
crates/openshell-ocsf/src/builders/base.rs:42
↓ 14 callers
Function
validate_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 callers
Function
_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 callers
Function
build_filter
(allow_inet: bool)
crates/openshell-supervisor-process/src/sandbox/linux/seccomp.rs:83
↓ 13 callers
Function
check
(ret: i32, func: &'static str)
crates/openshell-driver-vm/src/runtime.rs:1364
↓ 13 callers
Function
config_file_from_toml
(toml: &str)
crates/openshell-server/src/cli.rs:1111
↓ 13 callers
Method
download
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 callers
Function
flavor_headers
()
crates/openshell-sandbox/src/google_cloud_metadata.rs:341
↓ 13 callers
Function
get_sandbox_policy
(state: &Arc<ServerState>, sandbox_id: &str)
crates/openshell-server/src/grpc/policy.rs:4429
↓ 13 callers
Function
gpu_resources
(count: Option<u32>)
crates/openshell-driver-vm/src/driver.rs:5189
↓ 13 callers
Function
handle_attach_sandbox_provider
( state: &Arc<ServerState>, request: Request<AttachSandboxProviderRequest>, )
crates/openshell-server/src/grpc/sandbox.rs:290
↓ 13 callers
Function
json_struct
(value: serde_json::Value)
crates/openshell-driver-docker/src/tests.rs:120
↓ 13 callers
Function
load_gateway_metadata
(name: &str)
crates/openshell-bootstrap/src/metadata.rs:213
↓ 13 callers
Function
mark_progress_active
( metadata: &mut HashMap<String, String, S>, step: &'static str, )
crates/openshell-core/src/progress.rs:27
↓ 13 callers
Method
name
(&self)
crates/openshell-supervisor-process/src/netns/mod.rs:204
↓ 13 callers
Function
relay_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 callers
Function
relay_response
( request_method: &str, upstream: &mut U, client: &mut C, options: RelayResponseOptions, )
crates/openshell-supervisor-network/src/l7/rest.rs:1917
↓ 13 callers
Method
resolve
(self)
crates/openshell-router/src/config.rs:97
↓ 13 callers
Function
run_cli
Run an `openshell` CLI command and return the result.
e2e/rust/tests/live_policy_update.rs:144
↓ 13 callers
Function
test_provider
(name: &str, provider_type: &str)
crates/openshell-server/src/grpc/sandbox.rs:2240
↓ 13 callers
Function
test_runtime
(driver: SharedComputeDriver)
crates/openshell-server/src/compute/mod.rs:2343
↓ 13 callers
Function
test_sandbox
( id: &str, name: &str, policy: ProtoSandboxPolicy, providers: Vec<String>,
crates/openshell-server/src/grpc/policy.rs:4387
↓ 13 callers
Function
upsert_env
(env: &mut Vec<serde_json::Value>, name: &str, value: &str)
crates/openshell-driver-kubernetes/src/driver.rs:2079
↓ 12 callers
Method
add_unmapped
Add an unmapped field.
crates/openshell-ocsf/src/events/base_event.rs:192
↓ 12 callers
Function
cdi_devices_config
(device_ids: &[&str])
crates/openshell-driver-docker/src/tests.rs:52
↓ 12 callers
Function
centered_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 callers
Function
detect_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 callers
Function
driver_gpu_requirements
( resources: Option<&DriverResourceRequirements>, )
crates/openshell-core/src/gpu.rs:55
↓ 12 callers
Function
emit_protocol_failure
(host: &str, port: u16, policy_name: &str, failure_class: &str)
crates/openshell-supervisor-network/src/l7/websocket.rs:1082
↓ 12 callers
Function
gateway_add
( endpoint: &str, name: Option<&str>, remote: Option<&str>, local: bool, oidc_issuer: Opti
crates/openshell-cli/src/run.rs:874
↓ 12 callers
Method
list
List objects by type.
crates/openshell-server/src/persistence/mod.rs:306
↓ 12 callers
Function
make_provider
(name: &str, provider_type: &str, key_name: &str, key_value: &str)
crates/openshell-server/src/inference.rs:1043
↓ 12 callers
Function
parse_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 callers
Function
protocol_failure_class
(error: &miette::Report)
crates/openshell-supervisor-network/src/l7/websocket.rs:1051
↓ 12 callers
Method
publish_platform_event
(&self, sandbox_id: String, event: PlatformEvent)
crates/openshell-driver-vm/src/driver.rs:2958
↓ 12 callers
Method
query_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 callers
Method
resolve_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 callers
Function
resolve_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 callers
Method
spawn
( program: &str, args: &[String], workdir: Option<&str>, interactive: bool,
crates/openshell-supervisor-process/src/process.rs:440
↓ 12 callers
Function
validate_container_mount_target
Validate a container-side mount target for user-supplied driver mounts.
crates/openshell-core/src/driver_mounts.rs:81
↓ 11 callers
Function
compute_config_revision
Compute a fingerprint for the effective sandbox configuration.
crates/openshell-server/src/grpc/policy.rs:3119
↓ 11 callers
Function
contains_reserved_credential_marker
(value: &str)
crates/openshell-core/src/secrets.rs:30
↓ 11 callers
Function
extract_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 callers
Function
format_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 callers
Method
from_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 callers
Method
get_sandbox
( &self, _request: tonic::Request<openshell_core::proto::GetSandboxRequest>, )
crates/openshell-cli/tests/mtls_integration.rs:55
↓ 11 callers
Function
handle_get_sandbox_provider_environment
( state: &Arc<ServerState>, request: Request<GetSandboxProviderEnvironmentRequest>, )
crates/openshell-server/src/grpc/policy.rs:1392
↓ 11 callers
Function
health_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 callers
Function
internal_status
(operation: &str, err: BollardError)
crates/openshell-driver-docker/src/lib.rs:3531
↓ 11 callers
Function
l7_graphql_input
(host: &str, operations: serde_json::Value)
crates/openshell-supervisor-network/src/opa.rs:2178
↓ 11 callers
Function
l7_input_with_query
( host: &str, port: u16, method: &str, path: &str, query_params: serde
crates/openshell-supervisor-network/src/opa.rs:2104
↓ 11 callers
Function
l7_jsonrpc_input_with_params
( host: &str, port: u16, path: &str, method: &str, params: serde_json:
crates/openshell-supervisor-network/src/opa.rs:2145
↓ 11 callers
Function
merge_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 callers
Function
normalize_provider_type
(input: &str)
crates/openshell-providers/src/lib.rs:186
↓ 11 callers
Function
pending_relay
( sandbox_id: &str, relay_tx: RelayStreamSender, created_at: Instant, )
crates/openshell-server/src/supervisor_session.rs:849
↓ 11 callers
Function
persistence_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 callers
Method
request
Perform a versioned HTTP request and return status + body bytes.
crates/openshell-driver-podman/src/client.rs:337
↓ 11 callers
Method
sandbox_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 callers
Method
selected_sandbox_name
Get the name of the currently selected sandbox.
crates/openshell-tui/src/app.rs:2515
↓ 11 callers
Method
send_request
Send a pre-built HTTP request and return status + body bytes.
crates/openshell-driver-podman/src/client.rs:317
↓ 11 callers
Function
setting_for_key
(key: &str)
crates/openshell-core/src/settings.rs:144
↓ 11 callers
Function
test_proto
()
crates/openshell-supervisor-network/src/opa.rs:1388
↓ 10 callers
Function
_delete_provider
Delete a provider, ignoring not-found errors.
e2e/python/test_sandbox_providers.py:91
↓ 10 callers
Method
allocate
(&mut self, sandbox_id: &str)
crates/openshell-driver-vm/src/gpu.rs:190
↓ 10 callers
Function
allowed_ips_engine
()
crates/openshell-supervisor-network/src/opa.rs:4795
↓ 10 callers
Function
build_ca
()
crates/openshell-cli/tests/helpers/mod.rs:84
↓ 10 callers
Function
canonicalize_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 callers
Method
delete
Delete an object by id.
crates/openshell-server/src/persistence/mod.rs:296
↓ 10 callers
Function
deregister_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 callers
Function
enable_providers_v2
(state: &Arc<ServerState>)
crates/openshell-server/src/grpc/policy.rs:4414
↓ 10 callers
Method
error
( source: impl Into<String>, profile_id: impl Into<String>, field: impl Into<String>,
crates/openshell-providers/src/profiles.rs:63
↓ 10 callers
Function
generate_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 callers
Function
handle_configure_provider_refresh
( state: &Arc<ServerState>, request: Request<ConfigureProviderRefreshRequest>, )
crates/openshell-server/src/grpc/provider.rs:1970
↓ 10 callers
Function
handle_get_provider_profile
( state: &Arc<ServerState>, request: Request<GetProviderProfileRequest>, )
crates/openshell-server/src/grpc/provider.rs:1235
↓ 10 callers
Function
handle_update_provider_profiles
( state: &Arc<ServerState>, request: Request<UpdateProviderProfilesRequest>, )
crates/openshell-server/src/grpc/provider.rs:1307
↓ 10 callers
Function
implicit_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 callers
Function
install_rustls_provider
Initialise the rustls crypto provider (idempotent).
crates/openshell-server/tests/common/mod.rs:483
↓ 10 callers
Function
install_rustls_provider
()
crates/openshell-cli/tests/helpers/mod.rs:78
↓ 10 callers
Method
into_parts
Split into message and structured fields map.
crates/openshell-supervisor-process/src/log_push.rs:286
↓ 10 callers
Function
is_not_found_error
(err: &BollardError)
crates/openshell-driver-docker/src/lib.rs:3487
↓ 10 callers
Function
json_struct
(value: Value)
crates/openshell-driver-podman/src/container.rs:1130
← previous
next →
201–300 of 9,017, ranked by callers