feat: implement workspace runtime selection

This commit is contained in:
2024-12-02 09:38:01 +00:00
parent daf9bab49f
commit a92f5e8189
11 changed files with 268 additions and 119 deletions

View File

@@ -36,6 +36,8 @@ type workspace struct {
Status status `bun:"-" json:"status"`
PortMappings []portMapping `bun:"rel:has-many,join:id=workspace_id" json:"ports,omitempty"`
Runtime string `json:"runtime"`
}
type portMapping struct {
@@ -48,6 +50,11 @@ type portMapping struct {
Workspace workspace `bun:"rel:belongs-to,join:workspace_id=id" json:"-"`
}
type workspaceRuntime struct {
Name string `json:"name"`
Path string `json:"path"`
}
// status represents the status of a workspace.
type status string