intellibrix v1.0.0
    Preparing search index...

    Interface CloudflareSandboxHandle

    The slice of a Cloudflare Sandbox handle (from getSandbox(env.Sandbox, id) inside a Worker) this adapter uses. Cloudflare sandboxes are bound to a Worker's environment, so unlike the other adapters the handle is supplied by the caller rather than imported.

    interface CloudflareSandboxHandle {
        destroy?(): Promise<void>;
        exec(
            command: string,
        ): Promise<{ exitCode: number; stderr: string; stdout: string }>;
        writeFile(path: string, contents: string): Promise<unknown>;
    }
    Index
    • Parameters

      • command: string

      Returns Promise<{ exitCode: number; stderr: string; stdout: string }>

    • Parameters

      • path: string
      • contents: string

      Returns Promise<unknown>