Skip to content

Commit 41834eb

Browse files
author
Ferran Pons Serra
committed
feat(go): expose snapshot imageUri in the Go SDK
Add the ImageURI field to the hand-written SnapshotInfo type.
1 parent a6281af commit 41834eb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sdks/sandbox/go/types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ type SnapshotInfo struct {
202202
Name string `json:"name,omitempty"`
203203
Status SnapshotStatus `json:"status"`
204204
CreatedAt time.Time `json:"createdAt"`
205+
// ImageURI is the portable OCI image reference for a Ready snapshot, usable to restore a
206+
// sandbox (e.g. across clusters). Populated once the snapshot is Ready; empty otherwise.
207+
ImageURI string `json:"imageUri,omitempty"`
205208
}
206209

207210
type CreateSnapshotRequest struct {

0 commit comments

Comments
 (0)