MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / sandbox_event

Function sandbox_event

crates/openshell-driver-podman/src/watcher.rs:32–40  ·  view source on GitHub ↗

Build a `WatchSandboxesEvent` carrying a sandbox snapshot.

(sandbox: DriverSandbox)

Source from the content-addressed store, hash-verified

30
31/// Build a `WatchSandboxesEvent` carrying a sandbox snapshot.
32fn sandbox_event(sandbox: DriverSandbox) -> WatchSandboxesEvent {
33 WatchSandboxesEvent {
34 payload: Some(watch_sandboxes_event::Payload::Sandbox(
35 WatchSandboxesSandboxEvent {
36 sandbox: Some(sandbox),
37 },
38 )),
39 }
40}
41
42/// Build a `WatchSandboxesEvent` for a deleted sandbox.
43fn deleted_event(sandbox_id: String) -> WatchSandboxesEvent {

Callers 2

start_watchFunction · 0.85
map_podman_eventFunction · 0.85

Calls 1

SandboxClass · 0.85

Tested by

no test coverage detected