Documentation Index
Fetch the complete documentation index at: https://docs.declaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
CreateVolume() and attach it to any number of sandboxes at create time via WithVolumes(). On boot, Declaw streams the blob from object storage and materializes its regular-file entries under the attachment’s MountPath before the first command runs.
declaw.CreateVolume()
Upload a tar.gz and register it.
Human-readable name. The server returns a stable
VolumeID.The gzip-compressed tar archive. Must start with gzip magic bytes (
0x1F 0x8B).
Pass nil or empty for an empty volume.(*VolumeInfo, error)
declaw.ListVolumes()
List all volumes owned by the caller.
([]VolumeInfo, error)
declaw.GetVolume()
Fetch metadata for a single volume.
(*VolumeInfo, error)
declaw.DownloadVolume()
Download the contents of a volume as raw bytes.
([]byte, error)
declaw.DeleteVolume()
Delete a volume by its ID.
error
Attaching to a sandbox
PassWithVolumes() to Create():
VolumeID can appear in many sandbox-create calls in parallel; each sandbox gets its own materialized copy.