Documentation
¶
Overview ¶
Package volume provides a client for E2B persistent volumes.
A Volume is independent of a specific sandbox: it can be mounted via e2b.VolumeMount during Sandbox.Create. Content operations (read/write/ list) talk to the volume-content REST API and authenticate with a per-volume JWT issued by the control plane.
Index ¶
- type Info
- type Options
- type Volume
- func (v *Volume) Delete(ctx context.Context) error
- func (v *Volume) MakeDir(ctx context.Context, path string) error
- func (v *Volume) ReadFile(ctx context.Context, path string) ([]byte, error)
- func (v *Volume) Remove(ctx context.Context, path string) error
- func (v *Volume) Token() string
- func (v *Volume) WriteFile(ctx context.Context, path string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Volume ¶
Volume is a handle for one persistent volume.
Click to show internal directories.
Click to hide internal directories.