Liking cljdoc? Tell your friends :D

cvisor.core

cVisor Clojure SDK — java.lang.foreign (FFM) bindings over the libcvisor C ABI. Linux-only at runtime; requires JDK 22+.

(require '[cvisor.core :as cvisor]) (with-open [sb (cvisor/sandbox)] (:stdout (cvisor/run sb "echo hello"))) ; => "hello\n"

cVisor Clojure SDK — java.lang.foreign (FFM) bindings over the libcvisor C ABI.
Linux-only at runtime; requires JDK 22+.

  (require '[cvisor.core :as cvisor])
  (with-open [sb (cvisor/sandbox)]
    (:stdout (cvisor/run sb "echo hello")))   ; => "hello\n"
raw docstring

closeclj

(close sb)

Free the sandbox. Idempotent.

Free the sandbox. Idempotent.
sourceraw docstring

runclj

(run sb command)

Run a shell command in the sandbox, blocking until it exits. Returns {:stdout String, :stderr String, :stdout-bytes bytes, :stderr-bytes bytes}.

Run a shell command in the sandbox, blocking until it exits. Returns
{:stdout String, :stderr String, :stdout-bytes bytes, :stderr-bytes bytes}.
sourceraw docstring

sandboxclj

(sandbox)

Create a sandbox. Free it with close (Closeable, so with-open works).

Create a sandbox. Free it with `close` (Closeable, so with-open works).
sourceraw docstring

set-log-level!clj

(set-log-level! sb level)

Set the sandbox log level: :debug (or "DEBUG") enables logging, anything else disables it.

Set the sandbox log level: :debug (or "DEBUG") enables logging, anything else disables it.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close