diff --git a/internal/model/types.go b/internal/model/types.go index 61da2e6..1121b3a 100644 --- a/internal/model/types.go +++ b/internal/model/types.go @@ -139,17 +139,17 @@ type VMStats struct { } type VMRecord struct { - ID string `json:"id"` - Name string `json:"name"` - ImageID string `json:"image_id"` - State VMState `json:"state"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` - LastTouchedAt time.Time `json:"last_touched_at"` - Spec VMSpec `json:"spec"` - Runtime VMRuntime `json:"runtime"` - Stats VMStats `json:"stats"` - Workspace VMWorkspace `json:"workspace"` + ID string `json:"id"` + Name string `json:"name"` + ImageID string `json:"image_id"` + State VMState `json:"state"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` + LastTouchedAt time.Time `json:"last_touched_at"` + Spec VMSpec `json:"spec"` + Runtime VMRuntime `json:"runtime"` + Stats VMStats `json:"stats"` + Workspace VMWorkspace `json:"workspace"` } type VMCreateRequest struct { @@ -177,10 +177,10 @@ type VMSetRequest struct { // repo. Stored as workspace_json in the vms table; zero value means // no workspace has been prepared on this VM yet. type VMWorkspace struct { - GuestPath string `json:"guest_path,omitempty"` - SourcePath string `json:"source_path,omitempty"` - HeadCommit string `json:"head_commit,omitempty"` - PreparedAt time.Time `json:"prepared_at,omitempty"` + GuestPath string `json:"guest_path,omitempty"` + SourcePath string `json:"source_path,omitempty"` + HeadCommit string `json:"head_commit,omitempty"` + PreparedAt time.Time `json:"prepared_at,omitempty"` } type WorkspacePrepareMode string