このコンテンツはまだ日本語訳がありません。
VolumeService
Service for managing Daytona Volumes.
Volumes provide persistent shared storage that can be mounted into Sandboxes.
Methods
create()
public Volume create(String name)Creates a new volume.
Parameters:
nameString - volume name
Returns:
Volume- createdVolume
Throws:
io.daytona.sdk.exception.DaytonaException- if creation fails
list()
public List<Volume> list()Lists all accessible volumes.
Returns:
List\<Volume\>- list of available volumes
Throws:
io.daytona.sdk.exception.DaytonaException- if the API request fails
getByName()
public Volume getByName(String name)Retrieves a volume by name.
Parameters:
nameString - volume name
Returns:
Volume- matchingVolume
Throws:
io.daytona.sdk.exception.DaytonaException- if no volume is found or request fails
delete()
public void delete(String id)Deletes a volume by ID.
Parameters:
idString - volume identifier
Throws:
io.daytona.sdk.exception.DaytonaException- if deletion fails