MCPcopy Create free account

hub / github.com/NVIDIA/OpenShell / functions

Functions9,017 in github.com/NVIDIA/OpenShell

↓ 24 callersFunctionguard
()
crates/openshell-vfio/src/bind.rs:326
↓ 24 callersFunctionresolve_sandbox_name
Resolve a sandbox name, falling back to the last-used sandbox for the gateway. When `name` is `None`, looks up the last sandbox recorded for the acti
crates/openshell-cli/src/main.rs:211
↓ 23 callersFunctionarg_defaulted
Returns `true` when an argument's value came from clap's built-in default (or was never supplied at all). When the predicate is `true`, the loader is
crates/openshell-server/src/cli.rs:525
↓ 23 callersMethodas_str
(&self)
crates/openshell-driver-podman/src/config.rs:37
↓ 23 callersMethodcall
(&mut self, req: Request<B>)
crates/openshell-server/src/multiplex.rs:348
↓ 23 callersFunctioncreate_dir_restricted
Create a directory (and parents) with owner-only permissions (`0o700`) on Unix. On non-Unix platforms, falls back to default permissions. This should
crates/openshell-core/src/paths.rs:70
↓ 23 callersMethodget
(&self, key: &str)
crates/openshell-server/src/grpc/provider.rs:56
↓ 23 callersMethodpublish_vm_progress
( &self, sandbox_id: &str, reason: &str, message: String, metadata: Ha
crates/openshell-driver-vm/src/driver.rs:2969
↓ 23 callersMethodwith_cmd_line
(mut self, cmd_line: &str)
crates/openshell-ocsf/src/objects/process.rs:40
↓ 22 callersFunctionbuild_container_create_body
( sandbox: &DriverSandbox, config: &DockerDriverRuntimeConfig, )
crates/openshell-driver-docker/src/lib.rs:2285
↓ 22 callersFunctionmerge_policy
( policy: SandboxPolicy, operations: &[PolicyMergeOp], )
crates/openshell-policy/src/merge.rs:284
↓ 22 callersFunctionparse_allowed_ips
Parse CIDR/IP strings into `IpNet` values, rejecting invalid entries and entries that overlap always-blocked ranges (loopback, link-local, unspecified
crates/openshell-supervisor-network/src/proxy.rs:2671
↓ 22 callersFunctionrun_client_to_server
(input: Vec<u8>)
crates/openshell-supervisor-network/src/l7/websocket.rs:1218
↓ 22 callersFunctionrun_ip
Run an `ip` command on the host.
crates/openshell-supervisor-process/src/netns/mod.rs:471
↓ 22 callersMethodspawn
(store: Arc<Store>)
crates/openshell-server/src/readiness.rs:116
↓ 22 callersFunctiontest_sandbox_context
()
crates/openshell-ocsf/src/builders/mod.rs:255
↓ 22 callersFunctiontest_store
()
crates/openshell-server/src/inference.rs:999
↓ 21 callersFunctionbuild_policy_update_plan
( add_endpoints: &[String], remove_endpoints: &[String], add_deny: &[String], add_allow: &[Str
crates/openshell-cli/src/policy_update.rs:22
↓ 21 callersMethodformat_shorthand
(&self)
crates/openshell-ocsf/src/format/shorthand.rs:117
↓ 21 callersMethodhealth
( &self, _request: tonic::Request<HealthRequest>, )
crates/openshell-server/tests/common/mod.rs:55
↓ 21 callersFunctionmark_progress_detail
( metadata: &mut HashMap<String, String, S>, detail: impl Into<String>, )
crates/openshell-core/src/progress.rs:34
↓ 21 callersMethodput_policy_revision
( &self, id: &str, sandbox_id: &str, version: i64, payload: &[u8],
crates/openshell-server/src/persistence/sqlite.rs:452
↓ 21 callersFunctionserialize_sandbox_policy
Serialize a proto sandbox policy to a YAML string. This is the inverse of [`parse_sandbox_policy`] — the output uses the canonical YAML field names (
crates/openshell-policy/src/lib.rs:972
↓ 21 callersFunctiontest_route
(endpoint: &str, protocols: &[&str], auth: AuthHeader)
crates/openshell-router/src/backend.rs:1042
↓ 21 callersFunctionvalidate_sandbox_policy
Validate that a sandbox policy does not contain unsafe content. Returns `Ok(())` if the policy is safe, or `Err(violations)` listing all safety viola
crates/openshell-policy/src/lib.rs:1204
↓ 20 callersMethodclone_engine_for_tunnel
Clone the inner regorus engine for per-tunnel L7 evaluation. With the `arc` feature enabled, this shares compiled policy via Arc and only duplicates
crates/openshell-supervisor-network/src/opa.rs:615
↓ 20 callersMethodexec
Run a one-shot command inside the sandbox via `openshell sandbox exec`. Used by tests that need to pre-populate sandbox-side state (create files, sym
e2e/rust/src/harness/sandbox.rs:373
↓ 20 callersFunctionget_default_profile
(id: &str)
crates/openshell-providers/src/profiles.rs:1712
↓ 20 callersMethodload
(path: &Path)
crates/openshell-vfio/src/pci.rs:191
↓ 20 callersFunctionnow_ms
Return the current Unix timestamp in milliseconds, saturating to [`i64::MAX`] on overflow. Returns `0` if the system clock is before the Unix epoch.
crates/openshell-core/src/time.rs:12
↓ 20 callersMethodphase
(&self)
crates/openshell-core/src/metadata.rs:73
↓ 20 callersMethodregister
Register a live supervisor session for the given sandbox. If a previous session exists for the same sandbox, its shutdown signal is fired so the old
crates/openshell-server/src/supervisor_session.rs:109
↓ 20 callersMethodstatus_detail
(mut self, detail: impl Into<String>)
crates/openshell-ocsf/src/builders/http.rs:67
↓ 20 callersFunctionvalidate_vm_sandbox
(sandbox: &Sandbox, gpu_enabled: bool)
crates/openshell-driver-vm/src/driver.rs:3140
↓ 20 callersMethodwith_gateway_name
(&self, name: &str)
crates/openshell-cli/src/tls.rs:71
↓ 20 callersMethodwith_state
(&self, f: impl FnOnce(&mut FakeComputeDriverState) -> R)
crates/openshell-server/src/test_support.rs:136
↓ 20 callersMethodwrite
(&mut self, buf: &[u8])
crates/openshell-server/src/multiplex.rs:1232
↓ 19 callersFunction_write_bundle
( gateway_dir: Path, *, access_token: str = "fresh", refresh_token: str = "r-orig", expire
python/openshell/sandbox_test.py:506
↓ 19 callersMethodcurrent_access_token
Return a non-expired access token, refreshing if needed.
python/openshell/sandbox.py:1024
↓ 19 callersMethodget_latest_policy
( &self, sandbox_id: &str, )
crates/openshell-server/src/persistence/sqlite.rs:495
↓ 19 callersMethodhttp_request
(mut self, req: HttpRequest)
crates/openshell-ocsf/src/builders/http.rs:52
↓ 19 callersMethodnotify
Notify watchers that the sandbox record has changed.
crates/openshell-server/src/sandbox_watch.rs:42
↓ 19 callersMethodopen_relay
Open a relay channel and return a receiver for the supervisor-side stream. Sends `RelayOpen` over the supervisor's gRPC session and returns a oneshot
crates/openshell-server/src/supervisor_session.rs:236
↓ 19 callersFunctionrun_cmd
(cmd: &str, args: &[&str])
crates/openshell-driver-vm/src/runtime.rs:550
↓ 19 callersFunctionstore_gateway_metadata
(name: &str, metadata: &GatewayMetadata)
crates/openshell-bootstrap/src/metadata.rs:196
↓ 19 callersFunctionvalidate_sandbox_spec
Validate field sizes on a `CreateSandboxRequest` before persisting. Returns `INVALID_ARGUMENT` on the first field that exceeds its limit.
crates/openshell-server/src/grpc/validation.rs:93
↓ 18 callersFunctionapply_auth
Apply authentication token from local storage based on gateway auth mode. Handles Cloudflare Access and OIDC auth modes by loading the stored token a
crates/openshell-cli/src/main.rs:159
↓ 18 callersFunctioncustom_profile
(id: &str)
crates/openshell-server/src/grpc/provider.rs:3001
↓ 18 callersFunctionemit_activity_simple
(tx: Option<&ActivitySender>, denied: bool, deny_group: &'static str)
crates/openshell-supervisor-network/src/proxy.rs:439
↓ 18 callersFunctionhandle_import_provider_profiles
( state: &Arc<ServerState>, request: Request<ImportProviderProfilesRequest>, )
crates/openshell-server/src/grpc/provider.rs:1251
↓ 18 callersMethodkill
Kill the process. # Errors Returns an error if the process cannot be killed.
crates/openshell-supervisor-process/src/process.rs:757
↓ 18 callersMethodmetadata
(&self, profiles: &[&str])
crates/openshell-ocsf/src/builders/mod.rs:201
↓ 18 callersFunctionresolve
( probe: &FakeContainerEngineProbe, legacy_selector: Option<&str>, explicit_engine: Op
e2e/rust/src/harness/container.rs:410
↓ 18 callersFunctiontest_engine
()
crates/openshell-supervisor-network/src/opa.rs:1384
↓ 18 callersFunctiontest_sandbox
(name: &str, providers: Vec<String>)
crates/openshell-server/src/grpc/sandbox.rs:2265
↓ 18 callersMethodto_proto
(&self)
crates/openshell-providers/src/profiles.rs:417
↓ 18 callersMethodtry_acquire
Attempt to create the lease record. Succeeds only if no lease exists.
crates/openshell-server/src/compute/lease.rs:89
↓ 18 callersMethodwith
(extensions: Vec<Arc<dyn LifecycleExtension>>)
crates/openshell-driver-vm/src/lifecycle.rs:464
↓ 18 callersFunctionwrite_all
Write all bytes to an async writer.
crates/openshell-supervisor-network/src/proxy.rs:2093
↓ 18 callersFunctionwrite_pem
(path: &Path, contents: &str, owner_only: bool)
crates/openshell-server/src/certgen.rs:759
↓ 17 callersFunction_install_mock_transport
Swap the refresher's httpx.Client for one bound to a mock transport. We rebuild with `follow_redirects=False` so the redirect-rejection test
python/openshell/sandbox_test.py:575
↓ 17 callersFunctionbase
( class_uid: u32, class_name: &str, cat_uid: u8, cat_name: &str, act_i
crates/openshell-ocsf/src/format/shorthand.rs:405
↓ 17 callersFunctiongpu_resources
(count: Option<u32>)
crates/openshell-driver-docker/src/tests.rs:83
↓ 17 callersFunctionprovider_with_values
(name: &str, provider_type: &str)
crates/openshell-server/src/grpc/provider.rs:2975
↓ 17 callersMethodproxy_with_candidates
Proxy a raw HTTP request to the first compatible route from `candidates`. Filters candidates by `source_protocol` compatibility (exact match against
crates/openshell-router/src/lib.rs:61
↓ 17 callersFunctionresolve_gateway
( gateway_flag: &Option<String>, gateway_endpoint: &Option<String>, )
crates/openshell-cli/src/main.rs:78
↓ 17 callersFunctionroute_request
( ctx: &MetadataContext, method: &str, path: &str, headers: &[(String, String)], )
crates/openshell-sandbox/src/google_cloud_metadata.rs:78
↓ 17 callersFunctionrun_server
()
crates/openshell-cli/tests/sandbox_create_lifecycle_integration.rs:667
↓ 17 callersFunctionstring_value
(value: &str)
crates/openshell-server/src/compute/mod.rs:2127
↓ 17 callersFunctiontest_tls
(server: &TestServer)
crates/openshell-cli/tests/sandbox_create_lifecycle_integration.rs:1094
↓ 17 callersFunctionupsert_cluster_inference_route
( store: &Store, route_name: &str, provider_name: &str, model_id: &str, timeout_secs: u64,
crates/openshell-server/src/inference.rs:156
↓ 17 callersFunctionvalidate_label_key
Validate a label selector string format. Format: "key1=value1,key2=value2" Returns `INVALID_ARGUMENT` if the selector has invalid format. Validate a
crates/openshell-server/src/grpc/validation.rs:386
↓ 17 callersMethodwrite
(self, path: str, content: str)
e2e/python/test_sandbox_api.py:19
↓ 16 callersMethodclose
(&self)
crates/openshell-server/src/persistence/mod.rs:214
↓ 16 callersFunctioncreate_probe_file
(sysfs: &SysfsRoot)
crates/openshell-vfio/src/test_support.rs:50
↓ 16 callersFunctionevaluate_l7_request
Evaluate an L7 request against the OPA engine. Returns `(allowed, deny_reason)`.
crates/openshell-supervisor-network/src/l7/relay.rs:1492
↓ 16 callersFunctionget
(router: Router, path: &str)
crates/openshell-server/src/http.rs:447
↓ 16 callersMethodget
Look up a binary by exact path.
crates/openshell-prover/src/registry.rs:162
↓ 16 callersFunctionmake_shutdown
Returns a shutdown sender with its receiver immediately dropped. Tests that don't observe the shutdown signal can use this to satisfy the `register` s
crates/openshell-server/src/supervisor_session.rs:832
↓ 16 callersFunctionparse_hosts_file_for_host
(contents: &str, host: &str)
crates/openshell-supervisor-network/src/proxy.rs:2402
↓ 16 callersMethodreject
(self, status: int, detail: str)
e2e/mcp-conformance/host-bridge.py:115
↓ 16 callersFunctionresolve_provider_environment
Resolve provider credentials into environment variables. For each provider name in the list, fetches the provider from the store and collects credent
crates/openshell-server/src/grpc/provider.rs:434
↓ 16 callersFunctionrewrite_forward_request
Rewrite an absolute-form HTTP proxy request to origin-form for upstream. Transforms `GET http://host:port/path HTTP/1.1` into `GET /path HTTP/1.1`, s
crates/openshell-supervisor-network/src/proxy.rs:2937
↓ 16 callersFunctionrun_cli
(args: &[&str])
e2e/rust/tests/settings_management.rs:61
↓ 16 callersFunctionsandbox_record
(id: &str, name: &str, phase: SandboxPhase)
crates/openshell-server/src/compute/mod.rs:2381
↓ 16 callersFunctionsave_global_settings
( store: &Store, settings: &StoredSettings, )
crates/openshell-server/src/grpc/policy.rs:3720
↓ 16 callersFunctiontest_store
()
crates/openshell-server/src/compute/lease.rs:257
↓ 16 callersMethodto_json
Serialize to a `serde_json::Value`. Returns the full OCSF JSON object, or an error if serialization fails.
crates/openshell-ocsf/src/format/jsonl.rs:12
↓ 16 callersFunctionupdate_provider_record
( store: &Store, provider: Provider, )
crates/openshell-server/src/grpc/provider.rs:176
↓ 16 callersFunctionvalidate_profile_set
( profiles: &[(String, ProviderTypeProfile)], )
crates/openshell-providers/src/profiles.rs:1083
↓ 16 callersFunctionwith_tmp_xdg_and_system
(user: &Path, system: &Path, f: F)
crates/openshell-bootstrap/src/metadata.rs:592
↓ 15 callersFunctionclose_if_stale
(guard: &PolicyGenerationGuard, ctx: &L7EvalContext)
crates/openshell-supervisor-network/src/l7/relay.rs:990
↓ 15 callersMethodconnect
Connect to a persistence store based on the database URL.
crates/openshell-server/src/persistence/mod.rs:176
↓ 15 callersFunctioncreate_remove_id_file
(sysfs: &SysfsRoot)
crates/openshell-vfio/src/test_support.rs:56
↓ 15 callersMethodinto_response
(self)
crates/openshell-server/src/service_routing.rs:195
↓ 15 callersMethodpci_device_ref
(&'a self, bdf: &'a str)
crates/openshell-vfio/src/sysfs.rs:46
↓ 15 callersMethodread
(self, path: str)
e2e/python/test_sandbox_api.py:24
↓ 15 callersMethodrun
Run the aggregator loop. This consumes `self` and runs until the channel is closed (all senders are dropped). `flush_callback` is called periodically
crates/openshell-sandbox/src/denial_aggregator.rs:68
↓ 15 callersFunctionsandbox_create
Create a sandbox with default settings.
crates/openshell-cli/src/run.rs:1820
↓ 15 callersFunctionsave_last_sandbox
Save the last-used sandbox name for a gateway to persistent storage.
crates/openshell-bootstrap/src/metadata.rs:278
← previousnext →101–200 of 9,017, ranked by callers