MCPcopy Create free account

hub / github.com/NVIDIA/OpenShell / functions

Functions9,017 in github.com/NVIDIA/OpenShell

↓ 815 callersMethodpush
(&mut self, extension: Arc<dyn LifecycleExtension>)
crates/openshell-driver-vm/src/lifecycle.rs:468
↓ 650 callersMethodpath
(&self)
crates/openshell-vfio/src/sysfs.rs:100
↓ 545 callersMethodlen
(&self)
crates/openshell-driver-vm/src/lifecycle.rs:478
↓ 515 callersMethodis_empty
(&self)
crates/openshell-server/src/grpc/provider.rs:51
↓ 422 callersMethodis_empty
(&self)
crates/openshell-core/src/gpu.rs:93
↓ 386 callersMethodget
(&self, id: &str)
crates/openshell-providers/src/lib.rs:135
↓ 208 callersMethodas_str
(self)
crates/openshell-core/src/config.rs:63
↓ 193 callersMethodput_message
( &self, message: &T, )
crates/openshell-server/src/persistence/mod.rs:605
↓ 189 callersFunctionspawn
( config: &Config, vm_config: &VmComputeConfig, )
crates/openshell-server/src/compute/vm.rs:452
↓ 168 callersMethodget
Get a cached token if it exists and is not expired.
crates/openshell-supervisor-network/src/token_grant.rs:104
↓ 163 callersMethodis_empty
(&self)
crates/openshell-driver-vm/src/lifecycle.rs:473
↓ 149 callersMethodnext
(self)
crates/openshell-tui/src/app.rs:75
↓ 139 callersMethodbuild
(self)
crates/openshell-ocsf/src/builders/ssh.rs:64
↓ 133 callersMethodmessage
(&self)
crates/openshell-driver-vm/src/lifecycle.rs:59
↓ 125 callersMethodread
Read the current lease record, if any.
crates/openshell-server/src/compute/lease.rs:218
↓ 121 callersMethodis_empty
(&self)
crates/openshell-providers/src/lib.rs:48
↓ 109 callersFunctiontest_server_state
Build an in-memory `ServerState` for unit tests.
crates/openshell-server/src/grpc/mod.rs:693
↓ 101 callersFunctionconnect
Connect to the `OpenShell` server.
crates/openshell-core/src/grpc_client.rs:550
↓ 99 callersFunctionspawn
Spawn the supervisor session task. The task runs for the lifetime of the sandbox process, reconnecting with exponential backoff on failures.
crates/openshell-supervisor-process/src/supervisor_session.rs:233
↓ 98 callersMethodobject_id
(&self)
crates/openshell-core/src/metadata.rs:41
↓ 97 callersMethodexists
(&self)
crates/openshell-vfio/src/sysfs.rs:104
↓ 89 callersFunctiontest_store
()
crates/openshell-server/src/persistence/mod.rs:629
↓ 87 callersMethodget
Fetch an object by id.
crates/openshell-server/src/persistence/mod.rs:278
↓ 84 callersMethodobject_name
(&self)
crates/openshell-core/src/metadata.rs:47
↓ 82 callersMethodexec_python
( self, function: Callable[..., object], *, args: Sequence[object] = (),
python/openshell/sandbox.py:757
↓ 82 callersMethodflush
(&mut self)
crates/openshell-server/src/multiplex.rs:1237
↓ 78 callersFunctionctx
()
crates/openshell-supervisor-process/src/supervisor_session.rs:719
↓ 75 callersMethodcode
(&self)
crates/openshell-supervisor-process/src/process.rs:1383
↓ 72 callersFunctionrestrictive_default_policy
Return a restrictive default policy suitable for sandboxes that have no explicit policy configured. This policy grants filesystem access to standard
crates/openshell-policy/src/lib.rs:1043
↓ 67 callersFunctiongrpc_client
Build a gRPC [`OpenShellClient`]. When `tls.edge_token` is set, the returned client is wrapped with an interceptor that injects authentication header
crates/openshell-cli/src/tls.rs:437
↓ 67 callersFunctionwith_user
Wrap a request with a user `Principal` so handler scope guards treat the test caller as a CLI user. Most handler tests exercise user-facing behavior a
crates/openshell-server/src/grpc/policy.rs:3920
↓ 66 callersFunctioncreate_pci_device
( sysfs: &SysfsRoot, tmp: &Path, bdf: &str, vendor: &str, device: &str, class: &str,
crates/openshell-vfio/src/test_support.rs:16
↓ 66 callersMethodremove
Remove all bus entries for the given sandbox id. This drops the broadcast sender (closing any active receivers with `RecvError::Closed`) and frees th
crates/openshell-server/src/tracing_bus.rs:82
↓ 64 callersFunctionsandbox
(cluster_name: str | None)
e2e/python/conftest.py:56
↓ 61 callersFunctionconfig
()
crates/openshell-server/src/service_routing.rs:816
↓ 60 callersFunctionmap_db_error
(error: &sqlx::Error)
crates/openshell-server/src/persistence/mod.rs:516
↓ 57 callersMethodevaluate_network
Evaluate a network access request against the loaded policy. Builds an OPA input document from the `NetworkInput`, evaluates the `allow_network` rule
crates/openshell-supervisor-network/src/opa.rs:246
↓ 57 callersMethodset_phase
(&mut self, phase: i32)
crates/openshell-core/src/metadata.rs:77
↓ 57 callersFunctionvalidate_l7_policies
Validate L7 policy configuration in the loaded OPA data. Returns a list of errors and warnings. Errors should prevent sandbox startup; warnings are l
crates/openshell-supervisor-network/src/l7/mod.rs:939
↓ 53 callersMethodas_slice
(&self)
crates/openshell-core/src/gpu.rs:88
↓ 53 callersMethodparse
Parse a `[bind_address:]port` string. Examples: - `"8080"` → `ForwardSpec { bind_addr: "127.0.0.1", port: 8080 }` - `"0.0.0.0:8080"` → `ForwardSpec {
crates/openshell-core/src/forward.rs:555
↓ 53 callersMethodsuccess
(&self)
crates/openshell-supervisor-process/src/process.rs:1391
↓ 52 callersFunctionsetup_mock_sysfs
()
crates/openshell-vfio/src/test_support.rs:10
↓ 48 callersFunctionstrip_ansi
CLI output parsing utilities. Strip ANSI escape codes (e.g. colors, bold) from a string. Handles the common `ESC[<params>m` SGR sequences produced by
e2e/rust/src/harness/output.rs:10
↓ 47 callersMethodabort
(&self)
crates/openshell-server/tests/ws_tunnel_integration.rs:368
↓ 47 callersFunctioncreate_provider_record
( store: &Store, mut provider: Provider, )
crates/openshell-server/src/grpc/provider.rs:66
↓ 44 callersFunctioncurrent_time_ms
()
crates/openshell-server/src/persistence/mod.rs:512
↓ 44 callersFunctiontest_sandbox
()
crates/openshell-driver-docker/src/tests.rs:27
↓ 43 callersMethodclear
Clear all progress output (spinner, spacer, and completed step lines).
crates/openshell-cli/src/run.rs:375
↓ 41 callersFunctionl7_engine
()
crates/openshell-supervisor-network/src/opa.rs:2096
↓ 41 callersFunctionopenshell_cmd
Create a [`tokio::process::Command`] pre-configured to invoke the `openshell` CLI. The command has `kill_on_drop(true)` set so that background child
e2e/rust/src/harness/binary.rs:46
↓ 40 callersFunctionruntime_config
()
crates/openshell-driver-docker/src/tests.rs:89
↓ 39 callersFunctionrun_server
()
crates/openshell-cli/tests/provider_commands_integration.rs:991
↓ 38 callersFunction_base_policy
Build a sandbox policy with standard filesystem/process/landlock settings.
e2e/python/test_sandbox_policy.py:40
↓ 38 callersFunctionfrom_proto
(policy: &SandboxPolicy)
crates/openshell-policy/src/lib.rs:786
↓ 37 callersFunctionparse_sandbox_policy
Parse a sandbox policy from a YAML string.
crates/openshell-policy/src/lib.rs:960
↓ 36 callersMethodpci_device
(&self, bdf: &str)
crates/openshell-vfio/src/sysfs.rs:42
↓ 35 callersFunctiontest_config
()
crates/openshell-driver-podman/src/container.rs:1782
↓ 35 callersFunctiontest_sandbox
(id: &str, name: &str)
crates/openshell-driver-podman/src/container.rs:1741
↓ 34 callersMethodcontains_key
(&self, key: &str)
crates/openshell-server/src/grpc/provider.rs:61
↓ 34 callersFunctionl7_input
(host: &str, port: u16, method: &str, path: &str)
crates/openshell-supervisor-network/src/opa.rs:2100
↓ 34 callersFunctionrespond
(client: &mut TcpStream, bytes: &[u8])
crates/openshell-supervisor-network/src/proxy.rs:4321
↓ 33 callersMethodas_str
(&self)
crates/openshell-cli/src/main.rs:698
↓ 32 callersMethodget
(self, sandbox_name: str)
python/openshell/sandbox.py:418
↓ 31 callersFunctionbuild_json_error_response
Build an HTTP error response with a JSON body. Returns bytes ready to write to the client socket. The body is a JSON object with `error` and `detail
crates/openshell-supervisor-network/src/proxy.rs:4331
↓ 31 callersFunctionparse_jsonrpc_body
Parse a JSON-RPC-family body using the endpoint's inspection mode.
crates/openshell-supervisor-network/src/l7/jsonrpc.rs:157
↓ 31 callersFunctionset_mock_driver
Helper to create a fake driver symlink for a mock PCI device.
crates/openshell-vfio/src/test_support.rs:42
↓ 31 callersMethodwait
Wait for the process to exit. # Errors Returns an error if waiting fails.
crates/openshell-supervisor-process/src/process.rs:734
↓ 30 callersFunctionparse_l7_config
Parse an L7 endpoint config from a regorus Value (returned by Rego query). The value is expected to be the raw endpoint object from the Rego data, co
crates/openshell-supervisor-network/src/l7/mod.rs:164
↓ 30 callersFunctionprovider_create
( server: &str, name: &str, provider_type: &str, from_existing: bool, credentials: &[Strin
crates/openshell-cli/src/run.rs:4590
↓ 30 callersMethodput_if
Insert or update a generic object with compare-and-swap support. # Arguments `object_type` - Type discriminator for the object `id` - Stable object i
crates/openshell-server/src/persistence/mod.rs:232
↓ 29 callersMethodcleanup
Delete the sandbox explicitly. Also kills the background child process if one exists. This is called automatically by [`Drop`], but can be called man
e2e/rust/src/harness/sandbox.rs:471
↓ 29 callersFunctionclear
Remove a specific vendor:device key from the global refcount map. Used by tests to clean up their own entries without disturbing parallel tests that h
crates/openshell-vfio/src/bind.rs:335
↓ 29 callersMethodget
( &self, object_type: &str, id: &str, )
crates/openshell-server/src/persistence/postgres.rs:284
↓ 29 callersFunctionmasked_frame
(fin: bool, opcode: u8, payload: &[u8])
crates/openshell-supervisor-network/src/l7/websocket.rs:1147
↓ 29 callersMethodparse
(input: ParseStream<'_>)
crates/openshell-server-macros/src/lib.rs:33
↓ 29 callersFunctionrewrite_http_header_block
Rewrite credential placeholders in an HTTP header block. Resolves `openshell:resolve:env:*` placeholders in the request line (path segments and query
crates/openshell-core/src/secrets.rs:927
↓ 29 callersFunctionsandbox_template_to_k8s
( template: &SandboxTemplate, gpu: bool, spec_environment: &std::collections::HashMap<String, Stri
crates/openshell-driver-kubernetes/src/driver.rs:1490
↓ 28 callersFunction_proxy_connect
Return a closure that sends a raw CONNECT and returns the status line.
e2e/python/test_sandbox_policy.py:78
↓ 28 callersMethodas_str
(self)
crates/openshell-driver-vm/src/lifecycle.rs:116
↓ 28 callersMethodclose
Release the gRPC channel and any bearer-auth resources. Idempotent. If `from_active_cluster` wired up an OIDC refresher for this clie
python/openshell/sandbox.py:373
↓ 28 callersFunctiondefault_patterns
Default patterns for known inference APIs (`OpenAI`, Anthropic, AWS Bedrock).
crates/openshell-supervisor-network/src/l7/inference.rs:64
↓ 27 callersMethodgeneration_guard
(&self)
crates/openshell-supervisor-network/src/opa.rs:128
↓ 27 callersFunctionlease
(store: Arc<Store>, id: &str, ttl: Duration)
crates/openshell-server/src/compute/lease.rs:265
↓ 27 callersFunctionmake_vertex_provider_with_config
( name: &str, config: std::collections::HashMap<String, String>, )
crates/openshell-server/src/inference.rs:1957
↓ 27 callersFunctionparse_with_args
(argv: &[&str])
crates/openshell-server/src/cli.rs:1105
↓ 27 callersFunctionresolve_provider_route
( provider: &Provider, model_id: &str, )
crates/openshell-server/src/inference.rs:658
↓ 26 callersFunctioncommand
()
crates/openshell-server/src/cli.rs:215
↓ 26 callersFunctionhandle_get_draft_policy
( state: &Arc<ServerState>, request: Request<GetDraftPolicyRequest>, )
crates/openshell-server/src/grpc/policy.rs:2462
↓ 26 callersFunctionhandle_submit_policy_analysis
( state: &Arc<ServerState>, request: Request<SubmitPolicyAnalysisRequest>, )
crates/openshell-server/src/grpc/policy.rs:2196
↓ 26 callersFunctionlog
Structured log line with timestamp and colour.
examples/policy-advisor/ctf.py:51
↓ 26 callersFunctionparse_profile_yaml
(input: &str)
crates/openshell-providers/src/profiles.rs:976
↓ 25 callersFunctionbuild_container_spec
(sandbox: &DriverSandbox, config: &PodmanComputeConfig)
crates/openshell-driver-podman/src/container.rs:766
↓ 25 callersMethodcurrent_generation
(&self)
crates/openshell-supervisor-network/src/opa.rs:88
↓ 25 callersMethodget
( &self, object_type: &str, id: &str, )
crates/openshell-server/src/persistence/sqlite.rs:300
↓ 25 callersFunctionload_global_settings
(store: &Store)
crates/openshell-server/src/grpc/policy.rs:3716
↓ 25 callersMethodparse
(s: &str)
crates/openshell-supervisor-network/src/l7/mod.rs:35
↓ 25 callersMethodput
( &self, object_type: &str, id: &str, name: &str, payload: &[u8],
crates/openshell-server/src/persistence/mod.rs:594
↓ 25 callersFunctiontest_provider
(name: &str, provider_type: &str)
crates/openshell-server/src/grpc/policy.rs:4351
↓ 24 callersFunctiongenerate_pki
Generate a full PKI: CA → server cert (for `localhost`) + client cert. Returns a `TempDir` that must be kept alive while the paths are in use.
crates/openshell-server/tests/common/mod.rs:499
next →1–100 of 9,017, ranked by callers