diff --git a/package-lock.json b/package-lock.json index 89b845c..f11bf7b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "porter-sandbox", - "version": "0.1.35", + "version": "0.1.41", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "porter-sandbox", - "version": "0.1.35", + "version": "0.1.41", "license": "Apache-2.0", "devDependencies": { "@types/node": "^20.11.0", diff --git a/package.json b/package.json index 8103d32..72b5348 100644 --- a/package.json +++ b/package.json @@ -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 ", diff --git a/src/volume.ts b/src/volume.ts index 50c5bd3..182440d 100644 --- a/src/volume.ts +++ b/src/volume.ts @@ -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 `/`. + */ + get path(): string { + return this.record.path; + } + /** IDs of the sandboxes the volume is attached to. */ get attachedTo(): string[] { return this.record.attached_to;