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.32",
"version": "0.1.35",
"description": "TypeScript SDK for the Porter Sandbox API",
"license": "Apache-2.0",
"author": "Porter <support@porter.run>",
Expand Down
12 changes: 12 additions & 0 deletions src/_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ export interface SandboxSpec {
args?: string[];
/** Environment variables to set in the sandbox, keyed by name */
env?: Record<string, string>;
/**
* Names of environment groups on the cluster whose variables are
* injected into the sandbox, resolved to their latest version at create
* time. On a key conflict a later group wins over an earlier one, and
* an explicit env entry wins over any group value.
*/
env_groups?: string[];
/**
* Volumes to mount, keyed by the absolute mount path inside the
* sandbox; values are volume IDs.
Expand All @@ -174,6 +181,11 @@ export interface SandboxSpec {
* only one entry is supported.
*/
networking?: SandboxNetworkingSpec[];
/**
* Maximum lifetime in seconds, counted from creation. The sandbox is
* terminated once it elapses. Omit for no limit.
*/
ttl_seconds?: number;
}

export interface StatusResponse {
Expand Down
Loading