model: gofmt VMRecord struct alignment
Stats and Workspace fields landed in 6b543cb with column alignment
that gofmt wants to pull tighter; rerun gofmt so the new pre-commit
hook's `gofmt -l` gate passes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3e6d0cee89
commit
6b4e1922b0
1 changed files with 15 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue