Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "porter-sandbox",
"version": "0.1.35",
"version": "0.1.41",
"description": "TypeScript SDK for the Porter Sandbox API",
"license": "Apache-2.0",
"author": "Porter <support@porter.run>",
Expand Down
9 changes: 9 additions & 0 deletions src/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ export class Volume {
return this.record.phase;
}

/**
* Subdirectory, relative to the shared sandbox volumes mount, where this
* volume's data lives. An app that mounts the cluster's sandbox volumes
* reads this volume at `<mount>/<path>`.
*/
get path(): string {
return this.record.path;
}

/** IDs of the sandboxes the volume is attached to. */
get attachedTo(): string[] {
return this.record.attached_to;
Expand Down
Loading