Angaben zum Datum
Datum aus der Quelle.
Erstmals gesehen am .
Developer Platform von Cloudflare
Sandbox SDK 1.0: Sandboxes aus dem eigenen Durable Object steuern
Sandbox SDK 1.0 ermöglicht es, jeden Sandbox-Container direkt aus der eigenen Durable-Object-Klasse zu steuern, einschließlich Image-Wahl, Snapshots, Stoppzeitpunkt, Befehlen, Previews und ausgehenden Anfragen.
Sandbox SDK 1.0 is available. Your own Durable Object class now controls each sandbox container directly, through the Durable Object container API on this.ctx.container.
With 1.0, your class can:
- Choose the image and instance size each time it starts a sandbox. One class can run sandboxes on different images, and a deploy does not restart sandboxes that are running.
- Save the files of a sandbox as a snapshot, in public beta, and start the same sandbox or a new one from it.
- Decide when each sandbox stops, for example when a task finishes, when its user goes idle, or after it saves a snapshot.
- Run commands with streamed input and output, send them signals, and open terminals.
- Serve previews from ports in the sandbox, with your own hostnames and authentication.
- Handle outbound requests for each hostname in Worker code, so credentials and bindings stay in your Worker.
- Expose only the methods that you want callers to use. …