Skip to content

Commit

Permalink
Add more memory snapshotting protos (#2794)
Browse files Browse the repository at this point in the history
add more snapshotting protos
  • Loading branch information
azliu0 authored Jan 22, 2025
1 parent 850bcc8 commit 12d47a9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions modal_proto/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2318,15 +2318,21 @@ message SandboxListResponse {
}

message SandboxRestoreRequest {
string app_id = 1 [ (modal.options.audit_target_attr) = true ];
string snapshot_id = 2;
string environment_name = 3;
string snapshot_id = 1;
}

message SandboxRestoreResponse {
string sandbox_id = 1;
}

message SandboxSnapshotFromIdRequest {
string snapshot_id = 1;
}

message SandboxSnapshotFromIdResponse {
string snapshot_id = 1;
}

message SandboxSnapshotFsRequest {
string sandbox_id = 1;
float timeout = 2;
Expand Down Expand Up @@ -2982,6 +2988,7 @@ service ModalClient {
rpc SandboxList(SandboxListRequest) returns (SandboxListResponse);
rpc SandboxRestore(SandboxRestoreRequest) returns (SandboxRestoreResponse);
rpc SandboxSnapshot(SandboxSnapshotRequest) returns (SandboxSnapshotResponse);
rpc SandboxSnapshotFromId(SandboxSnapshotFromIdRequest) returns (SandboxSnapshotFromIdResponse);
rpc SandboxSnapshotFs(SandboxSnapshotFsRequest) returns (SandboxSnapshotFsResponse);
rpc SandboxSnapshotWait(SandboxSnapshotWaitRequest) returns (SandboxSnapshotWaitResponse);
rpc SandboxStdinWrite(SandboxStdinWriteRequest) returns (SandboxStdinWriteResponse);
Expand Down

0 comments on commit 12d47a9

Please sign in to comment.